/* ==========================================================================
   CSS VARIABLES & COPPER SAGE DESIGN (DAFIYUV.ICU)
   ========================================================================== */
:root {
    --c-sage: #5f7161; /* Sage Green */
    --c-sage-dark: #3a473d; /* Dark Sage */
    --c-copper: #b87333; /* Copper */
    --c-copper-light: #e6a869; /* Soft Copper */
    --c-cream: #faf7f2; /* Warm Cream */
    --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: 6px;
    --rad-md: 20px;
    --rad-capsule: 500px;
    
    --shadow-soft: 0 15px 35px rgba(95, 113, 97, 0.1);
    --shadow-copper: 8px 8px 0 rgba(184, 115, 51, 0.2);
    --trans: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Playfair Display', serif; /* Elegant serif for headings/body */
    background-color: var(--c-cream);
    color: var(--c-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* UI elements use Sans-serif for readability */
.btn, .nav-sage-wrap, .site-ftr, .f-row label, .matrix-title, .track-num { font-family: 'Inter', sans-serif; }

h1, h2, h3, h4 { color: var(--c-dark); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
h1 { font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -2px; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -1px; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--c-copper); }
p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin-bottom: 1.5rem; }

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; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border-bottom: 4px solid var(--c-sage); }

.nav-sage-wrap {
    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-sage-wrap { padding: 20px var(--pad-x); } }

.brand { font-size: 2.2rem; font-weight: 900; color: var(--c-sage-dark); letter-spacing: -1px; }
.brand span { color: var(--c-copper); }

.burger { display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding: 5px; }
.burger span { width: 32px; 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-copper); }

.mob-nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--c-sage-dark); padding: 15px 20px 25px; border-top: 4px solid var(--c-copper); box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.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: 16px 40px; font-weight: 700; font-size: 1.05rem; border-radius: 0; cursor: pointer; transition: var(--trans); border: 2px solid transparent; text-transform: uppercase; letter-spacing: 1px; }
.btn-c { background: var(--c-copper); color: var(--c-white); box-shadow: var(--shadow-copper); }
.btn-c:hover { background: var(--c-sage-dark); color: var(--c-white); transform: translate(-4px, -4px); box-shadow: 8px 8px 0 rgba(58, 71, 61, 1); border-color: var(--c-sage-dark); }
.btn-o { background: transparent; border-color: var(--c-dark); color: var(--c-dark); }
.btn-o:hover { background: var(--c-dark); 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: FRAMED CUTOUT HERO & FLEXIBILITY MATRIX
   ========================================================================== */
/* Framed Cutout Hero */
.frame-hero { margin: 40px var(--pad-x); padding: 60px 30px; border: 8px solid var(--c-copper); position: relative; background: var(--c-white); }
.fh-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) {
    .frame-hero { padding: 80px; }
    .fh-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.fh-img { border-radius: var(--rad-capsule); overflow: hidden; aspect-ratio: 3/4; border: 8px solid var(--c-cream); box-shadow: var(--shadow-soft); }
.fh-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* Stacking Info Cards */
.info-stack { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; }
.is-card { background: var(--c-white); padding: 40px; border-left: 6px solid var(--c-sage); box-shadow: var(--shadow-soft); }
@media (min-width: 768px) {
    .is-card { width: 80%; }
    .is-card:nth-child(even) { align-self: flex-end; border-left: none; border-right: 6px solid var(--c-copper); text-align: right; }
}

/* The Flexibility Matrix */
.matrix-wrap { background: var(--c-sage-dark); padding: 80px 0; color: white; overflow: hidden; }
.matrix-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; max-width: 800px; margin: 40px auto 0; opacity: 0.8; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.2); border-radius: 50%; justify-self: center; transition: var(--trans); }
/* Create a wave pattern with colors */
.dot.w-1 { background: var(--c-copper-light); transform: scale(1.5); }
.dot.w-2 { background: var(--c-copper); transform: scale(2); box-shadow: 0 0 10px var(--c-copper); }
@media (max-width: 768px) { .matrix-grid { grid-template-columns: repeat(5, 1fr); } }

/* ==========================================================================
   PROGRAM: HORIZONTAL SNAP TRACK & FLOATING MASONRY
   ========================================================================== */
/* Horizontal Snap Track */
.track-container { width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: 30px; padding: 40px var(--pad-x) 80px; scrollbar-width: thin; scrollbar-color: var(--c-copper) var(--c-line); }
.track-container::-webkit-scrollbar { height: 8px; }
.track-container::-webkit-scrollbar-track { background: var(--c-line); }
.track-container::-webkit-scrollbar-thumb { background-color: var(--c-copper); border-radius: 10px; }

.track-slide { flex: 0 0 90%; max-width: 600px; scroll-snap-align: center; background: var(--c-white); border-radius: var(--rad-md); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-line); }
@media (min-width: 768px) { .track-slide { flex: 0 0 60%; } }

.slide-content { padding: 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.track-num { font-size: 1.2rem; font-weight: 800; color: var(--c-copper); text-transform: uppercase; margin-bottom: 15px; letter-spacing: 2px; }

/* Special Image Slide (REQUIRED bg-1.jpg) */
.slide-img-bg { background: url('img/bg-1.jpg') center/cover; position: relative; color: white; justify-content: flex-end; }
.slide-img-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,25,23,0.9), rgba(28,25,23,0.2)); }
.slide-img-bg .slide-content { position: relative; z-index: 2; flex: none; }
.slide-img-bg h3, .slide-img-bg p { color: white; }

