/* ==========================================================================
   CSS VARIABLES & SAPPHIRE MUSTARD DESIGN (CEKEWAH.ICU)
   ========================================================================== */
:root {
    --c-sapphire: #0f2c59; /* Deep Sapphire Blue */
    --c-sapphire-light: #1e40af; /* Blue 800 */
    --c-mustard: #eab308; /* Yellow 500 */
    --c-mustard-dark: #ca8a04; /* Yellow 600 */
    --c-ice: #f0f9ff; /* Sky 50 - Ice Blue background */
    --c-dark: #0f172a; /* Slate 900 */
    --c-text: #475569; /* Slate 600 */
    --c-white: #ffffff;
    --c-line: #cbd5e1; /* Slate 300 */

    --pad-x: clamp(15px, 5vw, 30px);
    --pad-y: clamp(70px, 9vw, 120px);
    
    --rad-sm: 4px;
    --rad-md: 12px;
    --rad-drop: 50% 50% 0 50%;
    --rad-arch: 200px 200px 0 0;
    
    --shadow-soft: 0 15px 35px rgba(15, 44, 89, 0.08);
    --shadow-mustard: 8px 8px 0 rgba(234, 179, 8, 0.3);
    --trans: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--c-ice);
    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: -0.5px; }
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-sapphire); }
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); }

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

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

.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-sapphire); }

.mob-nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--c-sapphire); padding: 15px 20px 25px; border-top: 4px solid var(--c-mustard); 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: 18px 45px; font-weight: 800; font-size: 1.05rem; border-radius: 0; cursor: pointer; transition: var(--trans); border: 2px solid transparent; text-transform: uppercase; letter-spacing: 1px; }
.btn-s { background: var(--c-sapphire); color: var(--c-white); box-shadow: var(--shadow-mustard); }
.btn-s:hover { background: var(--c-mustard); color: var(--c-dark); transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--c-sapphire); border-color: var(--c-sapphire); }
.btn-o { background: var(--c-white); border-color: var(--c-sapphire); color: var(--c-sapphire); }
.btn-o:hover { background: var(--c-sapphire); 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: FLOATING FRAME MATRIX & SYNOVIAL DROP CARDS
   ========================================================================== */
/* Floating Frame Matrix Hero */
.matrix-hero { padding: 60px 10px; max-width: 100%;
    overflow: hidden; }
.mh-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) { .mh-grid { grid-template-columns: 1.2fr 0.8fr; } }

.mh-txt-box { position: relative; padding: clamp(30px, 5vw, 60px); background: var(--c-white); z-index: 2; border: 1px solid var(--c-line); }
.mh-txt-box::before { content: ''; position: absolute; top: 15px; left: 15px; width: 100%; height: 100%; border: 2px solid var(--c-sapphire); z-index: -1; pointer-events: none; }

.mh-img-box { position: relative; height: 100%; min-height: 350px; z-index: 1; }
.mh-img-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 2; }
.mh-img-box::after { content: ''; position: absolute; bottom: -20px; right: -20px; width: 80%; height: 80%; background: var(--c-mustard); z-index: 1; }

/* Synovial Drop Cards */
.drop-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
@media (min-width: 768px) { .drop-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.drop-card { background: var(--c-white); padding: 50px 30px; border-radius: var(--rad-drop); box-shadow: var(--shadow-soft); text-align: center; border: 2px solid transparent; transition: var(--trans); }
.drop-card:hover { border-color: var(--c-mustard); transform: translateY(-10px); }
.d-ico { font-size: 3rem; margin-bottom: 20px; display: block; color: var(--c-sapphire); }

/* Mobility Radar */
.radar-wrap { max-width: 600px; margin: 60px auto 0; aspect-ratio: 1/1; border-radius: 50%; background: radial-gradient(circle, var(--c-white) 0%, var(--c-ice) 70%); position: relative; border: 2px solid var(--c-line); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); overflow: hidden; }
.radar-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--c-sapphire); opacity: 0.3; }
.rr-1 { width: 33%; height: 33%; }
.rr-2 { width: 66%; height: 66%; }
.radar-core { background: var(--c-sapphire); color: white; width: 140px; height: 140px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; box-shadow: 0 0 30px rgba(15, 44, 89, 0.4); text-align: center; line-height: 1.2; font-weight: 800; }
.radar-core span { font-size: 0.8rem; color: var(--c-mustard); text-transform: uppercase; margin-bottom: 5px; }
.radar-sweep { position: absolute; width: 50%; height: 50%; top: 0; left: 50%; transform-origin: bottom left; background: linear-gradient(90deg, rgba(234, 179, 8, 0.4) 0%, transparent 100%); animation: radar 4s linear infinite; }
@keyframes radar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==========================================================================
   PROGRAM: ALTERNATING TRACK LINES & 3D HOVER FLIP PANELS
   ========================================================================== */
/* Alternating Track Lines */
.track-wrapper { position: relative; max-width: 900px; margin: 0 auto; padding: 40px 0; }
.track-wrapper::before { content: ''; position: absolute; top: 0; bottom: 0; left: 20px; width: 4px; background: var(--c-line); border-radius: 2px; }
@media (min-width: 768px) { .track-wrapper::before { left: 50%; transform: translateX(-2px); } }

.track-step { position: relative; padding-left: 60px; margin-bottom: 60px; width: 100%; }
.ts-dot { position: absolute; left: 12px; top: 30px; width: 20px; height: 20px; background: var(--c-mustard); border-radius: 50%; box-shadow: 0 0 0 8px var(--c-white); z-index: 2; }
.ts-content { background: var(--c-white); padding: 40px; border-radius: var(--rad-sm); box-shadow: var(--shadow-soft); position: relative; border-top: 4px solid var(--c-sapphire); }

