/* ==========================================================================
   CSS VARIABLES & MATCHA TERRACOTTA DESIGN (BUYIBOJ.ONE)
   ========================================================================== */
:root {
    --c-matcha-dark: #3f6212; /* Lime 900 */
    --c-matcha: #65a30d; /* Lime 600 */
    --c-matcha-light: #ecfccb; /* Lime 50 */
    --c-terra: #b45309; /* Amber 700 */
    --c-terra-light: #f59e0b; /* Amber 500 */
    --c-bone: #fafaf9; /* Stone 50 */
    --c-dark: #292524; /* Stone 800 */
    --c-text: #57534e; /* Stone 600 */
    --c-line: #e7e5e4; /* Stone 200 */
    --c-white: #ffffff;

    --pad-x: clamp(15px, 5vw, 30px);
    --pad-y: clamp(80px, 10vw, 140px);
    
    --rad-sm: 8px;
    --rad-md: 20px;
    --rad-pill: 100px;
    
    --shadow-float: 0 20px 40px rgba(63, 98, 18, 0.08);
    --shadow-sharp: 8px 8px 0 rgba(180, 83, 9, 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: 'Figtree', system-ui, sans-serif;
    background-color: var(--c-bone);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--c-dark); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); 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-matcha-dark); }
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-md); }
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 4px 20px rgba(0,0,0,0.03); }

.m-nav-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) { .m-nav-wrap { padding: 20px var(--pad-x); } }

.brand { font-size: 2.2rem; font-weight: 900; color: var(--c-matcha-dark); letter-spacing: -1px; }
.brand span { color: var(--c-terra); }

.burger { display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding: 5px; }
.burger span { width: 32px; height: 3px; background: var(--c-dark); 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-terra); }

.mob-nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--c-matcha-dark); padding: 15px 20px 25px; box-shadow: 0 20px 40px 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); }
.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.1rem; border-radius: var(--rad-pill); cursor: pointer; transition: var(--trans); border: 2px solid transparent; text-align: center; }
.btn-m { background: var(--c-matcha); color: var(--c-white); box-shadow: var(--shadow-float); }
.btn-m:hover { background: var(--c-dark); transform: translateY(-3px); }
.btn-t { background: transparent; border-color: var(--c-terra); color: var(--c-terra); }
.btn-t:hover { background: var(--c-terra); 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: SPLIT DIAGONAL & ANATOMY TIMELINE
   ========================================================================== */
.hero-diag { position: relative; padding: 100px 20px; overflow: hidden; }
.hero-diag::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: var(--c-matcha-light); transform: rotate(-10deg); z-index: -1; }
.hero-diag .g-2 { position: relative; z-index: 10; }
.hero-diag img { box-shadow: var(--shadow-float); border: 4px solid var(--c-white); transform: rotate(2deg); transition: var(--trans); }
.hero-diag img:hover { transform: rotate(0); }

/* Cards Grid */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.cg-item { background: var(--c-white); padding: 40px 30px; border-radius: var(--rad-md); box-shadow: var(--shadow-float); border-bottom: 6px solid var(--c-matcha); transition: var(--trans); }
.cg-item:hover { transform: translateY(-8px); border-color: var(--c-terra); }
.cg-ico { font-size: 3rem; margin-bottom: 20px; display: block; }

/* The Joint Anatomy Timeline (Horizontal Panels) */
.anatomy-panel { background: var(--c-white); padding: 60px 40px; border-radius: var(--rad-md); box-shadow: var(--shadow-float); margin-bottom: 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--c-line); }
.anatomy-panel:last-child { margin-bottom: 0; }
.ap-num { position: absolute; right: 20px; bottom: -20px; font-size: 10rem; font-weight: 900; color: var(--c-matcha-light); line-height: 1; z-index: 0; pointer-events: none; }
.ap-content { position: relative; z-index: 1; max-width: 800px; }
.ap-content h3 { font-size: 2rem; margin-bottom: 15px; color: var(--c-dark); }
.ap-content p { margin: 0; }
@media (min-width: 768px) {
    .anatomy-panel:nth-child(even) { align-items: flex-end; text-align: right; }
    .anatomy-panel:nth-child(even) .ap-num { right: auto; left: 20px; color: var(--c-bone); }
}

/* ==========================================================================
   PROGRAM: ASYMMETRIC GRID & CONNECTING ZIG-ZAG
   ========================================================================== */
.asym-hero { padding-bottom: 0; }
.asym-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
@media (min-width: 992px) { 
    .asym-grid { grid-template-columns: 5fr 7fr; gap: 60px; } 
    .ag-txt { padding-right: 40px; }
}
.ag-img img { box-shadow: var(--shadow-sharp); border: 2px solid var(--c-dark); }

/* Connecting Zig-Zag Path */
.zigzag-wrap { position: relative; max-width: 1000px; margin: 0 auto; padding: 40px 0; }
.zz-step { display: flex; flex-direction: column; gap: 20px; margin-bottom: 60px; position: relative; }
.zz-step:last-child { margin-bottom: 0; }
.zz-box { background: var(--c-white); padding: 40px; border-radius: var(--rad-md); box-shadow: var(--shadow-float); border: 2px solid var(--c-line); position: relative; z-index: 2; }
.zz-box h3 { color: var(--c-terra); font-size: 1.8rem; }
@media (min-width: 768px) {
    .zz-step { flex-direction: row; align-items: center; justify-content: space-between; }
    .zz-box { width: 45%; }
    .zz-step:nth-child(even) { flex-direction: row-reverse; }
    /* The Line */
    .zz-step::before { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; background: var(--c-matcha); border-radius: 50%; transform: translate(-50%, -50%); z-index: 3; box-shadow: 0 0 0 6px var(--c-white); }
    .zz-step::after { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 4px; background: var(--c-matcha-light); z-index: 1; }
    .zz-step:nth-child(even)::after { left: auto; right: 50%; }
    /* Vertical connecting line */
    .zigzag-wrap::before { content: ''; position: absolute; top: 40px; bottom: 40px; left: 50%; width: 4px; background: var(--c-matcha-light); transform: translateX(-50%); z-index: 1; }
}

