/**
 * Элегантный, минималистичный стиль для сайта Faretti
 * 
 * Основные изменения:
 * - Использование шрифтов из assets/fonts.css: TT Norms Pro и TT Livret
 * - Обновление цветовой схемы с использованием бирюзового (Pantone 7466 C) и коричневого (Pantone 4103 C)
 * - Современный дизайн с острыми углами вместо скруглений
 * - Оптимизация отображения блоков и карточек товаров
 */

/* Элегантные стили для Faretti - минималистичный дизайн */

/* Основные стили */
:root {
    --primary-color: #333333;
    --secondary-color: #555555;
    --accent-color: #888888;
    --background-color: #ffffff;
    --light-gray: #f5f5f5;
}

body {
    font-family: var(--font-primary);
    font-variation-settings: "wght" 400;
    color: var(--primary-color);
    line-height: 1.6;
    background-color: var(--background-color);
    padding-top: 100px;
}

p {
    font-family: var(--font-primary);
    font-variation-settings: "wght" 400;
}

strong, b {
    font-variation-settings: "wght" 700;
}

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

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: bold;
}

/* Общие стили для секций */
section {
    padding: 60px 0; /* Уменьшенный отступ между блоками */
    position: relative;
}

/* Заголовки разделов */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.section-header:hover h2:after {
    width: 100px;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--secondary-color);
    font-style: italic;
    display: block;
    margin-top: 20px;
}

/* Стили для заголовков секций */
.cake-line .section-header,
.advantages .section-header {
    text-align: center;
}

.cake-line .section-header h2:after,
.advantages .section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Стили для кнопок "Подробнее" */
.more-btn-container {
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.more-btn-container .btn-primary,
a.btn-primary:not(.hero .btn-primary),
button.btn-primary:not(.hero button.btn-primary) {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.more-btn-container .btn-primary:before,
a.btn-primary:not(.hero .btn-primary):before,
button.btn-primary:not(.hero button.btn-primary):before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.more-btn-container .btn-primary:hover,
a.btn-primary:not(.hero .btn-primary):hover,
button.btn-primary:not(.hero button.btn-primary):hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.more-btn-container .btn-primary:hover:before,
a.btn-primary:not(.hero .btn-primary):hover:before,
button.btn-primary:not(.hero button.btn-primary):hover:before {
    left: 100%;
}

/* Кнопки в hero-секции имеют отдельные стили */
.hero .btn-primary {
    background-color: transparent;
    border-color: white;
    color: white;
}

.hero .btn-primary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Override для кнопок с общим классом btn */
.btn.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Улучшенные стили для навигационного меню */
header, .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 12px 40px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
  /*  justify-content: space-between;*/
}

.logo {
    display: block;
    width: 140px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

header.scrolled .logo {
    width: 120px;
}

/* Анимация при скролле */
.header {
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Добавляем отступ сверху для основного контента */
main, 
.main-content, 
section:first-of-type {

  height: 50%; /* Уменьшаем высоту вдвое */
 /*   padding-top: 20px;*/
}

/* Стили для мобильного меню */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    header, .header {
        padding: 15px 20px;
    }
    
    .logo {
        width: 120px;
    }
    
    header.scrolled .logo {
        width: 100px;
    }
    
    nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--background-color);
        padding: 80px 20px 20px;
        transition: 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-item {
        width: 100%;
        margin: 10px 0;
    }

    .nav-link {
        color: var(--secondary-color) !important;
        font-size: 18px;
        padding: 10px 0;
        display: block;
        text-shadow: none !important;
    }

    .hamburger {
        display: block;
        position: relative;
        z-index: 101;
    }

    .header.scrolled .hamburger span {
        background-color: var(--secondary-color);
    }

    .header:not(.scrolled) .hamburger span {
        background-color: #fff;
    }
}

/* Обеспечиваем отступ для контента под фиксированным меню */
body {
    padding-top: 100px;
}

/* Убираем верхний отступ для hero-секции, но сохраняем z-index */
.hero {
    margin-top: -100px;
    position: relative;
    z-index: 1;
}

/* Главный экран */
.hero {
  /*  min-height: 100vh;*/
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content p {
    font-family: var(--font-primary);
    font-size: 24px;
    color: white; /* Белый цвет для текста "Десерты, которые дарят настроение" */
    margin: 20px 0 40px;
}

/* Линейки продуктов */
.cake-line {
    background-color: var(--background-color);
    padding: 30px 0;
}

/* Размещение кнопки "Подробнее" сразу после заголовка */
.more-btn-container {
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
    gap: 2rem;
    padding: 20px 0;
}

.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 400px; /* Увеличиваем общую высоту карточки с 380px до 400px */
    display: flex;
    flex-direction: column;
}

/* Убираем псевдоэлемент с градиентом */
.product-card::after {
    display: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image-frame {
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    height: 260px; /* Оставляем высоту изображения прежней */
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    height: 100px; /* Увеличиваем высоту информационного блока с 80px до 100px */
    padding: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
}

.product-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem; /* Увеличиваем отступ между названием и весом с 0.5rem до 0.8rem */
    color: #333;
    font-weight: 600;
    text-shadow: none;
    line-height: 1.4; /* Добавляем межстрочный интервал для лучшей читаемости */
    max-width: 100%; /* Ограничиваем ширину, чтобы текст переносился при необходимости */
}

.product-weight {
    background-color: transparent;
    color: #555;
    padding: 0;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 1;
    text-shadow: none;
}

.product-card:hover .product-info {
    background-color: rgba(255, 255, 255, 0.95);
}

.product-card:hover .product-info h4 {
    color: #333;
}

/* Удаляем старые стили для иконок продукта */
.product-info p {
    display: inline-block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--secondary-color);
}

