/* =============================================
   DESIGN SYSTEM — Architectural Catalogue / Editorial
   Palette: Ivory, Charcoal, Terracotta, Sage
   ============================================= */

:root {
  --ivory: #F6F3EE;
  --ivory-warm: #F0EBE3;
  --paper: #FDFCFA;
  --charcoal: #1C1C1E;
  --charcoal-soft: #2C2C2E;
  --graphite: #48484A;
  --stone: #8E8E93;
  --silver: #C7C7CC;
  --terracotta: #B85C38;
  --terracotta-light: #D4836B;
  --terracotta-deep: #8B3A1F;
  --sage: #6B7F5E;
  --sage-light: #A3B18A;
  --sage-muted: #DAD7CD;
  --rule: #D6D3CD;
  --rule-dark: rgba(255,255,255,0.12);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --z-modal: 1000;
  --z-nav: 100;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: clip;
}

body.locked { overflow: hidden; }

::selection {
  background: var(--terracotta);
  color: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--terracotta-deep); }


/* ===== PASSWORD GATE ===== */

.password-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.password-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.password-modal {
  max-width: 440px;
  width: 90%;
  text-align: center;
  padding: 60px 48px;
  animation: modalFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.password-modal__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.password-modal__brand svg { flex-shrink: 0; }

.password-modal__brand-text {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--charcoal);
}

.password-modal__logo {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.password-modal__logo em {
  font-style: italic;
  color: var(--terracotta);
}

.password-modal__subtitle {
  font-size: 13px;
  font-weight: 300;
  color: var(--stone);
  margin-bottom: 48px;
  line-height: 1.7;
}

.password-modal__form {
  margin-bottom: 32px;
}

.password-modal__input {
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid var(--stone);
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-size: 16px;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.password-modal__input::placeholder {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--stone);
}

.password-modal__input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 30px rgba(184, 92, 56, 0.1);
}

.password-modal__input.error {
  animation: shake 0.5s ease;
  border-color: #c0392b;
}

.password-modal__error {
  display: none;
  color: var(--terracotta);
  font-size: 13px;
  margin-top: 12px;
}

.password-modal__error.visible {
  display: block;
}

.password-modal__hint {
  font-size: 11px;
  color: var(--silver);
  line-height: 1.6;
}

.password-modal__company {
  margin-top: 48px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
}

.password-modal__tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: border-color 0.2s ease;
}

.password-modal__tg:hover {
  border-color: var(--terracotta);
}

.password-modal__tg svg {
  width: 16px;
  height: 16px;
}


/* ===== NAVIGATION ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(246, 243, 238, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--graphite);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--charcoal);
}

.nav__logout {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.nav__logout svg {
  width: 16px;
  height: 16px;
  stroke: var(--stone);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.2s ease;
}

.nav__logout:hover svg { stroke: var(--charcoal); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }


/* ===== MOBILE MENU ===== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__close {
  display: none;
}

.mobile-menu__close svg {
  width: 24px;
  height: 24px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1;
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s ease;
}

.mobile-menu.active .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.2s; }

.mobile-menu__link:hover { color: var(--terracotta); }

.mobile-menu__logout {
  margin-top: 16px;
  background: none;
  border: 1px solid var(--rule);
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu__logout:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
}


/* ===== SCROLL PROGRESS ===== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--terracotta);
  z-index: calc(var(--z-nav) + 1);
}


/* ===== MAIN CONTENT ===== */

.main {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.main.visible {
  opacity: 1;
}


/* ===== COVER / HERO ===== */

.cover {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.cover-left {
  padding: 80px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.cover-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.cover-brand svg { flex-shrink: 0; }

.cover-brand-text {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--graphite);
}

.cover-type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 40px;
}

.cover-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 32px;
  letter-spacing: -1px;
}

.cover-title em {
  font-style: italic;
  color: var(--terracotta);
}

.cover-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--graphite);
  max-width: 460px;
  line-height: 1.9;
  margin-bottom: 48px;
}

.cover-meta {
  display: flex;
  gap: 48px;
}

.cover-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 4px;
}

.cover-meta-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--charcoal);
}

.cover-meta-unit {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--stone);
}