/* Minimalist Line Toggle FAQ */
.line-faq { max-width: 800px; margin: 0 auto; }
.lf-item { border-bottom: 2px solid var(--c-dark); padding: 30px 0; cursor: pointer; transition: var(--trans); }
.lf-item:first-child { border-top: 2px solid var(--c-dark); }
.lf-q { font-size: 1.4rem; font-weight: 900; color: var(--c-dark); display: flex; justify-content: space-between; align-items: center; }
.lf-q::after { content: '↓'; font-size: 1.5rem; color: var(--c-terra); transition: var(--trans); }
.lf-a { max-height: 0; overflow: hidden; opacity: 0; transition: var(--trans); margin-top: 0; color: var(--c-text); font-size: 1.1rem; }
.lf-item:hover .lf-a { max-height: 200px; opacity: 1; margin-top: 15px; }
.lf-item:hover .lf-q::after { transform: rotate(180deg); }

/* ==========================================================================
   MISSION: CINEMATIC FULL-BLEED & PILL CLUSTER
   ========================================================================== */
.cine-hero { height: 70vh; background: var(--c-dark); display: flex; align-items: center; justify-content: center; text-align: center; position: relative; padding: 20px; }
.cine-hero::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: url('img/bg-1.jpg') center/cover; opacity: 0.3; }
.cine-txt { position: relative; z-index: 10; max-width: 900px; }
.cine-txt h1 { color: var(--c-white); font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 20px; }
.cine-txt p { color: var(--c-line); font-size: 1.5rem; }

.history-txt { max-width: 800px; margin: 0 auto; font-size: 1.2rem; line-height: 1.8; color: var(--c-dark); text-align: center; }
.history-txt span { color: var(--c-terra); font-weight: 900; font-size: 1.5rem; }

/* Pill Cluster */
.pill-cluster { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1000px; margin: 50px auto 0; }
.p-cluster-item { background: var(--c-white); padding: 20px 40px; border-radius: var(--rad-pill); border: 2px solid var(--c-dark); font-weight: 800; font-size: 1.2rem; color: var(--c-dark); transition: var(--trans); cursor: default; }
.p-cluster-item:hover { background: var(--c-matcha); color: var(--c-white); border-color: var(--c-matcha); transform: scale(1.05); }
.p-cluster-item:nth-child(even) { background: var(--c-matcha-light); border-color: var(--c-matcha-light); }
.p-cluster-item:nth-child(even):hover { background: var(--c-terra); color: var(--c-white); border-color: var(--c-terra); }

/* ==========================================================================
   FORM (4 FIELDS)
   ========================================================================== */
.frm-wrap { background: var(--c-white); padding: clamp(40px, 6vw, 60px); border-radius: var(--rad-md); box-shadow: var(--shadow-float); max-width: 700px; margin: 0 auto; position: relative; overflow: hidden; }
.frm-wrap::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--c-terra); }
.f-row { margin-bottom: 25px; }
.f-row label { display: block; font-weight: 800; color: var(--c-dark); margin-bottom: 10px; font-size: 0.95rem; }
.f-row input, .f-row textarea { width: 100%; padding: 16px; border: 2px solid var(--c-line); border-radius: var(--rad-sm); font-family: inherit; font-size: 1rem; background: var(--c-bone); transition: var(--trans); }
.f-row input:focus, .f-row textarea:focus { outline: none; border-color: var(--c-matcha); background: var(--c-white); box-shadow: 0 0 0 4px var(--c-matcha-light); }
.f-row textarea { min-height: 150px; 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-terra); }
.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 { font-weight: 600; transition: var(--trans); }
.f-links a:hover { color: var(--c-terra); padding-left: 5px; }
.f-copy { border-top: 1px solid #44403c; padding-top: 30px; text-align: center; font-size: 0.95rem; color: #a8a29e; }

/* ==========================================================================
   COOKIE BANNER (2 BUTTONS, LINK IN TEXT)
   ========================================================================== */
#ck-bnnr { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--c-white); padding: 30px; border-radius: var(--rad-md); z-index: 9999; display: flex; flex-direction: column; gap: 20px; transform: translateY(150%); transition: 0.5s ease; box-shadow: var(--shadow-float); border: 2px solid var(--c-matcha); 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-terra); font-weight: 800; text-decoration: underline; }
.ck-acts { display: flex; gap: 10px; }
.b-ck { padding: 14px 25px; border: none; border-radius: var(--rad-pill); font-weight: 800; cursor: pointer; flex: 1; transition: var(--trans); font-size: 0.95rem; text-align: center; font-family: inherit; }
.b-ck.y { background: var(--c-matcha); color: #fff; }
.b-ck.y:hover { background: var(--c-dark); }
.b-ck.n { background: var(--c-line); color: var(--c-dark); }
.b-ck.n:hover { background: var(--c-dark); 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; } }