@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=Orbitron:wght@600;700;800;900&family=Oxanium:wght@600;700&display=swap');

:root{--ink:#252520;--muted:#696d65;--red:#d10d18;--line:#e3e5de;--soft:#f6f7f3}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;color:var(--ink);background:white;font:16px/1.6 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}a:focus-visible,summary:focus-visible{outline:2px solid var(--red);outline-offset:5px}.wrap{width:min(1200px,calc(100% - 96px));margin:auto}.header{height:106px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-family:Georgia,'Times New Roman',serif;display:inline-flex;align-items:center;gap:12px;font-size:34px;letter-spacing:-1.2px;font-weight:400;line-height:1}.brand-logo{width:36px;height:34px;object-fit:contain;flex-shrink:0;display:block}.brand-name{font-family:Georgia,'Times New Roman',serif;font-size:34px;color:var(--ink);letter-spacing:-1.2px;font-weight:400}nav{display:flex;gap:36px;font-size:14px}nav a:hover{color:var(--red)}nav a.nav-active{color:var(--red);font-weight:700}.outline-button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 26px;border-radius:30px;border:1px solid #35352f;font-size:14px;line-height:1.35;transition:background .2s,color .2s}.outline-button{background:rgba(255,255,255,.9)}.outline-button:hover{background:#f3f4ef}.button{gap:24px;background:var(--red);color:#fff;border-color:var(--red);box-shadow:0 9px 20px #8327221a}.button:hover{background:#b80b15}.button span{font-size:20px;line-height:1}.header-button{padding:10px 26px}.hero{position:relative;isolation:isolate;min-height:830px;overflow:hidden;background:#fff}.hero-landscape{position:absolute;inset:0;z-index:-1;background-image:url('/ruta-hero-business.png');background-size:100% auto;background-position:center bottom;background-repeat:no-repeat}.hero-content{max-width:900px;margin:auto;text-align:center;padding:92px 20px 140px}.pill{display:inline-block;border-radius:24px;background:#fff4f0;color:#724d45;padding:5px 15px;font-size:12px}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.08;letter-spacing:-2px}h1{font-size:clamp(46px,4.6vw,66px);margin:28px 0}.hero-description{font-size:17px;line-height:1.8;color:#595e57;margin:0 0 28px}.hero-actions{display:flex;justify-content:center;gap:12px}.hero-topics{margin-top:48px}.hero-topics p{font-size:12px;color:#6a6d65;margin:0 0 12px}.hero-topics div{display:flex;justify-content:center;align-items:center;gap:19px;font-size:16px}.hero-topics b{color:var(--red)}.section{padding-top:95px;padding-bottom:95px}.section-heading{text-align:center}.eyebrow{color:#73766f;font-size:11px;letter-spacing:1.7px}.section-heading h2,.compat-copy h2{font-size:48px;margin:18px 0 22px}.section-heading p{margin:0;color:var(--muted);font-size:17px;line-height:1.75}.bento{display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:310px 245px;gap:18px;margin-top:50px}.tile{display:flex;flex-direction:column;justify-content:space-between;padding:26px 30px;position:relative;overflow:hidden;border-radius:20px;border:1px solid #e5e6e1;box-shadow:0 13px 42px #21282009;background:#fafbf9}.tile-finance{grid-column:span 7;background:linear-gradient(115deg,#fff8f4 5%,#fff 72%)}.tile-stock{grid-column:span 5;background:#f3f5f1}.tile-docs{grid-column:span 5;background:#fff}.tile-payroll{grid-column:span 7;background:#a83931;color:#fff;border-color:#a83931}.tile-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:1.4px}.tile-head span:last-child{color:var(--red);font-size:20px;line-height:1;letter-spacing:0}.tile-payroll .tile-head span:last-child{color:#f9d7cc}.tile h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.7px;font-size:29px;line-height:1.15;margin:0 0 12px}.tile p{color:#62675f;max-width:365px;margin:0;font-size:15px;line-height:1.7}.tile-payroll p{color:#fbeae6}.tile-finance:after{content:'₴';position:absolute;right:55px;top:52px;color:#e5b6ab;font:190px/1 Georgia;opacity:.42;transform:rotate(-16deg);pointer-events:none}.tile-stock:after{content:'□';position:absolute;right:34px;top:19px;color:#cfd7cb;font:180px/1 Georgia;opacity:.5;transform:rotate(14deg);pointer-events:none}.tile-content{position:relative;z-index:1}.bento-note{max-width:720px;color:#858981;font-size:12px;margin:18px 0 0}.compat-section{background:#f7f8f5}.compatibility{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding-top:88px;padding-bottom:88px;align-items:center}.compat-copy h2{margin-bottom:26px}.compat-copy>p{max-width:470px;color:var(--muted);font-size:16px;line-height:1.75}.compat-tags{max-width:510px;display:flex;gap:10px;flex-wrap:wrap;margin:30px 0}.compat-tags span{border:1px solid #d6d8d1;border-radius:22px;background:#fff;padding:8px 14px;font-size:13px}.compat-copy small{display:block;color:#81867e;font-size:12px;line-height:1.7;max-width:475px}.compat-art{height:450px;border-radius:20px;background:#fff url('/ruta-section-business.png') center center/cover no-repeat;box-shadow:0 13px 42px #2128200b;border:1px solid #edf0e9}.faq-items{max-width:790px;margin:42px auto 0}details{border-top:1px solid var(--line)}details:last-child{border-bottom:1px solid var(--line)}summary{display:flex;justify-content:space-between;gap:20px;padding:21px 0;cursor:pointer;list-style:none;font-size:17px}summary::-webkit-details-marker{display:none}summary span{font-size:24px;line-height:1;transition:transform .2s}details[open] summary span{transform:rotate(45deg);color:var(--red)}details p{margin:0 40px 24px 0;color:var(--muted);font-size:15px;line-height:1.7}.footer{border-top:1px solid var(--line)}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:32px 0}.footer-top .brand{font-size:28px;gap:10px}.footer-top .brand-logo{width:30px;height:28px}.footer-top .brand-name{font-size:28px}.back-top{font-size:14px}.footer-bottom{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;padding:19px 0 29px}.skip{position:absolute;left:20px;top:-100px;background:white;padding:10px;z-index:10}.skip:focus{top:10px}@media(max-width:1050px){.wrap{width:calc(100% - 64px)}.header nav{gap:19px}.hero{min-height:800px}.hero-landscape{background-size:100% auto}.compatibility{gap:32px}.compat-art{height:400px}.section-heading h2,.compat-copy h2{font-size:43px}}@media(max-width:700px){.wrap{width:calc(100% - 40px)}.header{height:84px}.brand{font-size:28px;gap:9px}.brand-logo{width:30px;height:28px}.brand-name{font-size:28px}.header nav{display:none}.header-button{font-size:12px;min-height:39px;padding:9px 17px}.hero{min-height:790px}.hero-landscape{background-size:auto 360px;background-position:center bottom}.hero-content{padding:50px 20px 215px}.pill{font-size:11px}h1{font-size:clamp(35px,8.2vw,48px);letter-spacing:-1.2px;margin:26px 0;line-height:1.14}.hero-description{font-size:15px;line-height:1.75;margin:0 auto 25px;max-width:440px}.desktop{display:none}.hero-actions{flex-direction:column;align-items:center;gap:9px}.hero-actions a{min-width:240px;padding:12px 19px;font-size:14px;min-height:46px}.hero-topics{margin-top:33px}.hero-topics p{font-size:12px}.hero-topics div{gap:9px;font-size:13px}.section{padding-top:60px;padding-bottom:60px}.section-heading h2,.compat-copy h2{font-size:36px;letter-spacing:-1.2px}.section-heading p{font-size:16px}.bento{display:flex;flex-direction:column;gap:12px;margin-top:33px}.tile{min-height:235px;padding:21px 23px;border-radius:17px}.tile-finance{min-height:265px}.tile h3{font-size:26px}.tile p{font-size:15px}.tile-finance:after{right:18px;top:38px;font-size:140px}.tile-stock:after{right:15px;top:15px;font-size:130px}.compatibility{display:block;padding-top:60px;padding-bottom:60px}.compat-copy>p{font-size:16px}.compat-tags{margin:25px 0}.compat-art{height:280px;margin-top:30px}.faq-items{margin-top:30px}summary{font-size:16px;padding:19px 0}details p{font-size:15px;margin-right:20px}.footer-top{flex-wrap:wrap;gap:20px;padding:26px 0}.footer-top nav{order:3;width:100%;justify-content:space-between;gap:12px;font-size:13px}.back-top{margin-left:auto;font-size:13px}.footer-bottom{font-size:12px;padding-top:10px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* --- Roadmap Styles --- */
.roadmap-hero{padding:60px 20px 30px;text-align:center;max-width:860px;margin:auto}
.roadmap-hero .eyebrow{display:block;margin-bottom:12px}
.roadmap-hero h1{font-size:clamp(40px,4.5vw,56px);margin:16px 0}
.roadmap-hero p{font-size:17px;line-height:1.75;color:var(--muted);margin:0 auto 24px}
.roadmap-timeline{display:flex;flex-direction:column;gap:32px;margin:30px auto 60px;max-width:960px}
.milestone{background:#fafbf9;border:1px solid #e5e6e1;border-radius:20px;padding:34px 38px;box-shadow:0 13px 42px #21282008;transition:box-shadow .2s}
.milestone:hover{box-shadow:0 16px 48px #21282012}
.milestone-active{border-color:#d10d18;background:linear-gradient(115deg,#fff8f4 0%,#fff 85%)}
.milestone-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #eceee7}
.milestone-meta{display:flex;align-items:center;gap:14px}
.milestone-quarter{font-size:12px;font-weight:700;letter-spacing:1.4px;color:var(--muted)}
.milestone-version{display:inline-flex;align-items:center;padding:3px 10px;border-radius:6px;font-family:'Orbitron',monospace;font-size:11px;font-weight:700;letter-spacing:0.6px;background:#f0f2eb;color:#2b2e29}
.milestone-active .milestone-version{background:#fff0f0;color:#d10d18;border:1px solid rgba(209,13,24,0.25)}
.milestone-tag{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600}
.tag-done{background:#e8f5e9;color:#2e7d32}
.tag-progress{background:#fff4f0;color:#d10d18;border:1px solid #f8b10d}
.tag-planned{background:#f0f2ed;color:#555952}
.milestone-title{font-family:Georgia,'Times New Roman',serif;font-size:26px;font-weight:400;line-height:1.2;margin:0 0 10px;color:var(--ink);letter-spacing:-.8px}
.milestone-desc{font-size:15px;color:var(--muted);line-height:1.7;margin:0 0 22px}
.milestone-features{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:14px}
.milestone-features li{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.55;color:#353833}
.feature-icon{flex-shrink:0;width:18px;height:18px;margin-top:2px}
.icon-done{color:#2e7d32}
.icon-progress{color:#d10d18}
.icon-planned{color:#8b9087}
.roadmap-release-step{display:flex;align-items:center;gap:24px;width:100%;margin:4px 0}
.release-line{flex:1;height:0;border-top:1.5px dashed #b8beb2}
.release-label{font-family:'Orbitron',monospace;font-size:13px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#3b3f37;white-space:nowrap}
.roadmap-release-step.release-active .release-line{border-top-color:#d10d18}
.roadmap-release-step.release-active .release-label{color:#d10d18}
.roadmap-cta-box{background:#f7f8f5;border:1px solid #e3e5de;border-radius:24px;padding:48px 36px;text-align:center;max-width:960px;margin:20px auto 80px}
.roadmap-cta-box h3{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:400;margin:0 0 14px;letter-spacing:-1px}
.roadmap-cta-box p{color:var(--muted);max-width:620px;margin:0 auto 28px;font-size:16px;line-height:1.75}

/* ==========================================================================
   Developer Page Styles (Ruta для розробників) — єдиний дизайн-код
   ========================================================================== */

/* Спільні класи секцій розробника */
.dev-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  background-color: #ffffff;
}

.dev-section-soft {
  background-color: #f7f8f5;
}

.dev-section-head {
  text-align: center;
  margin-bottom: 50px;
}

.dev-section-head .eyebrow {
  display: block;
  text-transform: uppercase;
}

.dev-section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--ink);
  max-width: 860px;
  margin: 18px auto 22px;
}

.dev-section-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
}

/* Бейдж статусу 'У розробці' у Hero */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #fff4f0;
  color: var(--red);
  border: 1px solid rgba(209, 13, 24, 0.25);
  margin-bottom: 22px;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.hero-status-pill:hover {
  background: #ffebe6;
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(209, 13, 24, 0.12);
  transform: translateY(-1px);
}

.hero-status-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(209, 13, 24, 0.25);
  animation: pulse-dot-anim 2s infinite ease-in-out;
}

@keyframes pulse-dot-anim {
  0% { box-shadow: 0 0 0 0 rgba(209, 13, 24, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(209, 13, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(209, 13, 24, 0); }
}

.hero-status-pill .pill-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.hero-status-pill:hover .pill-arrow {
  transform: translateY(2px);
}

/* 1. Hero розробників */
.dev-hero {
  padding: 64px 0 80px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--line);
}

.dev-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.dev-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dev-hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 20px 0 18px;
}

.dev-hero-accent {
  color: var(--red);
}

.dev-hero-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 580px;
}

.dev-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.dev-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dev-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.dev-hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
}

/* Архітектурна схема в Hero */
.dev-hero-visual {
  position: relative;
}

/* Технологічна матриця стеку (Tech Stack Matrix Card) */
.tech-matrix-card {
  background: #ffffff;
  border: 1px solid #dcdfd8;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(33, 40, 32, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tech-matrix-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  background: #f4f6f1;
  border-bottom: 1px solid #e2e6dc;
}

.matrix-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.matrix-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.matrix-window-dots .dot-red { background: #ff5f56; }
.matrix-window-dots .dot-yellow { background: #ffbd2e; }
.matrix-window-dots .dot-green { background: #27c93f; }

.matrix-tab-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #3b3f37;
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-status-pill {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #2e7d32;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 3px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.25);
}

.tech-matrix-body {
  display: flex;
  flex-direction: column;
}

.matrix-row {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #eef1ea;
}

.matrix-row:last-child {
  border-bottom: none;
}

.matrix-row:hover {
  background-color: #fafbf8;
}

.matrix-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #252520;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.matrix-row-icon.icon-ui {
  background: #d10d18;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(209, 13, 24, 0.2);
}

.matrix-row-icon.icon-runtime {
  background: #f7df1e;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(247, 223, 30, 0.3);
}

.matrix-row-icon.icon-db {
  background: #252520;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 37, 32, 0.15);
}

.matrix-row-content {
  flex: 1;
  min-width: 0;
}

.matrix-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.matrix-category {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6d7268;
}

.matrix-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: #fff3f0;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(209, 13, 24, 0.15);
}

.matrix-tech-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 600;
  color: #1f221e;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.matrix-tech-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #555a50;
  margin: 0;
}

.dev-schema-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dev-schema-footer .sep {
  color: #c4c7be;
}

/* 2. Секція Чому потрібна альтернатива */
.why-composition {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-column {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 13px 42px rgba(33, 40, 32, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.why-column:hover {
  transform: translateY(-2px);
  border-color: #cdd1c7;
  box-shadow: 0 16px 48px rgba(33, 40, 32, 0.08);
}

.why-num {
  font-family: 'Orbitron', 'Chakra Petch', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: 2px;
}

.why-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}

.why-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* 3. Секція Що ми хочемо зберегти (Goals) */
.goals-layout {
  width: 100%;
}

.goals-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.goal-card {
  display: flex;
  gap: 18px;
  background-color: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.goal-card:hover {
  background-color: #ffffff;
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(209, 13, 24, 0.06);
}

.goal-status-col {
  flex-shrink: 0;
}

.goal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background-color: #fff4f0;
  color: var(--red);
  border: 1px solid #f9ded7;
  white-space: nowrap;
}

.goal-body {
  display: flex;
  flex-direction: column;
}

.goal-body-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
}

.goal-body-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Журнал проводок */
.accounting-art-card {
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 13px 42px rgba(33, 40, 32, 0.06);
  position: sticky;
  top: 90px;
}

.art-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px;
  background-color: #f7f8f5;
  border-bottom: 1px solid var(--line);
}

.ledger-preview {
  display: flex;
  flex-direction: column;
}

.ledger-row {
  display: grid;
  grid-template-columns: 75px 75px 1fr;
  gap: 12px;
  padding: 13px 20px;
  font-size: 13px;
  align-items: center;
  border-bottom: 1px solid #f0f2ed;
}

.ledger-row:nth-child(even) {
  background-color: #fafbf9;
}

.ledger-dt {
  color: var(--red);
  font-weight: 700;
}

.ledger-kt {
  color: var(--ink);
  font-weight: 700;
}

.ledger-desc {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-caption {
  padding: 18px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  background-color: #fafbf9;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* 4. Секція Для кого (Audience) */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 38px 34px;
  background-color: #ffffff;
  box-shadow: 0 13px 42px rgba(33, 40, 32, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(33, 40, 32, 0.09);
  border-color: #cdd1c7;
}

.audience-card-primary {
  border-top: 4px solid var(--red);
  background: linear-gradient(115deg, #fff8f4 0%, #ffffff 85%);
}

.audience-top {
  display: flex;
  flex-direction: column;
}

.audience-role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin-bottom: 10px;
}

.audience-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}

.audience-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 16px;
  margin-bottom: 12px;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #444741;
  line-height: 1.6;
}

.audience-list li::before {
  content: "→";
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

.audience-benefit {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.audience-benefit strong {
  color: var(--ink);
}

/* 5. Секція Форми контакту */
.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background-color: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 44px;
  box-shadow: 0 16px 48px rgba(33, 40, 32, 0.07);
}

.form-intro {
  text-align: center;
  margin-bottom: 32px;
}

.form-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin: 10px 0 12px;
}

.form-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 540px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}

.form-label-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  border: 1px solid #d6d8d1;
  border-radius: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(209, 13, 24, 0.12);
}

.field-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Радіобатони */
.acc-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.acc-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d6d8d1;
  border-radius: 14px;
  background-color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.acc-radio-item:hover {
  border-color: #b5382c;
}

.acc-radio-item:has(input:checked) {
  border-color: var(--red);
  background-color: #fff8f7;
  box-shadow: 0 0 0 1px var(--red);
}

.acc-radio-native {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.acc-radio-control {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #b5b8b0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.acc-radio-item:has(input:checked) .acc-radio-control {
  border-color: var(--red);
}

.acc-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.acc-radio-item:has(input:checked) .acc-radio-dot {
  opacity: 1;
  transform: scale(1);
}

.acc-radio-content {
  display: flex;
  flex-direction: column;
}

.acc-radio-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.acc-radio-subtitle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-submit-btn {
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(209, 13, 24, 0.18);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: Arial, Helvetica, sans-serif;
}

.form-submit-btn:hover {
  background: #b50b15;
  box-shadow: 0 12px 24px rgba(209, 13, 24, 0.25);
  transform: translateY(-1px);
}

.form-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
  margin-bottom: 16px;
}

.form-alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-legal-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.form-legal-note a {
  color: var(--red);
  text-decoration: underline;
}

/* Privacy Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.4px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--red);
}

.modal-content p {
  font-size: 14px;
  color: #555952;
  line-height: 1.75;
  margin: 0 0 14px;
}

.modal-content a {
  color: var(--red);
  text-decoration: underline;
}

/* Media Queries для сторінки розробників */
@media (max-width: 1024px) {
  .dev-hero-grid,
  .goals-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .accounting-art-card {
    position: static;
  }
  .why-composition {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .dev-section {
    padding: 60px 0;
  }
  .dev-hero {
    padding: 44px 0 60px;
  }
  .goals-list,
  .audience-grid,
  .acc-radio-group {
    grid-template-columns: 1fr;
  }
  .form-wrapper {
    padding: 32px 20px;
  }
  .modal-dialog {
    padding: 24px;
  }
}

/* ==========================================================================
   Blog Styles (Блог платформи Ruta) — єдиний дизайн-код
   ========================================================================== */

.blog-hero {
  padding: 64px 0 36px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.blog-hero .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.blog-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 16px 0 18px;
  color: var(--ink);
}

.blog-hero p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 auto 30px;
}

.blog-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.blog-filter-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #4f534c;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: Arial, Helvetica, sans-serif;
}

.blog-filter-btn:hover {
  border-color: #c4c8be;
  color: var(--ink);
}

.blog-filter-btn.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* Featured Article */
.blog-featured {
  background: linear-gradient(115deg, #fff8f4 0%, #ffffff 85%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: 0 16px 48px rgba(33, 40, 32, 0.06);
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.blog-featured:hover {
  transform: translateY(-2px);
  border-color: #d8dbd3;
  box-shadow: 0 20px 54px rgba(33, 40, 32, 0.1);
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background-color: #fff4f0;
  color: var(--red);
  border: 1px solid #f9ded7;
  text-transform: uppercase;
}

.blog-featured-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 16px;
}

.blog-featured-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 24px;
}

.blog-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #eceee7;
  font-size: 13px;
  color: var(--muted);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
}

.blog-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f2eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.blog-featured-visual {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(33, 40, 32, 0.04);
}

.blog-visual-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #f0f2ed;
  padding-bottom: 12px;
}

.blog-visual-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

.stat-val {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
}

/* Articles Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
  margin-bottom: 72px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 13px 42px rgba(33, 40, 32, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: #cbd0c6;
  box-shadow: 0 16px 48px rgba(33, 40, 32, 0.09);
}

.blog-card-top {
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.blog-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--red);
}

.blog-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0 0 12px;
}

.blog-card:hover .blog-card-title {
  color: var(--red);
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f0f2ed;
  font-size: 12px;
  color: var(--muted);
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
}

/* Article Modal Reader */
.article-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 20, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.article-modal.is-open {
  display: flex;
}

.article-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  position: relative;
}

.article-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f7f8f5;
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.article-modal-close:hover {
  background: #fff4f0;
  color: var(--red);
  border-color: #f9ded7;
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 16px;
}

.article-lead {
  font-size: 17px;
  line-height: 1.7;
  color: #4a4e47;
  font-weight: 500;
  margin: 0;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #353833;
}

.article-body h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 36px 0 16px;
}

.article-body h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  margin: 24px 0 12px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-callout {
  background: #fafbf9;
  border-left: 4px solid var(--red);
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  margin: 24px 0;
  font-size: 15px;
  color: #444741;
}

.article-code-block {
  background: #1e221e;
  color: #e0e5dd;
  padding: 18px 22px;
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 22px 0;
}

.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.article-wrap {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  transition: color 0.2s;
}

.article-back-link:hover {
  color: var(--red);
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-top: 48px;
}

.article-author-card .blog-author-avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
  flex-shrink: 0;
}

.article-author-info h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.article-author-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.article-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .article-modal-dialog {
    padding: 32px 20px;
  }
  .article-wrap {
    width: calc(100% - 32px);
    padding: 32px 0 60px;
  }
}

/* Галерея скріншотів та Лайтбокс у розділі Сумісність */
.compat-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compat-preview-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(33, 40, 32, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.compat-preview-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 16px 40px rgba(209, 13, 24, 0.08);
}

.compat-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #fafbf9;
  border-bottom: 1px solid #edf0e9;
  font-size: 11px;
}

.preview-tag {
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-weight: 600;
  font-size: 12px;
}

.compat-preview-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f1f3ed;
  position: relative;
}