/* Floating Masonry FAQ */
.float-faq { display: flex; flex-wrap: wrap; gap: 30px; max-width: 1000px; margin: 0 auto; align-items: flex-start; }
.ff-card { width: 100%; background: var(--c-white); padding: 30px; border-radius: var(--rad-sm); border-top: 4px solid var(--c-sage); box-shadow: var(--shadow-soft); transition: var(--trans); }
@media (min-width: 768px) {
    .ff-card { width: calc(50% - 15px); }
    .ff-card:nth-child(even) { margin-top: 60px; border-top-color: var(--c-copper); }
}
.ff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-copper); }

/* ==========================================================================
   MISSION: STICKY SPLIT NARRATIVE & OVERLAPPING CIRCLES
   ========================================================================== */
/* Sticky Split Narrative */
.story-split { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 992px) { .story-split { flex-direction: row; align-items: flex-start; } }
.story-left { width: 100%; }
@media (min-width: 992px) { .story-left { width: 40%; position: sticky; top: 120px; } }
.story-left h1 { color: var(--c-copper); font-size: clamp(3rem, 6vw, 5rem); }
.story-right { width: 100%; font-size: 1.15rem; line-height: 1.8; }
@media (min-width: 992px) { .story-right { width: 60%; } }

/* Massive Divider (REQUIRED bg.jpg) */
.massive-img-break { width: 100%; height: 60vh; min-height: 400px; background: url('img/bg.jpg') center/cover fixed; margin: 80px 0; }

/* Overlapping Circles */
.circles-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 60px 0; }
@media (min-width: 992px) { .circles-wrap { flex-direction: row; justify-content: center; gap: -50px; } }
.circle-val { width: 300px; height: 300px; border-radius: 50%; background: var(--c-sage); color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; box-shadow: var(--shadow-soft); transition: var(--trans); position: relative; }
.circle-val h3 { color: var(--c-cream); margin-bottom: 10px; }
.circle-val p { font-size: 0.95rem; margin: 0; line-height: 1.4; color: #e7e5e4; font-family: 'Inter', sans-serif; }
@media (min-width: 992px) {
    .cv-1 { z-index: 3; transform: translateX(40px); background: var(--c-copper); }
    .cv-2 { z-index: 2; width: 350px; height: 350px; background: var(--c-dark); }
    .cv-3 { z-index: 1; transform: translateX(-40px); background: var(--c-sage); }
    .circle-val:hover { z-index: 10; transform: scale(1.05); }
}

/* ==========================================================================
   FORM (4 FIELDS)
   ========================================================================== */
.frm-ui { background: var(--c-white); padding: clamp(40px, 6vw, 60px); border-radius: 0; box-shadow: var(--shadow-soft); max-width: 700px; margin: 0 auto; border: 1px solid var(--c-line); }
.f-row { margin-bottom: 25px; }
.f-row label { display: block; font-family: 'Inter', sans-serif; font-weight: 800; color: var(--c-sage-dark); margin-bottom: 8px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.f-row input, .f-row textarea { width: 100%; padding: 18px; border: 1px solid var(--c-line); background: var(--c-cream); font-family: 'Inter', sans-serif; font-size: 1rem; transition: var(--trans); }
.f-row input:focus, .f-row textarea:focus { outline: none; border-color: var(--c-copper); background: var(--c-white); box-shadow: inset 4px 0 0 var(--c-copper); }
.f-row textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   FOOTER (STRICT DATES)
   ========================================================================== */
.site-ftr { background: var(--c-dark); color: #d6d3d1; 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: #fff; margin-bottom: 15px; display: block; letter-spacing: -1px; }
.f-logo span { color: var(--c-copper); }
.f-desc { font-size: 0.95rem; line-height: 1.7; font-family: 'Inter', sans-serif; }
.f-h { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-family: 'Inter', sans-serif; }
.f-links li { margin-bottom: 12px; }
.f-links a { font-weight: 500; transition: var(--trans); font-family: 'Inter', sans-serif; }
.f-links a:hover { color: var(--c-copper-light); padding-left: 5px; }
.f-copy { border-top: 1px solid #3a473d; padding-top: 30px; text-align: center; font-size: 0.9rem; color: #a8a29e; font-family: 'Inter', sans-serif; }

/* ==========================================================================
   COOKIE BANNER (2 BUTTONS, LINK IN TEXT)
   ========================================================================== */
#ck-bnnr { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--c-white); padding: 25px 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; transform: translateY(150%); transition: 0.5s ease; box-shadow: var(--shadow-soft); border: 2px solid var(--c-sage); max-width: 900px; margin: 0 auto; font-family: 'Inter', sans-serif; }
#ck-bnnr.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-copper); font-weight: 800; text-decoration: underline; }
.ck-acts { display: flex; gap: 10px; }
.b-ck { padding: 12px 25px; border: 1px solid var(--c-sage); font-weight: 800; cursor: pointer; flex: 1; transition: var(--trans); font-size: 0.9rem; text-align: center; font-family: inherit; text-transform: uppercase; letter-spacing: 1px; }
.b-ck.y { background: var(--c-sage); color: #fff; }
.b-ck.y:hover { background: var(--c-dark); border-color: var(--c-dark); }
.b-ck.n { background: var(--c-cream); color: var(--c-dark); }
.b-ck.n:hover { background: var(--c-line); }
@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; } }