/*
Theme Name: Coffee Theme
Theme URI: http://example.com
Author: Gleb
Author URI: http://example.com
Description: Кастомная тема для лендинга о кофе
Version: 1.0
*/

/* Сброс */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.5;
  background-color: #f7f5f3;
  overflow-x: hidden;
}

/* Верхнее меню */
.header {
  width: 100%;
  background-color: #2b2b2b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-weight: bold;
  font-size: 1.2rem;
}
.nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.95rem;
}
.nav a:hover {
  color: #b47b48;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.btn-primary {
  padding: 0.8rem 2rem;
  background-color: #b47b48;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

/* Секции */
section {
  padding: 60px 20px;
  overflow: hidden;
}
h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

/* Контент */
.about-content,
.contacts-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-content img,
.contacts-content img {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.about-text,
.contacts-text {
  flex: 1 1 400px;
  padding: 0 10px;
  text-align: left;
}

/* Карточки */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}
.card h3 {
  margin: 15px 0 10px;
  font-size: 1.2rem;
}
.card p {
  font-size: 1rem;
  color: #555;
}

/* Футер */
footer {
  background-color: #2b2b2b;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}
.footer-overlay {
  background-image: url("images/footer-beans-texture.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
footer p {
  position: relative;
  z-index: 1;
}

/* Адаптивность */
@media (max-width: 900px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .about-content,
  .contacts-content {
    flex-direction: column;
    text-align: center;
  }
  .about-content img,
  .contacts-content img {
    max-width: 90%;
  }
  .card {
    width: 90%;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav a {
    margin: 5px 10px;
  }
}


.employees, .events-section {
  padding: 60px 20px;
  text-align: center;
}
.employees h2, .events-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
}
.employees-grid, .events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.employee-card, .event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
}
.employee-card img, .event-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}
.event-card .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #3b2f2f;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
.event-card .btn:hover {
  background: #614b4b;
}



.products-section {
  padding: 60px 20px;
  text-align: center;
}
.products-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 320px;
  transition: transform 0.2s ease;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}
.product-card h3 {
  margin: 15px 0 10px;
  font-size: 1.2em;
}
.product-card p {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 10px;
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  background: #3b2f2f;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn:hover {
  background: #614b4b;
}
.btn-secondary {
  background: transparent;
  border: 2px solid #3b2f2f;
  color: #3b2f2f;
}
.btn-secondary:hover {
  background: #3b2f2f;
  color: #fff;
}
.see-all {
  margin-top: 30px;
}
/* 🎥 Фиксированное промо-видео слева */
video.promo-video {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 300px;
    height: auto;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
video[playsinline] { display: block !important; }
video[playsinline] { display: block !important; }
video[playsinline] { display: block !important; }

/* 🎥 Фиксированное промо-видео слева */
video.promo-video {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 300px;
    height: auto;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
video[playsinline] { display: block !important; }
video[playsinline] { display: block !important; }
video[playsinline] { display: block !important; }

/* ============================================================================= */
/* 📱 АДАПТИВНОСТЬ ДЛЯ ВИДЕО НА МОБИЛЬНЫХ УСТРОЙСТВАХ */
/* ============================================================================= */

/* Для планшетов (меньше 1024px) */
@media (max-width: 1024px) {
    video.promo-video {
        width: 200px; /* Уменьшаем на 33% */
    }
}

/* Для мобильных устройств (меньше 768px) */
@media (max-width: 768px) {
    video.promo-video {
        width: 100px; /* Уменьшаем в 3 раза (300px → 100px) */
        left: 10px;
        bottom: 10px;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
}

/* Для очень маленьких экранов (меньше 480px) */
@media (max-width: 480px) {
    video.promo-video {
        width: 80px; /* Ещё меньше для маленьких экранов */
        left: 8px;
        bottom: 8px;
        border-radius: 4px;
    }
}

/* Для ландшафтной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    video.promo-video {
        width: 120px; /* Немного больше в ландшафте */
        bottom: 5px;
        left: 5px;
    }
}

/* Для больших десктопов (больше 1600px) */
@media (min-width: 1600px) {
    video.promo-video {
        width: 350px; /* Немного увеличиваем на больших экранах */
    }
}


/* ============================================================================= */
/* ⭐ ДОБАВИТЬ ЭТИ СТИЛИ ПОСЛЕ СУЩЕСТВУЮЩИХ (в конец файла) */
/* ============================================================================= */

/* ===== КОНТЕЙНЕР ДЛЯ ЦЕНТРИРОВАНИЯ ===== */
.employees-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10; /* Чтобы видео не накладывалось сверху */
}

/* ===== БЛОК НАША КОМАНДА ===== */
.employees-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f5f0 0%, #f0e6d6 100%);
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы */
.employees-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a762, #8b4513, #d4a762);
}