.compat-preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform 0.3s ease;
}

.compat-preview-card:hover .compat-preview-img-wrap img {
  transform: scale(1.03);
}

.compat-preview-caption {
  padding: 12px 16px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.compat-preview-caption strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}

.compat-preview-caption span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Lightbox Modal (Чистий повний розмір без рамок та плашок) */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  cursor: zoom-out;
}

.lightbox-backdrop.is-open {
  display: flex;
}

.lightbox-backdrop img {
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.08);
}

@media (max-width: 700px) {
  .compat-gallery {
    margin-top: 28px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 26px;
  }
}

.tile-head {
  font-family: 'Orbitron', 'Chakra Petch', monospace;
  letter-spacing: 1.2px;
}

/* Прибирання битого символу квадрата на фоні картки Склад */
.tile-stock:after {
  display: none !important;
}

/* Орбітальний роадмап (Features Roadmap як на референсі) */
.roadmap-section {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.roadmap-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}

.roadmap-visual-col {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
}

.roadmap-head {
  margin-bottom: 24px;
}

.roadmap-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  color: #1a1c18;
  letter-spacing: -0.6px;
  margin: 12px 0 16px;
}

.roadmap-lead {
  font-size: 16px;
  color: #555a50;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
}

.orbital-radar-wrap {
  width: 100%;
  margin: 16px 0 28px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.orbital-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.roadmap-cta-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* Вертикальний таймлайн із круглими кільцями */
.roadmap-timeline-col {
  padding-top: 8px;
}

.orbit-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: 36px;
}