.cover-right {
  background: var(--charcoal);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.03) 79px, rgba(255,255,255,0.03) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.03) 79px, rgba(255,255,255,0.03) 80px);
}

.cover-right-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px;
}

.cover-right-org {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
}

.cover-right-flame {
  margin-bottom: 32px;
  opacity: 0.85;
}

.cover-right-name {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cover-right-name em {
  font-style: italic;
  color: var(--terracotta-light);
}

.cover-right-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  max-width: 320px;
  margin: 0 auto;
}

.deco-num {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 280px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  right: -20px;
  bottom: -40px;
}


/* ===== SECTION FRAMEWORK ===== */

.s {
  padding: 120px 60px;
  position: relative;
}

.s-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.s-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  margin-bottom: 72px;
  align-items: start;
}

.s-num {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--sage-muted);
  text-align: right;
  padding-top: 8px;
}

.s-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.s-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.s-title em { font-style: italic; color: var(--terracotta); }

.s-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--graphite);
  max-width: 580px;
  line-height: 1.9;
}

/* dark variant */
.s--dark { background: var(--charcoal); color: #fff; }
.s--dark .s-num { color: rgba(255,255,255,0.08); }
.s--dark .s-title { color: #fff; }
.s--dark .s-title em { color: var(--terracotta-light); }
.s--dark .s-desc { color: rgba(255,255,255,0.5); }

/* warm variant */
.s--warm { background: var(--ivory-warm); }

/* border-top */
.s--ruled { border-top: 1px solid var(--rule); }
.s--dark.s--ruled { border-top: 1px solid var(--rule-dark); }


/* ===== PROBLEMS ===== */

.prob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.prob-item {
  padding: 40px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.prob-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.prob-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.3;
}

.prob-item p {
  font-size: 14px;
  font-weight: 300;
  color: var(--graphite);
  line-height: 1.8;
}


/* ===== SOLUTION ITEMS ===== */

.sol-list {
  display: flex;
  flex-direction: column;
}

.sol-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule-dark);
  align-items: start;
}

.sol-item:first-child { padding-top: 0; }
.sol-item:last-child { border-bottom: none; }

.sol-item-left h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.sol-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta-light);
}

.sol-item-right {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
}

.sol-item-right ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.sol-item-right ul li {
  padding: 5px 0 5px 16px;
  position: relative;
  font-size: 14px;
}

.sol-item-right ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 1px;
  background: var(--terracotta-light);
}


/* ===== APPROACH ===== */

.appr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.appr-phase {
  padding: 48px 44px;
}

.appr-phase:first-child {
  border-right: 1px solid var(--rule);
}

.appr-phase-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.appr-phase-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.2;
}

.appr-phase-period {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 28px;
}

.appr-list {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}

.appr-list li {
  font-size: 14px;
  color: var(--graphite);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
}

.appr-list li:last-child { border-bottom: none; }

.appr-result {
  padding: 20px 24px;
  border-left: 3px solid var(--terracotta);
  background: rgba(184, 92, 56, 0.04);
}

.appr-result p {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.7;
}


/* ===== PRICING ===== */

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule-dark);
}

.price-block {
  padding: 52px 48px;
}

.price-block:first-child {
  border-right: 1px solid var(--rule-dark);
}

.price-block-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 8px;
}

.price-block h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.3;
}

.price-hero {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.price-amount-big {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.price-amount-big span {
  font-size: 24px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
}

.price-multiplier {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--terracotta-light);
}

.price-period {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.price-calc {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 28px;
}

.price-payments {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-payment {
  border-top: 1px solid var(--rule-dark);
  padding-top: 16px;
}

.price-payment-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--terracotta-light);
  margin-bottom: 8px;
}

.price-payment .price-inc {
  border-top: none;
  padding-top: 0;
  margin-bottom: 16px;
}

.price-subtotal {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
}

.price-inc {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule-dark);
  padding-top: 20px;
}

.price-inc li {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 5px 0 5px 16px;
  position: relative;
}

.price-inc li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--terracotta-light);
  font-size: 11px;
}

.price-total-strip {
  padding: 48px;
  text-align: center;
  border-top: 1px solid var(--rule-dark);
}