.product-info [data-eva] {
    display: none;
}

/* Стили для сетки с рамкой */
.product-grid.with-border .product-card {
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Убираем изменение рамки при наведении */
.product-grid.with-border .product-card:hover {
    /* border-color: var(--primary-color); - удаляем это свойство */
    /* border-width: 1px; - удаляем это свойство */
    border-color: rgba(0, 0, 0, 0.03); /* Оставляем ту же рамку при наведении */
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 15px);
        min-width: 200px;
    }
    
    .cake-line {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 calc(100% - 30px);
        min-width: 250px;
    }
    
    .product-grid {
        gap: 20px;
    }
}

/* Преимущества */
.advantages {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.advantages-header {
    margin-bottom: 50px;
}

.advantages-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.advantage-item {
    flex: 0 0 calc(33.333% - 30px);
    min-width: 280px;
    background-color: var(--background-color);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.02);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.advantage-item:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

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

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 32px;
}

.advantage-icon[data-icon="quality"]::before { content: "★"; }
.advantage-icon[data-icon="natural"]::before { content: "🌿"; }
.advantage-icon[data-icon="delivery"]::before { content: "🚚"; }
.advantage-icon[data-icon="taste"]::before { content: "👨‍🍳"; }

.advantage-item:hover .advantage-icon {
    border-color: var(--primary-color);
    background-color: rgba(0, 178, 176, 0.03);
}

.advantage-item:hover .advantage-icon [data-eva] {
    transform: scale(1.1);
}