/* Вертикальна сполучна лінія */
.timeline-line {
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 20px;
  width: 2px;
  background: #e2e6dc;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Круглі маркери (червоні кільця як на референсі) */
.timeline-marker {
  position: absolute;
  left: -37px;
  top: 3px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #d10d18;
  background: #ffffff;
  display: block;
  box-sizing: border-box;
}

/* Завершений етап */
.timeline-item.is-done .marker-ring {
  border-color: #252520;
  background: #252520;
}

/* Активний етап (поточний) */
.timeline-item.is-active .marker-ring {
  border-color: #d10d18;
  background: #ffffff;
}

.timeline-item.is-active .marker-ring:after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d10d18;
  display: block;
  margin: 2px auto;
}

.timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-num {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #252520;
  letter-spacing: 0.8px;
}

.timeline-item.is-active .timeline-num {
  color: #d10d18;
}

.timeline-status {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #72776e;
}

.timeline-item.is-done .timeline-status {
  color: #2e7d32;
}

.timeline-item.is-active .timeline-status {
  color: #d10d18;
}

.timeline-date {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #8c9187;
  letter-spacing: 0.4px;
}

.timeline-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f221e;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.timeline-desc {
  font-size: 14px;
  color: #5a6054;
  line-height: 1.6;
  margin: 0;
  max-width: 540px;
}

.timeline-release-step {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: -6px 0;
}

.timeline-release-step .release-line {
  flex: 1;
  height: 0;
  border-top: 1.5px dashed #b8beb2;
}

.timeline-release-step .release-label {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3b3f37;
  white-space: nowrap;
}

.timeline-release-step.release-active .release-line {
  border-top-color: #d10d18;
}

.timeline-release-step.release-active .release-label {
  color: #d10d18;
}

@media (max-width: 1024px) {
  .roadmap-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .roadmap-visual-col {
    position: static;
  }
  .orbital-radar-wrap {
    margin: 20px 0;
  }
}

@media (max-width: 600px) {
  .orbit-timeline {
    padding-left: 28px;
    gap: 30px;
  }
  .timeline-marker {
    left: -28px;
  }
  .timeline-line {
    left: 7px;
  }
  .timeline-title {
    font-size: 18px;
  }
}
