/* ==========================================================================
   CSS VARIABLES & INCA FOREST DESIGN (PAGOSIG.ICU)
   ========================================================================== */
:root {
    --c-forest: #064e3b; /* Emerald 900 */
    --c-forest-light: #047857; /* Emerald 600 */
    --c-gold: #b45309; /* Amber 700 */
    --c-gold-light: #f59e0b; /* Amber 500 */
    --c-bg: #f8fafc; /* Slate 50 */
    --c-white: #ffffff;
    --c-text-dark: #0f172a; /* Slate 900 */
    --c-text: #334155; /* Slate 700 */
    --c-line: #e2e8f0; /* Slate 200 */

    --p-safe: clamp(15px, 5vw, 30px);
    --p-sec: clamp(80px, 10vw, 120px);
    
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 30px;
    
    --shadow-soft: 0 8px 30px rgba(6, 78, 59, 0.08);
    --shadow-hard: 0 20px 40px rgba(6, 78, 59, 0.15);
    --trans: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Public Sans', system-ui, sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--c-text-dark); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -2px; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -1px; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--c-forest); }
p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; transition: var(--trans); }
img { width: 100%; height: auto; display: block; border-radius: var(--rad-md); }
ul { list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--p-safe); }
.sec-p { padding: var(--p-sec) 0; }
.txt-c { text-align: center; }

/* ==========================================================================
   HEADER (STRICT 10PX MOBILE PADDING)
   ========================================================================== */
.site-head { background: var(--c-white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.nav-mob-pad {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 10px; /* СТРОГО 10PX НА МОБИЛЬНОМ */
    max-width: 1200px; margin: 0 auto; position: relative;
}

@media (min-width: 768px) { .nav-mob-pad { padding: 20px var(--p-safe); } }

.brand { font-size: 2.2rem; font-weight: 900; color: var(--c-forest); letter-spacing: -1px; }
.brand span { color: var(--c-gold); }

.burger { display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding: 5px; }
.burger span { width: 30px; height: 3px; background: var(--c-forest); border-radius: 2px; transition: var(--trans); }
#menu-tog { display: none; }

.desk-nav { display: none; }
.desk-nav ul { display: flex; gap: 40px; align-items: center; }
.desk-nav a { font-weight: 700; color: var(--c-text); font-size: 1.05rem; }
.desk-nav a:hover, .desk-nav a.active { color: var(--c-gold); }

.mob-nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--c-white); padding: 15px 20px 25px; box-shadow: 0 20px 30px rgba(0,0,0,0.1); border-top: 1px solid var(--c-line);
}
.mob-nav a { display: block; font-weight: 700; color: var(--c-forest); padding: 15px 0; border-bottom: 1px solid var(--c-line); }
.mob-nav li:last-child a { border-bottom: none; }
#menu-tog:checked ~ .mob-nav { display: block; }

