/* --- SHARED: SETTINGS & VARIABLES --- */
:root {
    --color-gold: #edd274;
    --color-gold-hover: #c0964b;
    --color-text-head: #000;
    --color-text-mute: #666;
    
    --font-main: 'PT-Root-UI', 'PT-Root-UI-Fallback', sans-serif;
    --font-head: 'Roboto Light', 'Roboto-Fallback', sans-serif;
    --font-cond: 'Roboto Condensed', 'Roboto-Condensed-Fallback', sans-serif;
    
    --container-width: 1360px;
    
    /* ГЕОМЕТРИЯ СТРАНИЦЫ */
    --menu-height: 60px; 
    --spacing-top: 40px; 
    --spacing-header-bottom: 60px; 
    
    /* ЕДИНЫЙ СТАНДАРТ ГРАНИЦ */
    --spacing-section-outer: 60px;
    --spacing-section-inner: 60px; 

    /* ОТСТУПЫ ВНУТРИ КАРТОЧЕК */
    --spacing-card: 15px;    
    --spacing-element: 15px; 
}

/* --- RESET & BASIC SETUP --- */
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--menu-height); background: #fff; font-family: var(--font-main); }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--color-gold-hover); }

/* RESET HEADINGS (SEO) */
h1, h2, h3, h4 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; font-family: var(--font-head); }

