/* ==========================================================================
   CSS VARIABLES & MIDNIGHT PINE BRASS DESIGN (DIZEKEX.ICU)
   ========================================================================== */
:root {
    --c-pine: #064e3b; /* Green 900 - Midnight Pine */
    --c-pine-light: #047857; /* Green 600 */
    --c-brass: #b45309; /* Amber 700 - Brass/Bronze */
    --c-brass-light: #f59e0b; /* Amber 500 */
    --c-pearl: #fafaf9; /* Stone 50 - Pearl background */
    --c-dark: #1c1917; /* Stone 900 */
    --c-text: #57534e; /* Stone 600 */
    --c-white: #ffffff;
    --c-line: #e7e5e4; /* Stone 200 */

    --pad-x: clamp(15px, 5vw, 30px);
    --pad-y: clamp(70px, 9vw, 120px);
    
    --rad-sm: 4px;
    --rad-md: 16px;
    --rad-lg: 32px;
    
    --shadow-soft: 0 15px 40px rgba(6, 78, 59, 0.08);
    --shadow-brass: 0 10px 25px rgba(180, 83, 9, 0.2);
    --trans: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Syne', system-ui, sans-serif;
    background-color: var(--c-pearl);
    color: var(--c-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--c-dark); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; letter-spacing: -1px; }
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); letter-spacing: -2px; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--c-pine); }
p { font-size: clamp(1.05rem, 1.5vw, 1.15rem); margin-bottom: 1.5rem; font-weight: 500; }

a { text-decoration: none; color: inherit; transition: var(--trans); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--rad-sm); }
ul { list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.sec-p { padding: var(--pad-y) 0; }
.txt-c { text-align: center; }

/* ==========================================================================
   HEADER (STRICT 10PX MOBILE PADDING)
   ========================================================================== */
.site-hdr { background: var(--c-white); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--c-line); box-shadow: 0 2px 10px rgba(0,0,0,0.03); }

.nav-pine-bar {
    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-pine-bar { padding: 20px var(--pad-x); } }

.brand { font-size: 2.2rem; font-weight: 900; color: var(--c-pine); letter-spacing: -1px; }
.brand span { color: var(--c-brass); }

.burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.burger span { width: 30px; height: 3px; background: var(--c-dark); transition: var(--trans); border-radius: 2px; }
#menu-tog { display: none; }

.desk-nav { display: none; }
.desk-nav ul { display: flex; gap: 35px; align-items: center; }
.desk-nav a { font-weight: 700; color: var(--c-text); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.desk-nav a:hover, .desk-nav a.active { color: var(--c-brass); }

.mob-nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--c-pine); padding: 15px 20px 25px; border-top: 4px solid var(--c-brass); box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.mob-nav a { display: block; font-weight: 700; color: var(--c-white); padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); text-transform: uppercase; }
.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 45px; font-weight: 800; font-size: 1.05rem; border-radius: 2px; cursor: pointer; transition: var(--trans); border: 2px solid transparent; text-transform: uppercase; letter-spacing: 1px; }
.btn-b { background: var(--c-brass); color: var(--c-white); box-shadow: var(--shadow-brass); }
.btn-b:hover { background: var(--c-dark); color: var(--c-white); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-color: var(--c-dark); }
.btn-p { background: var(--c-white); border-color: var(--c-pine); color: var(--c-pine); }
.btn-p:hover { background: var(--c-pine); color: var(--c-white); }

/* ==========================================================================
   GENERAL GRIDS
   ========================================================================== */
.g-2 { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) { .g-2 { grid-template-columns: 1fr 1fr; gap: 60px; } }

/* ==========================================================================
   INDEX: DUAL PANE ASYMMETRY & OFFSET TIMELINE & CSS ANATOMY
   ========================================================================== */
/* Dual Pane Asymmetry Hero */
.dual-pane-hero { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
.dp-left { background: var(--c-white); padding: clamp(40px, 6vw, 80px); border-radius: var(--rad-md); box-shadow: var(--shadow-soft); border-top: 8px solid var(--c-pine); z-index: 2; position: relative; }
.dp-right { display: grid; grid-template-rows: 2fr 1fr; gap: 20px; }
.dp-img { border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-soft); height: 100%; min-height: 250px; }
.dp-img img { width: 100%; height: 100%; object-fit: cover; }
.dp-brass { background: var(--c-brass); color: var(--c-white); padding: 30px; border-radius: var(--rad-md); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 1.2rem; }