@media (min-width: 768px) {
    .track-step { width: 50%; padding-left: 0; padding-right: 50px; }
    .track-step:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 50px; }
    .ts-dot { left: 100%; transform: translateX(-50%); }
    .track-step:nth-child(even) .ts-dot { left: 0; }
}

/* Taped Polaroid Image (REQUIRED bg-1.jpg) */
.taped-polaroid { width: 100%; max-width: 400px; background: var(--c-white); padding: 15px 15px 50px 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); transform: rotate(-3deg); position: relative; margin: 30px auto; border: 1px solid var(--c-line); }
.taped-polaroid img { width: 100%; height: auto; border-radius: 0; }
.taped-polaroid::before { content: ''; position: absolute; top: -15px; left: 50%; transform: translateX(-50%) rotate(5deg); width: 100px; height: 30px; background: rgba(255,255,255,0.7); backdrop-filter: blur(4px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.tp-caption { position: absolute; bottom: 15px; width: 100%; text-align: center; font-family: 'Kalam', cursive, sans-serif; font-size: 1.1rem; color: var(--c-dark); font-weight: bold; left: 0; }

/* 3D Hover Flip Panels FAQ */
.flip-faq-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .flip-faq-grid { grid-template-columns: repeat(2, 1fr); } }
.flip-panel { perspective: 1000px; height: 200px; cursor: pointer; }
.fp-inner { width: 100%; height: 100%; position: relative; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.flip-panel:hover .fp-inner { transform: rotateX(180deg); }
.fp-front, .fp-back { width: 100%; height: 100%; position: absolute; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; border-radius: var(--rad-sm); box-shadow: var(--shadow-soft); }
.fp-front { background: var(--c-white); border: 2px solid var(--c-line); }
.fp-front h4 { margin: 0; color: var(--c-sapphire); font-size: 1.15rem; }
.fp-back { background: var(--c-sapphire); color: white; transform: rotateX(180deg); flex-direction: column; }
.fp-back p { margin: 0; font-size: 1rem; color: var(--c-ice); line-height: 1.5; }

/* ==========================================================================
   MISSION: STICKY ARCH WINDOW & TILTED BADGES
   ========================================================================== */
/* Sticky Arch Window (REQUIRED bg.jpg) */
.arch-history { display: flex; flex-direction: column; gap: 40px; margin-bottom: 60px; }
@media (min-width: 992px) {
    .arch-history { flex-direction: row; align-items: flex-start; }
    .ah-left { width: 45%; position: sticky; top: 120px; }
    .ah-right { width: 55%; padding-left: 40px; }
}
.arch-img-window { width: 100%; aspect-ratio: 3/4; background: url('img/bg.jpg') center/cover; border-radius: var(--rad-arch); box-shadow: var(--shadow-soft); border: 8px solid var(--c-white); position: relative; }
.arch-img-window::after { content: 'Era 2020'; position: absolute; bottom: -20px; right: 20px; background: var(--c-mustard); color: var(--c-dark); padding: 10px 20px; font-weight: 900; border-radius: var(--rad-sm); box-shadow: var(--shadow-soft); }

/* Tilted Badges (Values) */
.badge-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 60px 0; }
.badge { background: var(--c-white); width: 280px; padding: 40px 30px; text-align: center; border-radius: var(--rad-sm); box-shadow: var(--shadow-soft); transition: var(--trans); border: 2px dashed var(--c-line); }
@media (min-width: 768px) {
    .badge:nth-child(1) { transform: rotate(-5deg); }
    .badge:nth-child(2) { transform: rotate(3deg) translateY(20px); border-color: var(--c-mustard); }
    .badge:nth-child(3) { transform: rotate(-4deg); }
    .badge:hover { transform: rotate(0) scale(1.05); border-style: solid; border-color: var(--c-sapphire); z-index: 10; }
}

/* ==========================================================================
   FORM (4 FIELDS)
   ========================================================================== */
.frm-ui { background: var(--c-white); padding: clamp(40px, 6vw, 60px); border-radius: var(--rad-sm); box-shadow: var(--shadow-soft); max-width: 700px; margin: 0 auto; border-top: 8px solid var(--c-sapphire); }
.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-ice); transition: var(--trans); }
.f-row input:focus, .f-row textarea:focus { outline: none; border-color: var(--c-mustard); background: var(--c-white); box-shadow: inset 4px 0 0 var(--c-mustard); }
.f-row textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   FOOTER (HARDCODED COLORS & !IMPORTANT)
   ========================================================================== */
.site-ftr { background-color: #0f2c59 !important; color: #e2e8f0 !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: uppercase; }
.f-logo span { color: #eab308 !important; } /* Mustard */
.f-desc { font-size: 0.95rem; line-height: 1.7; font-weight: 400; color: #e2e8f0 !important; }
.f-h { color: #ffffff !important; font-size: 1.1rem; font-weight: 800; 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: #e2e8f0 !important; }
.f-links a:hover { color: #eab308 !important; padding-left: 5px; }
.f-copy { border-top: 1px solid #1e3a8a !important; padding-top: 30px; text-align: center; font-size: 0.95rem; color: #94a3b8 !important; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
#ck-bnnr { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--c-white); padding: 25px 30px; border-radius: var(--rad-sm); 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-mustard); max-width: 900px; margin: 0 auto; border: 1px solid var(--c-line); }
#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-sapphire); 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-sapphire); color: #fff; }
.b-ck.y:hover { background: var(--c-dark); }
.b-ck.n { background: var(--c-white); color: var(--c-sapphire); border-color: var(--c-sapphire); }
.b-ck.n:hover { background: var(--c-ice); }
@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; } }