/* modern.css - Клостерверк: плоский крафт, антиква, объёмный фон */
:root {
    --surface-bg: rgba(28, 10, 2, 0.74);
    --surface-bg-mobile: rgba(28, 10, 2, 0.86);
    --surface-border: rgba(252, 196, 22, 0.10);
    --hairline: rgba(252, 196, 22, 0.14);
    --text-body: rgba(255, 255, 255, 0.88);
    --text-muted: rgba(255, 255, 255, 0.62);
    --section-radius: 20px;
}

/* ===== Псевдо-3D фон с туманом ===== */
.bg-layer-pergament {
    inset: -12%;
}

.bg-layer-castle-far,
.bg-layer-castle-near {
    display: block;
}

.bg-layer-castle-far {
    background-image: var(--bg-image);
    background-size: 118% auto;
    background-position: center top;
    opacity: 0.28;
    filter: blur(8px);
    inset: -12%;
    z-index: -4;
}

.bg-layer-castle-near {
    background-image: var(--bg-image);
    background-size: 110% auto;
    background-position: center top;
    opacity: 0.52;
    filter: blur(3px);
    inset: -8%;
    z-index: -3;
}

.bg-layer-fog {
    background:
        radial-gradient(ellipse at 20% 25%, rgba(252, 220, 160, 0.10) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 75%, rgba(165, 54, 10, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(68, 23, 1, 0.22) 0%, transparent 55%);
    background-size: 170% 170%;
    filter: blur(22px);
    opacity: 0.8;
    z-index: -2;
    animation: fogShift 24s ease-in-out infinite alternate;
    will-change: transform, background-position;
}

@keyframes fogShift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    100% {
        background-position: 100% 100%, 0% 0%, 50% 55%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-layer-fog,
    .bg-layer-castle-far,
    .bg-layer-castle-near {
        animation: none;
        transform: none !important;
    }
    .bg-layer-fog {
        opacity: 0.35;
    }
}

@media (max-width: 767px) {
    .bg-layer-fog {
        filter: blur(14px);
        opacity: 0.5;
    }
    .bg-layer-castle-far,
    .bg-layer-castle-near {
        opacity: 0.2;
    }
}

/* ===== Единая антиква в навигации и иерархии ===== */
.menu-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
}

.menu-link:hover,
.menu-link:focus,
.menu-link.selected {
    background: transparent;
    color: var(--color-gold-light);
}

.menu-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    margin-top: 4px;
    background: var(--color-gold);
    border-radius: 1px;
    transition: width 0.25s ease;
}

.menu-link:hover::after,
.menu-link:focus::after,
.menu-link.selected::after {
    width: 100%;
}

/* ===== Плоские секции с воздухом ===== */
.section {
    background: var(--surface-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.page-content {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.privacy-content {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 767px) {
    .section,
    .page-content,
    .privacy-content {
        background: var(--surface-bg-mobile);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.section-header {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border-radius: 1px;
}

.section-subtitle {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.05rem;
}

/* ===== Контентные страницы ===== */
.page-content .content-text {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.page-content .content-text p,
.page-content .content-text li,
.page-content .content-text ul {
    color: var(--text-body);
}

.page-content .content-text strong {
    color: var(--color-gold-light);
}

.page-content .content-media {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

/* ===== Карточки товаров: без рамок, на подложке секции ===== */
.product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transition: transform 0.25s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
}

.product-card-link {
    padding: 0;
}

.product-card-image-wrap {
    width: 100%;
    margin: 0 0 16px;
    padding: 16px;
    border-radius: var(--section-radius);
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.38) 70%),
        rgba(0, 0, 0, 0.10);
    border: 1px solid var(--surface-border);
    overflow: hidden;
}

.product-card-image {
    transition: transform 0.4s ease;
}

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

.product-card-category {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin-bottom: 6px;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.product-card-desc {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0 0 16px;
}

.product-card-footer {
    padding: 16px 0 0;
    border-top: 1px solid var(--hairline);
    gap: 14px;
}

.product-card-price {
    justify-content: flex-start;
    color: var(--text-body);
    font-size: 0.95rem;
    font-weight: 500;
}

.product-card-price strong {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: var(--color-gold-light);
}

.product-card-volume {
    color: var(--text-muted);
}

.price-old {
    color: var(--text-muted);
}

/* ===== Кнопки: антиква, плавный hover ===== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 28px;
    background: rgba(142, 47, 0, 0.82);
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    transition: all 0.25s ease;
}

.btn:hover,
.btn:focus {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(252, 196, 22, 0.12);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(80, 30, 18, 0.9);
    color: var(--color-gold-light);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(100, 40, 20, 0.95);
}

/* ===== Корзина: легче, без тяжёлой рамки ===== */
.cart-summary {
    background: rgba(40, 14, 4, 0.88);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cart-list {
    background: rgba(40, 14, 4, 0.96);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cart-total {
    font-family: var(--font-heading);
    font-style: normal;
}

/* ===== Закуски ===== */
.snack-card .product-card-image-wrap {
    background: transparent;
    border: none;
}

/* ===== Сотрудничество: ассортимент без коробок ===== */
.coop-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 48px;
}

.coop-section h2 {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 20px;
}

.coop-section h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 12px;
    background: var(--color-gold);
    border-radius: 1px;
}

.coop-section p,
.coop-section ul,
.coop-section li {
    color: var(--text-body);
}

.coop-section li strong {
    color: var(--color-gold-light);
}

.beer-list {
    display: grid;
    gap: 0;
    margin: 24px 0;
}

.beer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--hairline);
    transition: transform 0.2s ease, background 0.2s ease;
}

.beer-item:first-child {
    border-top: 1px solid var(--hairline);
}

.beer-item:hover {
    transform: translateX(4px);
}

.beer-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    flex-shrink: 0;
    opacity: 0.8;
}

.beer-item-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gold);
    min-width: auto;
    flex-grow: 1;
    padding-left: 10px;
}