@media (min-width: 992px) {
    .dual-pane-hero { grid-template-columns: 1.3fr 0.7fr; align-items: stretch; }
    .dp-left { margin-right: -60px; margin-top: 40px; margin-bottom: 40px; }
}

/* Offset Timeline */
.offset-tl-wrap { position: relative; max-width: 1000px; margin: 60px auto 0; padding: 40px 0; }
@media (min-width: 768px) {
    .offset-tl-wrap::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: var(--c-line); border-top: 2px dashed var(--c-brass); z-index: 0; }
}
.ot-grid { display: grid; grid-template-columns: 1fr; gap: 30px; position: relative; z-index: 2; }
@media (min-width: 768px) {
    .ot-grid { grid-template-columns: repeat(3, 1fr); }
    .ot-card:nth-child(even) { transform: translateY(60px); }
    .ot-card:nth-child(odd) { transform: translateY(-60px); }
}
.ot-card { background: var(--c-white); padding: 40px 30px; border-radius: var(--rad-md); box-shadow: var(--shadow-soft); border: 1px solid var(--c-line); transition: var(--trans); text-align: center; }
.ot-card:hover { border-color: var(--c-pine); box-shadow: var(--shadow-brass); }
.ot-ico { font-size: 3rem; margin-bottom: 15px; display: block; }

/* Anatomy CSS Layers */
.anat-css-wrap { max-width: 500px; margin: 60px auto 0; position: relative; padding: 40px; background: var(--c-white); border-radius: var(--rad-lg); box-shadow: var(--shadow-soft); }
.anat-bone-top { width: 100%; height: 80px; background: var(--c-line); border-radius: 40px 40px 10px 10px; margin-bottom: 5px; position: relative; }
.anat-cartilage { width: 90%; height: 20px; background: var(--c-pine-light); margin: 0 auto 10px; border-radius: 10px; }
.anat-fluid { width: 95%; height: 40px; background: var(--c-brass-light); opacity: 0.7; margin: 0 auto 10px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 0.9rem; letter-spacing: 1px; }
.anat-bone-bottom { width: 100%; height: 80px; background: var(--c-line); border-radius: 10px 10px 40px 40px; margin-top: 5px; }

/* ==========================================================================
   PROGRAM: BENTO 2X2 GRID & REVEAL CURTAINS FAQ
   ========================================================================== */
/* Bento 2x2 Grid (+ bg-1.jpg inside) */
.bento-2x2 { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
@media (min-width: 768px) { .bento-2x2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(300px, auto); } }
.b2-card { background: var(--c-white); padding: clamp(30px, 4vw, 50px); border-radius: var(--rad-md); box-shadow: var(--shadow-soft); border-top: 6px solid var(--c-pine); display: flex; flex-direction: column; justify-content: center; }
.b2-num { font-size: 1.2rem; font-weight: 900; color: var(--c-brass); text-transform: uppercase; margin-bottom: 15px; letter-spacing: 2px; }
/* Image card rule */
.b2-img { padding: 0; border-top: none; background: url('img/bg-1.jpg') center/cover; position: relative; overflow: hidden; min-height: 300px; }
.b2-img::after { content: ''; position: absolute; inset: 0; background: rgba(28, 25, 23, 0.4); }
.b2-img-txt { position: absolute; bottom: 30px; left: 30px; right: 30px; z-index: 2; color: white; font-weight: 800; font-size: 1.5rem; line-height: 1.3; }

/* Reveal Curtains FAQ */
.curtain-faq { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 768px) { .curtain-faq { grid-template-columns: repeat(2, 1fr); } }
.curtain-box { background: var(--c-white); border-radius: var(--rad-sm); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; min-height: 200px; border: 1px solid var(--c-line); }
.c-question { position: absolute; inset: 0; padding: 30px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--c-dark); background: var(--c-white); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); z-index: 2; border-bottom: 4px solid var(--c-brass); }
.c-answer { position: absolute; inset: 0; padding: 30px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--c-pine); color: white; font-size: 1.05rem; z-index: 1; }
.curtain-box:hover .c-question { transform: translateY(-100%); }

/* ==========================================================================
   MISSION: LETTERBOX SCROLL & DIAMOND HEXAGONS
   ========================================================================== */