/* --- FONTS OPTIMIZATION (STRICT SWAP) --- */
@font-face {
  font-family: 'Roboto-Fallback';
  src: local('Arial');
  ascent-override: 92.8%;
  descent-override: 24.4%;
  line-gap-override: 0%;
  size-adjust: 100.6%;
}
@font-face {
  font-family: 'PT-Root-UI-Fallback';
  src: local('Arial');
  ascent-override: 96%;
  descent-override: 20%;
  size-adjust: 99.5%;
}
@font-face {
    font-family: 'Roboto';
    src: url('/css/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('/css/RobotoCondensed-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap; 
}
@font-face {
    font-family: 'Roboto Light';
    src: url('/css/Roboto-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap; 
}
@font-face {
    font-family: 'PT-Root-UI';
    src: url('/css/PT-Root-UI_Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap; 
}

/* COMMON TEXT STYLES */
p {
    font-size: clamp(12pt, 3.8vw + 0.4rem, 14pt); 
    line-height: clamp(20pt, 4vw + 1rem, 24pt); 
    color: #444444;
	font-weight: 500;
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
    margin-top: clamp(24pt, 2.5vw + 1.2rem, 40pt);
    margin-bottom: clamp(24pt, 2.5vw + 1.2rem, 40pt);
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* --- GLOBAL LAYOUT & UTILITIES --- */
.wrapper { width: 100%; overflow: hidden; } /* Prevent horizontal scroll */

.section { width: 100%; margin-bottom: var(--spacing-section-outer); clear: both; }
.section:last-of-type { margin-bottom: 0; }

.section-inner {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
}

.bg-cream { 
    background: #faf1d5; padding: var(--spacing-section-inner) 0; 
    margin-bottom: var(--spacing-section-outer); width: 100%; clear: both; 
}

.label-cat {
    font-family: var(--font-cond);
    display: inline-block; padding: 5px 10px; background: var(--color-gold); color: #fff !important;
    font-size: 14px; line-height: 1; align-self: flex-start; 
    margin-bottom: var(--spacing-element);
}
.label-cat:hover { background: #fff; color: var(--color-gold-hover) !important; outline: 1px solid var(--color-gold-hover); }

.preview-text {
    font-family: var(--font-head); font-size: 16px; line-height: 1.5; color: var(--color-text-mute);
    margin-top: var(--spacing-element); display: block;
}
.preview-text:hover { color: var(--color-text-head); }

/* --- HEADER MODULES --- */

/* 1. Navbar TG (Mobile Top Bar) */
.navbar-tg {
    font-family: var(--font-cond);
    position: fixed; top: 0; left: 0; width: 100%; height: 50px; z-index: 1001;
    transform: translateY(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform;
    background-color: #ffffff; border-bottom: 1px solid #f5f5f5; box-shadow: 0 0 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    background-image: linear-gradient(135deg, rgba(173, 216, 230, 0.2), rgba(255, 182, 193, 0.2), rgba(221, 160, 221, 0.2), rgba(173, 216, 230, 0.2));
    background-size: 400% 400%; animation: gentle-background 10s ease-in-out infinite;
}
.navbar-tg.visible { transform: translateY(0); }
.navbar-tg-content { display: flex; align-items: center; font-size: 15px; color: #333; line-height: 1; }
.navbar-tg-link { display: inline-flex; align-items: center; gap: 6px; color: #0088cc; font-weight: normal; }
.navbar-tg-icon { width: 16px; height: 16px; fill: currentColor; display: block; }

/* 2. Main Menu */
.menu-top {
    font-family: var(--font-cond);
    position: fixed; top: 0; left: 0; width: 100%; height: 60px; z-index: 1000;
    padding: 0 40px; display: flex; align-items: center; justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transform: translateY(0); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform;
}
.menu-top.hidden { transform: translateY(-100%); }

.menu-left { display: flex; align-items: center; gap: 25px; height: 100%; }
.menu-link {
    font-size: 16px; color: #000; display: flex; align-items: center; height: 100%; position: relative; transition: color 0.2s;
}
.menu-link:hover { color: var(--color-gold-hover); }

.menu-right { display: flex; align-items: center; }
.search-form { display: flex; align-items: center; border: 1px solid #eee; padding: 4px 8px; border-radius: 4px; background: #fff; }
.search-input { font-family: var(--font-cond); border: none; outline: none; font-size: 14px; width: 180px; color: #333; }
.search-btn { background: none; border: none; cursor: pointer; color: #777; font-family: var(--font-cond); text-transform: uppercase; font-size: 13px; padding: 0 5px; }
.search-btn:hover { color: var(--color-gold-hover); }

@keyframes gentle-background {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* 3. Header Wrapper (Logo & H1) */
.header-wrapper { width: 100%; margin-top: var(--spacing-top); margin-bottom: var(--spacing-header-bottom); }
.header-content { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; align-content: center; }
.logo-group { display: flex; flex-direction: column; justify-content: center; }
.logo { width: 232px; height: auto; display: block; }
.site-slogan-h1 {
    font-family: var(--font-cond); font-size: 13px; color: #888; margin-top: 6px; font-weight: 400; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- FOOTER MODULE --- */
.footer { width: 100%; background: #303030; color: #fff; padding: 40px 0; margin-top: 0; }
.footer-inner-fluid { width: 100%; padding: 0 40px; display: flex; justify-content: space-between; align-items: flex-start; }
.footer-left { width: 250px; display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo {
    font-weight: 300; font-size: 20px; color: #fff; text-transform: uppercase; margin-bottom: 5px;
    display: inline-block; transform: scaleY(1.5); transform-origin: left bottom;
}
.footer-copy { font-size: 13px; color: #888; }
.footer-center { display: flex; gap: 60px; }
.footer-menu-col { display: flex; flex-direction: column; gap: 10px; }
.footer-menu-col a { font-family: var(--font-cond); font-size: 15px; color: #ccc; transition: color 0.2s; }
.footer-menu-col a:hover { color: var(--color-gold); }
.footer-title { font-family: var(--font-head); font-size: 16px; color: #fff; margin-bottom: 15px; opacity: 0.6; }
.footer-right { width: 250px; display: flex; justify-content: flex-end; gap: 10px; }
.social-btn { color: #ccc; transition: color 0.2s; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.social-btn:hover { color: var(--color-gold); }
.social-btn svg { width: 28px; height: 28px; fill: currentColor; }

/* --- COOKIE BAR --- */
.cookie-bar {
    position: relative; width: 100%; background: #252525; color: #ccc; 
    padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; 
    font-size: 13px; line-height: 1.5; font-family: var(--font-main); z-index: 10;
}
.cookie-text-block { flex-grow: 1; max-width: 1200px; }
.cookie-text-block a { color: var(--color-gold); text-decoration: underline; }
.cookie-close {
    background: none; border: 1px solid #666; color: #fff; font-size: 24px; line-height: 1; 
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; 
    align-items: center; justify-content: center; flex-shrink: 0; padding-bottom: 2px; transition: all 0.2s;
}
.cookie-close:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* --- SHARED MEDIA QUERIES (SCAFFOLDING) --- */

/* Desktop Logic */
@media (min-width: 901px) {
    .navbar-tg { display: none !important; }
    .menu-top { top: 0 !important; transform: translateY(0) !important; }
    .menu-top.hidden { transform: translateY(0) !important; }
    .burger-btn { display: none; }
}

/* Mobile Logic */
@media (max-width: 900px) {
    :root { 
        --spacing-top: 20px; 
        --spacing-header-bottom: 30px; 
        --spacing-section-outer: 40px; 
        --spacing-section-inner: 40px; 
    }
    
    /* Menu Mobile */
    .menu-top { padding: 0 20px; height: 60px; background: rgba(255, 255, 255, 0.95); position: relative; }
    
    .burger-btn {
        display: block; background: none; border: none; width: 30px; height: 30px; position: relative; cursor: pointer; color: #000; z-index: 1002; padding: 0;
    }
    .burger-btn span { display: block; width: 100%; height: 2px; background-color: currentColor; margin-bottom: 6px; transition: 0.3s; }
    .burger-btn span:last-child { margin-bottom: 0; }
    .burger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .burger-btn.active span:nth-child(2) { opacity: 0; }
    .burger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .menu-left {
        position: fixed; top: 60px; left: 0; width: 100%; height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; align-items: flex-start; padding: 30px 20px;
        transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto; border-top: 1px solid rgba(0,0,0,0.05);
    }
    .menu-left.active { transform: translateX(0); }
    .menu-link { font-size: 20px; width: 100%; padding: 15px 0; border-bottom: 1px solid #f5f5f5; height: auto; }
    .menu-right { display: none; }
    .mobile-search-wrapper { display: block; width: 100%; margin-bottom: 20px; }

    /* Header Mobile */
    .header-content { flex-direction: column; align-items: center; }
    .logo { float: none; margin-bottom: 10px; margin: 0 auto; }
    .logo-group { alignItems: center; text-align: center; }
    .site-slogan-h1 { font-size: 11px; margin-bottom: 5px; max-width: 280px; }
    
    /* Footer & Layout Mobile */
    .section-inner { flex-direction: column; }
    .footer-inner-fluid { flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
    .footer-left, .footer-right { width: 100%; justify-content: center; margin-bottom: 30px; }
    .footer-logo { transform-origin: center bottom; }
    .footer-center { width: 100%; justify-content: space-between; margin-bottom: 30px; order: -1; gap: 10px; }
    
    /* Cookie Mobile */
    .cookie-bar { flex-direction: column; text-align: center; padding: 20px; }
    .cookie-close { margin-top: 15px; }
}