.beer-item-specs {
    flex-shrink: 0;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.coop-cta {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 32px 0;
    margin-top: 32px;
    text-align: center;
    border-top: 1px solid var(--hairline);
}

.coop-cta p {
    color: var(--text-muted);
    margin: 0 0 8px;
}

.coop-cta-phone {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--color-gold-light);
    margin: 12px 0 0;
}

.coop-cta-phone a {
    color: inherit;
    text-decoration: none;
}

.coop-cta-phone a:hover,
.coop-cta-phone a:focus {
    color: var(--color-gold);
}

/* ===== О нас ===== */
.value-card {
    background: transparent;
    border: none;
    border-left: 2px solid var(--color-gold);
    border-radius: 0;
    padding: 16px 0 16px 20px;
    box-shadow: none;
}

.value-card h3 {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 8px;
}

.value-card p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== Контакты ===== */
.contact-point {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    box-shadow: none;
    padding: 18px 0;
}

.contact-point:first-child {
    border-top: 1px solid var(--hairline);
}

.contact-point-name {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 8px;
}

.contact-point-address {
    color: var(--text-muted);
    margin: 0 0 8px;
}

.contact-point-phone a {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: 1.15rem;
    text-decoration: none;
}

.contact-point-phone a:hover,
.contact-point-phone a:focus {
    color: var(--color-gold);
}

.contacts-map {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: var(--section-radius);
    overflow: hidden;
}

/* ===== Политика конфиденциальности ===== */
.privacy-content .container {
    background: transparent;
    border-radius: 0;
    padding: 24px 0;
}

.privacy-content h1,
.privacy-content h2 {
    color: var(--color-gold-light);
}

.privacy-content,
.privacy-content p,
.privacy-content li {
    color: var(--text-body);
}

.privacy-content a {
    color: var(--color-gold-light);
}

.privacy-content strong {
    color: var(--color-gold-light);
}

.privacy-updated {
    color: var(--text-muted);
}

/* ===== Дисклеймер ===== */
.legal-disclaimer {
    background: var(--surface-bg);
    border-radius: 0;
    padding: 32px 16px;
    border-top: none;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .legal-disclaimer {
        background: var(--surface-bg-mobile);
    }
}

/* ===== Футер ===== */
.site-footer {
    background: var(--surface-bg);
    border-top: none;
}

.footer-inner {
    border-bottom: 1px solid var(--hairline);
}

.footer-title,
.footer-phone a {
    color: var(--color-gold-light);
}

.footer-warning {
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .site-footer {
        background: var(--surface-bg-mobile);
    }
}

/* ===== Анимации появления (scroll-reveal) ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Микро-движение ===== */
.hero-logo {
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo {
        animation: none;
    }
}

/* ===== Мобильные корректировки ===== */
@media (max-width: 767px) {
    .product-card {
        margin-bottom: 20px;
    }

    .product-card-image-wrap {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .product-card:hover {
        transform: none;
    }

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

    .beer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 16px 0;
    }

    .beer-item-specs {
        text-align: left;
        padding-left: 16px;
    }

    .beer-item:hover {
        transform: none;
    }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
}

/* ===== Точечный фикс 06.07: заголовки ярче, фон-прослойка без наложений ===== */

/* 1. Заголовки - светлее/ярче с тенью, чтобы не сливались с фоном */
h1, h2, h3,
.section-title,
.page-title,
.hero-title,
.hero-lead,
.hero-phone,
.hero-note,
.product-card-name,
.value-card h3,
.contact-point-name,
.contact-point-phone a,
.coop-section h2,
.coop-cta-phone,
.coop-cta-phone a,
.footer-title,
.footer-phone a,
.site-name-ru,
.menu-link {
    position: relative;
    z-index: 1;
    color: #FFF5C2;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.75),
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(0, 0, 0, 0.5);
}

/* 2. Фон-прослойка: убираем наложения лого/силуэтов, оставляем один чистый слой */
.bg-layer-castle-far,
.bg-layer-castle-near {
    display: none;
}

.bg-layer-pergament {
    /* картинка сверху, градиент снизу как fallback-подложка если webp не загрузится */
    background-image:
        var(--bg-image, url("/images/bg-1280.webp")),
        radial-gradient(ellipse at center, #c49a6c 0%, #8b5e3c 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 3. Hero: тёмная полупрозрачная подложка под светлым текстом, чтобы читался поверх восстановленного пергамента */
.hero-content {
    background: rgba(28, 16, 6, 0.58);
    padding: clamp(20px, 4vw, 36px);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 4. <picture> прозрачна для раскладки: img (webp-фолбэк) остаётся прямым флекс-потомком как раньше */
picture {
    display: contents;
}