@media (min-width: 992px) {
    .burger { display: none; }
    .desk-nav { display: block; }
    .mob-nav { display: none !important; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 18px 40px; font-weight: 800; font-size: 1.1rem; border-radius: var(--rad-sm); cursor: pointer; transition: var(--trans); border: 2px solid transparent; text-align: center; }
.btn-f { background: var(--c-forest); color: #fff; }
.btn-f:hover { background: var(--c-gold); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.btn-g { background: var(--c-gold); color: #fff; }
.btn-g:hover { background: var(--c-forest); color: #fff; }

/* ==========================================================================
   INDEX: GLASSMORPHISM HERO & MASONRY BANNERS
   ========================================================================== */
.hero-glass {
    min-height: 85vh;
    background: url('img/bg.jpg') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    padding: var(--p-safe); position: relative;
}
.hero-glass::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(6, 78, 59, 0.4); }
.glass-card {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px);
    padding: clamp(40px, 6vw, 60px); border-radius: var(--rad-lg);
    max-width: 800px; text-align: center; position: relative; z-index: 2;
    box-shadow: var(--shadow-hard); border: 1px solid rgba(255,255,255,0.5);
}

.stats-bar { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; background: var(--c-white); padding: 40px; border-radius: var(--rad-lg); box-shadow: var(--shadow-soft); margin-top: -50px; position: relative; z-index: 10; border: 1px solid var(--c-line); }
.stat-item { flex: 1; min-width: 200px; text-align: center; }
.stat-num { font-size: 3rem; font-weight: 900; color: var(--c-gold); line-height: 1; }

.split-asym { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) { .split-asym { grid-template-columns: 5fr 7fr; gap: 60px; } }
.float-box { background: var(--c-white); padding: 50px; border-radius: var(--rad-lg); box-shadow: var(--shadow-hard); position: relative; }
@media (min-width: 992px) { .float-box { margin-left: -100px; z-index: 2; } }

/* Masonry Banners (Index Sec 4) */
.masonry-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .masonry-grid { grid-template-columns: repeat(2, 1fr); } }
.msn-item { padding: 40px; border-radius: var(--rad-lg); color: white; display: flex; flex-direction: column; justify-content: center; }
.msn-1 { background: var(--c-forest); grid-row: span 2; }
.msn-2 { background: var(--c-gold); }
.msn-3 { background: var(--c-text-dark); }
.msn-item h3 { color: white; font-size: 2rem; margin-bottom: 15px; }
.msn-item p { margin: 0; color: rgba(255,255,255,0.9); }

/* ==========================================================================
   PROGRAM: HORIZONTAL TRACK & DOS/DON'TS
   ========================================================================== */
.typo-hero { background: var(--c-forest); color: white; padding: 120px 20px; text-align: center; }
.typo-hero h1 { color: white; font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 0; }

.hz-track { display: flex; flex-wrap: wrap; gap: 40px; }
.hz-step { flex: 1 1 300px; background: var(--c-white); padding: 40px; border-radius: var(--rad-lg); position: relative; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--c-line); }
.hz-bg-num { position: absolute; right: -20px; bottom: -40px; font-size: 12rem; font-weight: 900; color: var(--c-bg); line-height: 1; z-index: 0; pointer-events: none; }
.hz-content { position: relative; z-index: 1; }

.dd-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .dd-grid { grid-template-columns: 1fr 1fr; } }
.dd-box { background: var(--c-white); padding: 40px; border-radius: var(--rad-lg); box-shadow: var(--shadow-soft); }
.dd-box.do { border-top: 8px solid var(--c-forest-light); }
.dd-box.dont { border-top: 8px solid #ef4444; }
.dd-box ul li { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; font-weight: 600; }

.faq-masonry { display: column; column-count: 1; column-gap: 30px; }
@media (min-width: 768px) { .faq-masonry { column-count: 2; } }
.faq-card { background: var(--c-white); padding: 30px; border-radius: var(--rad-md); margin-bottom: 30px; break-inside: avoid; box-shadow: var(--shadow-soft); border-left: 4px solid var(--c-gold); }

/* ==========================================================================
   MISSION: EDITORIAL COLUMNS & DIAGONAL VALUES
   ========================================================================== */
.img-hero { height: 60vh; background: url('img/bg-1.jpg') center/cover; position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 50px; }
.img-card { background: var(--c-white); padding: 40px 60px; border-radius: var(--rad-lg); box-shadow: var(--shadow-hard); text-align: center; margin-bottom: -100px; z-index: 10; max-width: 800px; width: 90%; }

.news-cols { column-count: 1; column-gap: 50px; font-size: 1.15rem; line-height: 1.8; color: var(--c-text); margin-top: 80px; }
@media (min-width: 768px) { .news-cols { column-count: 2; } }
.drop-cap::first-letter { font-size: 5rem; float: left; margin-right: 15px; line-height: 0.8; color: var(--c-forest); font-weight: 900; }

.diagonal-wrap { background: var(--c-forest); color: white; padding: 120px 0; clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); margin: 80px 0; }
.diag-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .diag-grid { grid-template-columns: repeat(3, 1fr); } }
.diag-item h3 { color: var(--c-gold); font-size: 1.8rem; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px; }
.diag-item p { color: #e2e8f0; }

/* ==========================================================================
   FORM (4 FIELDS)
   ========================================================================== */
.c-wrap { max-width: 800px; margin: 0 auto; background: var(--c-white); padding: clamp(30px, 5vw, 60px); border-radius: var(--rad-lg); box-shadow: var(--shadow-hard); }
.c-row { margin-bottom: 25px; }
.c-row label { display: block; font-weight: 800; color: var(--c-text-dark); margin-bottom: 8px; }
.c-row input, .c-row textarea { width: 100%; padding: 18px; border: 2px solid var(--c-line); border-radius: var(--rad-sm); font-family: inherit; font-size: 1rem; background: var(--c-bg); transition: var(--trans); }
.c-row input:focus, .c-row textarea:focus { outline: none; border-color: var(--c-forest); background: var(--c-white); }
.c-row textarea { min-height: 150px; resize: vertical; }

/* ==========================================================================
   FOOTER (STRICT DATES)
   ========================================================================== */
.site-ftr { background: var(--c-text-dark); color: #cbd5e1; padding: 80px 0 30px; margin-top: 80px; }
.ftr-g { display: grid; grid-template-columns: 1fr; gap: 50px; margin-bottom: 50px; }
@media (min-width: 768px) { .ftr-g { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.f-logo { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 15px; display: block; letter-spacing: -1px; }
.f-logo span { color: var(--c-gold); }
.f-desc { font-size: 0.95rem; line-height: 1.7; }
.f-h { color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: 20px; }
.f-links li { margin-bottom: 12px; }
.f-links a:hover { color: var(--c-gold); }
.f-copy { border-top: 1px solid #334155; padding-top: 30px; text-align: center; font-size: 0.95rem; color: #94a3b8; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
#ck-b { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--c-white); padding: 30px; border-radius: var(--rad-lg); z-index: 9999; display: flex; flex-direction: column; gap: 20px; transform: translateY(150%); transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 20px 50px rgba(0,0,0,0.2); border: 2px solid var(--c-forest); max-width: 900px; margin: 0 auto; }
#ck-b.show { transform: translateY(0); }
.ck-txt { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--c-text); }
.ck-txt a { color: var(--c-forest); font-weight: 800; text-decoration: underline; }
.ck-acts { display: flex; gap: 10px; }
.b-ck { padding: 14px 25px; border: none; border-radius: var(--rad-sm); font-weight: 800; cursor: pointer; flex: 1; transition: var(--trans); font-size: 0.95rem; text-align: center; }
.b-ck.y { background: var(--c-forest); color: #fff; }
.b-ck.y:hover { background: var(--c-text-dark); }
.b-ck.n { background: transparent; border: 2px solid var(--c-text); color: var(--c-text); }
.b-ck.n:hover { background: var(--c-text-dark); color: #fff; border-color: var(--c-text-dark); }
@media (min-width: 768px) { #ck-b { flex-direction: row; align-items: center; justify-content: space-between; } .ck-acts { width: auto; flex-shrink: 0; } .b-ck { flex: none; } }