.employees-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(111, 78, 55, 0.1);
}

/* Заголовок */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #6f4e37;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    font-family: 'Georgia', serif;
}

.section-title::after {
    content: '☕';
    display: block;
    font-size: 2rem;
    margin-top: 15px;
    opacity: 0.7;
}

/* Сетка сотрудников (ЗАМЕНИТЬ существующий .employees-grid) */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* Карточка сотрудника */
.employee-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(111, 78, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 350px;
    position: relative;
}

.employee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(111, 78, 55, 0.25);
}

/* Фото сотрудника */
.employee-photo {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Заглушка для фото */
.employee-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6f4e37, #8b4513);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
}

/* Информация о сотруднике */
.employee-info {
    padding: 25px;
    text-align: center;
}

.employee-name {
    color: #6f4e37;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

/* Стили для группы сотрудников */
.employee-group .employee-info {
    padding: 20px;
}

.employee-group-names {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.group-name-item {
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f3eb 0%, #f0e6d6 100%);
    border-radius: 12px;
    border-left: 4px solid #d4a762;
    color: #5a3921;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.group-name-item:hover {
    background: linear-gradient(135deg, #f0e6d6 0%, #e8dcc9 100%);
    transform: translateX(5px);
}

.group-name-item::before {
    content: '👤';
    margin-right: 10px;
    opacity: 0.7;
}

.employee-description {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 15px;
    text-align: left;
    border-top: 1px solid rgba(111, 78, 55, 0.1);
    padding-top: 15px;
}

.employee-description p {
    margin-bottom: 10px;
}

.employee-description p:last-child {
    margin-bottom: 0;
}

/* Сообщение когда нет сотрудников */
.no-employees {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 60px 20px;
    font-size: 1.2rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .employees-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .employees-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .employee-photo {
        height: 240px;
    }
    
    .employee-name {
        font-size: 1.4rem;
    }
    
    .group-name-item {
        font-size: 1rem;
        padding: 10px 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .employees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.employee-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Задержка для каждой карточки */
.employees-grid .employee-card:nth-child(1) { animation-delay: 0.1s; }
.employees-grid .employee-card:nth-child(2) { animation-delay: 0.2s; }
.employees-grid .employee-card:nth-child(3) { animation-delay: 0.3s; }
.employees-grid .employee-card:nth-child(4) { animation-delay: 0.4s; }
.employees-grid .employee-card:nth-child(5) { animation-delay: 0.5s; }

/* ============================================================================= */
/* ⭐ КОНЕЦ ДОБАВЛЯЕМЫХ СТИЛЕЙ */
/* ============================================================================= */

/* ===== СТИЛИ ДЛЯ ГРУПП СОТРУДНИКОВ ===== */
.employee-group .employee-info {
    padding: 20px;
}

.employee-group-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.employee-group-item {
    padding: 15px;
    background: linear-gradient(135deg, #f8f3eb 0%, #f0e6d6 100%);
    border-radius: 12px;
    border-left: 4px solid #d4a762;
    transition: all 0.3s ease;
}

.employee-group-item:hover {
    background: linear-gradient(135deg, #f0e6d6 0%, #e8dcc9 100%);
    transform: translateX(5px);
}

.employee-group-item:not(:last-child) {
    margin-bottom: 0;
}

.group-employee-name {
    color: #5a3921;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.group-employee-position {
    color: #d4a762;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.group-employee-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    font-style: italic;
    border-top: 1px dashed rgba(111, 78, 55, 0.2);
    padding-top: 8px;
    margin-top: 8px;
}

/* Адаптивность для групп */
@media (max-width: 768px) {
    .employee-group-item {
        padding: 12px;
    }
    
    .group-employee-name {
        font-size: 1.1rem;
    }
}