.advantage-item h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.advantage-item p {
    color: var(--secondary-color);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .advantage-item {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .advantage-item {
        flex: 0 0 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .advantages {
        padding: 60px 0;
    }
}

/* Стили для блоков статистики */
.production-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background-color: var(--background-color);
    padding: 30px;
    width: calc(50% - 15px);
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 178, 176, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.stat-icon [data-eva] {
    width: 36px;
    height: 36px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-number span {
    font-size: 22px;
    vertical-align: super;
    margin-left: 2px;
    opacity: 0.8;
}

.stat-text {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Стили для фактов о производстве */
.production-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.fact-item {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    text-align: center;
    padding: 20px;
    background-color: var(--background-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.fact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.fact-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.fact-icon [data-eva] {
    stroke: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
}

.fact-number {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.fact-text {
    font-size: 14px;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .stat-item, .fact-item {
        min-width: 150px;
        padding: 20px 15px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon [data-eva], .fact-icon [data-eva] {
        width: 28px;
        height: 28px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .fact-number {
        font-size: 30px;
    }
}

/* История бренда */
.about {
    padding: 30px 0;
    background-color: var(--background-color);
}

.about-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 40px;
}

.about-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: italic;
}

.title-separator {
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-cta {
    margin-top: 30px;
}

.about-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0; /* Убираем скругления для более современного вида */
}

.about-button:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-button::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.about-button:hover::after {
    transform: translateX(4px);
}

/* Производство */
.production {
    padding: 30px 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.production-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.production-header {
    margin-bottom: 60px;
    text-align: center;
}

.production-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: italic;
}

.production-intro {
    margin-bottom: 80px;
}

.production-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.production-headline {
    margin-bottom: 30px;
}

.production-headline h3 {
    font-family: var(--font-primary);
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.production-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--secondary-color);
}

/* Статистика */
.production-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: var(--background-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 250px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(0, 178, 176, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-icon [data-eva] {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-number span {
    font-size: 24px;
    vertical-align: super;
    margin-left: 2px;
    opacity: 0.8;
}

.stat-text {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Карточки производства */
.production-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.production-card {
    background-color: var(--background-color);
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.production-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 60px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.card-icon {
    margin-bottom: 25px;
}

.card-icon [data-eva] {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
}

.card-content h4 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.card-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--secondary-color);
}

/* Факты о производстве */
.production-facts {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.fact-item {
    text-align: center;
    padding: 30px;
    background-color: var(--background-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 220px;
}

.fact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fact-icon {
    margin-bottom: 15px;
}

.fact-icon [data-eva] {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
}

.fact-number {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.fact-text {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .production-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .production-stats {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .production {
        padding: 30px 0;
    }
    
    .production-title {
        font-size: 36px;
    }
    
    .production-headline h3 {
        font-size: 28px;
    }
    
    .production-cards {
        grid-template-columns: 1fr;
    }
    
    .production-card {
        padding: 30px;
    }
    
    .card-number {
        font-size: 48px;
    }
    
    .fact-item {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .production-title {
        font-size: 28px;
    }
    
    .production-headline h3 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .production-intro p {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-number span {
        font-size: 20px;
    }
}

/* Стили для секции контактов */
.contacts {
    background-color: var(--background-color);
    padding: 30px 0;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.6;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background-color: var(--background-color);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 30px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 28px;
}

.contact-card-icon[data-icon="phone"]::before { content: "📞"; }
.contact-card-icon[data-icon="email"]::before { content: "✉️"; }
.contact-card-icon[data-icon="location"]::before { content: "📍"; }
.contact-card-icon[data-icon="time"]::before { content: "⏰"; }

.contact-card h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    margin: 0 0 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-card p {
    color: var(--secondary-color);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Адаптивность для контактных карточек */
@media (max-width: 992px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contacts {
        padding: 30px 0;
    }
    
    .contact-intro {
        font-size: 16px;
    }
}

/* Стили для футера */
.footer {
    background-color: var(--light-gray);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-family: var(--font-primary);
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.footer-description {
    font-size: 15px;
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-social {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin-right: 10px;
    font-size: 20px;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-social a [data-eva] {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.footer-social a[data-icon="facebook"]::before { content: "f"; }
.footer-social a[data-icon="instagram"]::before { content: "📷"; }
.footer-social a[data-icon="twitter"]::before { content: "🐦"; }
.footer-social a[data-icon="youtube"]::before { content: "▶️"; }

.footer-nav-title {
    font-family: var(--font-primary);
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    font-weight: 500;
}

.footer-nav-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    margin-right: 10px;
}

.footer-contact-icon [data-eva] {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
}

.footer-contact-text {
    font-size: 15px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-copyright {
    font-size: 14px;
    color: var(--secondary-color);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        grid-column: span 1;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
}

/* Стили для подзаголовка "итальянский десерт" */
.section-subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--secondary-color);
    font-style: italic;
    display: block;
    margin-top: 20px;
}

/* Стили для карточек продуктов в одну строку */
.product-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
  /*  overflow-x: auto;*/
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.product-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 220px;
    background-color: var(--background-color);
    box-shadow: none;
    transition: transform 0.3s ease;
    border: none;
}

/* Стили для иконок в advantages секции */
.advantage-symbol {
    font-size: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Обновленные стили для кнопок "Подробнее" */
.btn-more,
.link-more,
.about-button,
.btn-primary,
.product-button a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0; /* Убираем скругления для более современного вида */
}

.btn-more:hover,
.link-more:hover,
.about-button:hover,
.btn-primary:hover,
.product-button a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-more::after,
.link-more::after,
.about-button::after,
.btn-primary::after,
.product-button a::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-more:hover::after,
.link-more:hover::after,
.about-button:hover::after,
.btn-primary:hover::after,
.product-button a:hover::after {
    transform: translateX(4px);
}

/* Стили для меню в шапке */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 12px;
}

.nav-item a {
    font-family: var(--font-primary);
    font-variation-settings: "wght" 500;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 14px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-item a:before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 14px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-item:hover a {
    color: var(--primary-color);
}

.nav-item:hover a:before,
.nav-item.active a:before {
    width: calc(100% - 28px);
    opacity: 1;
}

.nav-item.active a {
    color: var(--primary-color);
    font-weight: 700;
}

/* Эффект свечения при наведении */
.header .nav-item a:hover {
    text-shadow: 0 0 0.5px var(--primary-color);
    transform: translateY(-1px);
}

/* Улучшенный внешний вид активного пункта */
.header .nav-item.active a {
    position: relative;
}

.header .nav-item.active a:after {
    content: '';
    position: absolute;
    top: -4px;
    right: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.7;
}

/* Скролл-трансформация меню */
.header.scrolled .nav-item a {
    padding: 8px 14px;
    font-size: 12px;
}

.header.scrolled .nav-item a:before {
    bottom: 4px;
}

/* Стили для блока "Где купить" */
.store-list {
    margin-top: 30px;
}

.store-item {
    background-color: var(--background-color);
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.store-item h3 {
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-size: 24px;
}

.store-item ul {
    columns: 2;
    column-gap: 30px;
}

.store-item li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.store-item li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Стили для мобильных устройств */
@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(50% - 15px);
        min-width: 180px;
    }
    
    .store-item ul {
        columns: 1;
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 100%;
    }
}

/* Стили для фиксации отступов между секциями */
section:not(:first-of-type) {
    margin-top: -20px; /* Компенсация отступов между секциями */
}

/* Стили для иконок в футере */
.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin-right: 10px;
    font-size: 20px;
}

.social-symbol {
    font-size: 16px;
    line-height: 1;
}

.footer-contact-symbol {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Продукт - острые углы для всех элементов */
.product-card, 
.advantage-item, 
.about-image img, 
.contact-card, 
.store-item, 
.footer-back-to-top,
.product-weight {
    border-radius: 0;
}

/* Общие медиа-запросы для адаптивности сайта */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 36px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image {
        max-width: 100%;
    }
    
    .about-title {
        font-size: 38px;
    }

    .brand-story {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .advantages-items {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .store-item ul {
        columns: 1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-copyright {
        margin-bottom: 20px;
    }

    .about {
        padding: 30px 0;
    }
    
    .about-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .hero-content p {
        font-size: 18px;
    }

    .about-title {
        font-size: 28px;
    }
    
    .about-text p {
        font-size: 15px;
    }
}

/* Общие стили для иконок */
[data-eva] {
    display: none;
}

/* Стили для outline иконок */
[data-eva$="-outline"] {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
}

/* Кастомные размеры для иконок в разных блоках */
.advantage-icon [data-eva] {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.contact-card-icon [data-eva] {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.footer-social a [data-eva] {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.footer-contact-icon [data-eva] {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
}

/* Стили для fallback иконок */
.icon-fallback {
    display: none;
    font-size: 20px;
}

.no-eva-icons [data-eva] {
    display: none;
}

.no-eva-icons .icon-fallback {
    display: inline-block;
}

/* Стили для символьных элементов */
.check-symbol {
    color: var(--primary-color);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.advantage-symbol {
    font-size: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.stat-symbol {
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
}

.card-symbol {
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fact-symbol {
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-symbol {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-symbol {
    font-size: 16px;
    line-height: 1;
}

.footer-contact-symbol {
    margin-right: 10px;
    color: var(--primary-color);
}

.back-to-top-symbol {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333333;
}

/* Убеждаемся, что у всех элементов нет скруглений */
.btn, .btn-primary, .link-more, 
.product-image-frame, .product-card,
.contact-card, .advantage-item,
.store-item, .footer-back-to-top,
.product-weight {
    border-radius: 0;
}

/* Стили для иконок в статистическом блоке */
.stat-icon [data-eva] {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

/* Стили для иконок в блоке продукции */
.production-features li [data-eva] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
}

/* Fallback для различных типов иконок */
.no-eva-icons [data-eva="leaf-outline"] + .icon-fallback,
.no-eva-icons [data-eva="leaf"] + .icon-fallback {
    content: "🌿";
}

.no-eva-icons [data-eva="award-outline"] + .icon-fallback,
.no-eva-icons [data-eva="award"] + .icon-fallback {
    content: "🏆";
}

.no-eva-icons [data-eva="book-outline"] + .icon-fallback,
.no-eva-icons [data-eva="book"] + .icon-fallback {
    content: "📖";
}

.no-eva-icons [data-eva="gift-outline"] + .icon-fallback,
.no-eva-icons [data-eva="gift"] + .icon-fallback {
    content: "🎁";
}

.no-eva-icons [data-eva="phone-outline"] + .icon-fallback,
.no-eva-icons [data-eva="phone"] + .icon-fallback {
    content: "📞";
}

.no-eva-icons [data-eva="email-outline"] + .icon-fallback,
.no-eva-icons [data-eva="email"] + .icon-fallback {
    content: "✉️";
}

.no-eva-icons [data-eva="pin-outline"] + .icon-fallback,
.no-eva-icons [data-eva="pin"] + .icon-fallback {
    content: "📍";
}

.no-eva-icons [data-eva="clock-outline"] + .icon-fallback,
.no-eva-icons [data-eva="clock"] + .icon-fallback {
    content: "⏰";
}

.no-eva-icons [data-eva="person-outline"] + .icon-fallback,
.no-eva-icons [data-eva="person"] + .icon-fallback {
    content: "👤";
}

/* Социальные иконки */
.no-eva-icons [data-eva="facebook-outline"] + .icon-fallback,
.no-eva-icons [data-eva="facebook"] + .icon-fallback {
    content: "f";
}

.no-eva-icons [data-eva="instagram-outline"] + .icon-fallback,
.no-eva-icons [data-eva="instagram"] + .icon-fallback {
    content: "📷";
}

.no-eva-icons [data-eva="twitter-outline"] + .icon-fallback,
.no-eva-icons [data-eva="twitter"] + .icon-fallback {
    content: "🐦";
}

.no-eva-icons [data-eva="youtube-outline"] + .icon-fallback,
.no-eva-icons [data-eva="youtube"] + .icon-fallback {
    content: "▶️";
}

/* Навигационные иконки */
.no-eva-icons [data-eva="arrow-upward-outline"] + .icon-fallback,
.no-eva-icons [data-eva="arrow-upward"] + .icon-fallback {
    content: "↑";
}

.no-eva-icons [data-eva="globe-outline"] + .icon-fallback,
.no-eva-icons [data-eva="globe"] + .icon-fallback {
    content: "🌐";
}

/* Обеспечиваем отступы для секций, следующих за hero-секцией */
section:not(.hero) {
    position: relative;
    z-index: 2;
}

.header:not(.scrolled) .nav-link {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header:not(.scrolled) .logo {
    filter: brightness(0) invert(1);
}

.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        padding-top: 80px;
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        color: white;
        font-size: 20px;
    }
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-nav a {
        font-size: 18px;
    }

    body.menu-open {
        overflow: hidden;
    }
} 