/* Letterbox Scroll Story (+ bg.jpg) */
.letterbox-sec { width: 100%; min-height: 80vh; background: url('img/bg.jpg') center/cover fixed; position: relative; padding: 80px 20px; display: flex; justify-content: center; margin-bottom: 60px; }
.letterbox-col { width: 100%; max-width: 650px; background: rgba(250, 250, 249, 0.95); padding: clamp(40px, 6vw, 60px); border-radius: var(--rad-sm); box-shadow: 0 30px 60px rgba(0,0,0,0.2); position: relative; z-index: 2; border-left: 8px solid var(--c-pine); }

/* Diamond Hexagons (Values) */
.diamond-hex-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 60px 0; max-width: 1000px; margin: 0 auto; }
.d-hex { width: 280px; height: 280px; background: var(--c-white); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; transition: var(--trans); border: 2px solid transparent; position: relative; }
/* To add border to clip-path we use a wrapper hack */
.d-hex-outer { width: 284px; height: 284px; background: var(--c-brass); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); display: flex; align-items: center; justify-content: center; transition: var(--trans); box-shadow: var(--shadow-soft); }
.d-hex-outer:nth-child(even) { background: var(--c-pine); }
.d-hex-outer:hover { transform: scale(1.05); }
.d-hex h3 { color: var(--c-dark); font-size: 1.3rem; margin-bottom: 10px; }
.d-hex p { font-size: 0.9rem; margin: 0; line-height: 1.4; color: var(--c-text); }

/* ==========================================================================
   FORM (4 FIELDS)
   ========================================================================== */
.frm-ui { background: var(--c-white); padding: clamp(40px, 6vw, 60px); border-radius: var(--rad-md); box-shadow: var(--shadow-soft); max-width: 700px; margin: 0 auto; border-top: 8px solid var(--c-pine); }
.f-row { margin-bottom: 25px; }
.f-row label { display: block; font-weight: 800; color: var(--c-dark); margin-bottom: 8px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.f-row input, .f-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-pearl); transition: var(--trans); }
.f-row input:focus, .f-row textarea:focus { outline: none; border-color: var(--c-brass); background: var(--c-white); box-shadow: 4px 4px 0 var(--c-line); }
.f-row textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   FOOTER (HARDCODED COLORS & !IMPORTANT)
   ========================================================================== */
.site-ftr { background-color: #1c1917 !important; color: #d6d3d1 !important; padding: 80px 0 30px; margin-top: 80px; }
.ftr-g { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
@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: #ffffff !important; margin-bottom: 15px; display: block; letter-spacing: -1px; text-transform: lowercase; }
.f-logo span { color: #b45309 !important; } /* Brass */
.f-desc { font-size: 0.95rem; line-height: 1.7; font-weight: 400; color: #d6d3d1 !important; text-transform: none; }
.f-h { color: #ffffff !important; font-size: 1.1rem; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.f-links li { margin-bottom: 12px; }
.f-links a { font-weight: 600; transition: var(--trans); color: #d6d3d1 !important; text-transform: none; }
.f-links a:hover { color: #f59e0b !important; padding-left: 5px; }
.f-copy { border-top: 1px solid #44403c !important; padding-top: 30px; text-align: center; font-size: 0.95rem; color: #a8a29e !important; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
#ck-bnnr { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--c-white); padding: 25px 30px; border-radius: var(--rad-md); z-index: 9999; display: flex; flex-direction: column; gap: 15px; transform: translateY(150%); transition: 0.5s ease; box-shadow: var(--shadow-soft); border-left: 8px solid var(--c-pine); max-width: 900px; margin: 0 auto; }
#ck-bnnr.show { transform: translateY(0); }
.ck-txt { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--c-text); font-weight: 500; }
.ck-txt a { color: var(--c-brass); font-weight: 800; text-decoration: underline; }
.ck-acts { display: flex; gap: 10px; }
.b-ck { padding: 12px 25px; border: 2px solid transparent; border-radius: var(--rad-sm); font-weight: 800; cursor: pointer; flex: 1; transition: var(--trans); font-size: 0.95rem; text-align: center; font-family: inherit; text-transform: uppercase; letter-spacing: 0.5px; }
.b-ck.y { background: var(--c-pine); color: #fff; }
.b-ck.y:hover { background: var(--c-dark); }
.b-ck.n { background: var(--c-white); color: var(--c-pine); border-color: var(--c-pine); }
.b-ck.n:hover { background: var(--c-pine); color: #fff; }
@media (min-width: 768px) { #ck-bnnr { flex-direction: row; align-items: center; justify-content: space-between; } .ck-acts { width: auto; flex-shrink: 0; } .b-ck { flex: none; } }