.price-total-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.price-total-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}

.price-total-num span {
  font-size: 32px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
}


/* ===== LICENSES ===== */

.lic-box {
  border: 1px solid var(--rule);
  background: var(--paper);
}

.lic-promo {
  padding: 20px 32px;
  background: rgba(184, 92, 56, 0.06);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
}

.lic-promo-marker {
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  flex-shrink: 0;
}

.lic-promo p {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}

.lic-promo p strong { color: var(--terracotta); }

.lic-table {
  width: 100%;
  border-collapse: collapse;
}

.lic-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  padding: 16px 32px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.lic-table td {
  padding: 18px 32px;
  font-size: 15px;
  color: var(--graphite);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.lic-table td:first-child {
  white-space: normal;
}

.lic-table tr:last-child td {
  border-bottom: none;
  font-weight: 600;
  color: var(--charcoal);
}

.lic-note {
  padding: 20px 32px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--stone);
  line-height: 1.7;
}

.lic-note strong { color: var(--charcoal); }

.lic-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

.lic-reason {
  padding: 28px 32px;
}

.lic-reason:first-child {
  border-right: 1px solid var(--rule);
}

.lic-reason-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.lic-reason-list {
  list-style: none;
  padding: 0;
}

.lic-reason-list li {
  font-size: 13px;
  color: var(--graphite);
  line-height: 1.7;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.lic-reason-list li:last-child {
  border-bottom: none;
}

.lic-reason-list li strong {
  color: var(--charcoal);
  font-weight: 600;
}


/* ===== INVESTMENT ===== */

.inv-rows {
  max-width: 680px;
  margin: 0 auto;
}

.inv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-dark);
}

.inv-row-label {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

.inv-row-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 2px;
}

.inv-row-val {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}

.inv-total {
  margin-top: 40px;
  padding: 40px;
  border: 1px solid rgba(184, 92, 56, 0.3);
  text-align: center;
}

.inv-total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 12px;
}

.inv-total-amount {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
}


/* ===== SPECIALIZATION ===== */

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.spec-item {
  padding: 40px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.spec-item-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--sage-muted);
  line-height: 1;
  margin-bottom: 20px;
}

.spec-item h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.3;
}

.spec-item p {
  font-size: 14px;
  font-weight: 300;
  color: var(--graphite);
  line-height: 1.8;
}


/* ===== CLIENTS ===== */

.cli-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-dark);
  border-left: 1px solid var(--rule-dark);
}

.cli-item {
  padding: 36px 32px;
  border-right: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

.cli-logo {
  height: 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.cli-logo img {
  height: 100%;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.cli-logo-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cli-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cli-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cli-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

.cli-meta span + span::before {
  content: ' \00B7 ';
  margin: 0 6px;
}


/* ===== BENEFITS ===== */

.ben-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.ben-item {
  padding: 44px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.ben-item-who {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.ben-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.ben-item ul {
  list-style: none;
  padding: 0;
}

.ben-item ul li {
  font-size: 14px;
  color: var(--graphite);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
}

.ben-item ul li:last-child { border-bottom: none; }


/* ===== FOOTER ===== */

.foot {
  padding: 60px;
  background: var(--charcoal);
  text-align: center;
}

.foot-inner {
  max-width: 600px;
  margin: 0 auto;
}

.foot-company {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.foot-contacts {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 24px;
}

.foot-contacts a {
  color: var(--terracotta-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-contacts a:hover {
  color: var(--terracotta);
}

.foot-dot {
  margin: 0 10px;
  color: rgba(255,255,255,0.2);
}

.foot-pdf {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.foot-pdf:hover {
  color: var(--terracotta-light);
}

.foot-date {
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 24px;
}

.foot-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}


/* ===== ANIMATIONS ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cascade reveal after password entry --- */
.cover-brand, .cover-type, .cover-title, .cover-desc, .cover-meta,
.cover-right-content {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.entered .cover-brand         { opacity: 1; transform: none; transition-delay: 0.1s; }
body.entered .cover-type          { opacity: 1; transform: none; transition-delay: 0.2s; }
body.entered .cover-title         { opacity: 1; transform: none; transition-delay: 0.35s; }
body.entered .cover-desc          { opacity: 1; transform: none; transition-delay: 0.55s; }
body.entered .cover-meta          { opacity: 1; transform: none; transition-delay: 0.7s; }
body.entered .cover-right-content { opacity: 1; transform: none; transition-delay: 0.5s; }

/* --- Title lines staggered reveal --- */
.cover-title-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
/* nth-child accounts for <br> elements: spans are odd, <br> are even */
body.entered .cover-title-line:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.35s; }
body.entered .cover-title-line:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.55s; }
body.entered .cover-title-line:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.75s; }
body.entered .cover-title-line:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.95s; }

/* --- Stagger reveal for grid sections --- */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.vis > * { opacity: 1; transform: none; }
.reveal-stagger.vis > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.vis > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.vis > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.vis > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.vis > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.vis > *:nth-child(6) { transition-delay: 0.4s; }

/* --- Section numbers slide from left --- */
.s-num {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.vis .s-num,
.s-header.vis .s-num {
  opacity: 1;
  transform: none;
}

/* --- Hover lift on interactive tiles --- */
.prob-item, .cli-item, .ben-item, .spec-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prob-item:hover, .cli-item:hover, .ben-item:hover, .spec-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.s--dark .cli-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

@keyframes modalFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .reveal-stagger > *, .cover-brand, .cover-type,
  .cover-title, .cover-desc, .cover-meta, .cover-right-content,
  .cover-title-line, .s-num, .svg-fade {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ===== INFOGRAPHIC ===== */

.infographic-wrap {
  margin-bottom: 48px;
  overflow: hidden;
}

.infographic-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 0 auto;
}

.svg-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.infographic-wrap.vis .svg-fade { opacity: 1; }
.svg-fade-d1 { transition-delay: 0.1s; }
.svg-fade-d2 { transition-delay: 0.3s; }
.svg-fade-d3 { transition-delay: 0.5s; }
.svg-fade-d4 { transition-delay: 0.7s; }
.svg-fade-d5 { transition-delay: 0.9s; }

/* License table mobile fix */
.lic-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Mobile infographic (hidden on desktop, shown on <=960px) */
.infographic-wrap .info-before-after-mobile { display: none; }


/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
  .cover { grid-template-columns: 1fr; }
  .cover-right { min-height: 50vh; }
  .cover-left { padding: 60px 32px; }
  .s { padding: 80px 32px; }
  .s-header { grid-template-columns: 1fr; gap: 12px; }
  .s-num { text-align: left; font-size: 48px; }
  .prob-grid,
  .appr-grid,
  .price-row,
  .spec-row,
  .cli-grid,
  .ben-grid,
  .lic-reasons {
    grid-template-columns: 1fr;
  }
  .lic-reason:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
  .appr-phase:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
  .price-block:first-child { border-right: none; border-bottom: 1px solid var(--rule-dark); }
  .sol-item { grid-template-columns: 1fr; gap: 12px; }
  .cover-meta { flex-direction: column; gap: 24px; }
  .foot { padding: 40px 24px; }
  .nav { padding: 16px 24px; }
  .nav__menu { display: none; }
  .nav__hamburger { display: flex; }
  .inv-row { flex-direction: column; gap: 8px; }
  .infographic-wrap { margin-bottom: 36px; }
  .infographic-wrap .info-before-after { display: none; }
  .infographic-wrap .info-before-after-mobile { display: block; }
  .cover-brand { display: none; }
  .deco-num { right: 0; }
}

@media (max-width: 480px) {
  .cover-left { padding: 40px 20px; }
  .s { padding: 60px 20px; }
  .prob-item,
  .appr-phase,
  .price-block,
  .spec-item,
  .cli-item,
  .ben-item { padding: 28px 20px; }
  .foot { padding: 40px 20px; }
  .password-modal { padding: 40px 24px; }
  .lic-table th,
  .lic-table td { padding: 14px 12px; font-size: 13px; }
}

@media print {
  .nav, .password-overlay, .mobile-menu, .scroll-progress { display: none !important; }
  .main { opacity: 1 !important; }
  body { background: #fff; }
}
