/* Навбар в Apple-стиле */

.sitebar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sitebar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sitebar__logo {
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: #1d1d1f;
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sitebar__logo-mark {
  height: 20px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
/* Плавание: волна по щупальцам (4 кадра) + мягкая пульсация тела */
.octo-k { opacity: 0; }
.octo-k1 { animation: octoK1 1.8s steps(1) infinite; }
.octo-k2 { animation: octoK2 1.8s steps(1) infinite; }
.octo-k3 { animation: octoK3 1.8s steps(1) infinite; }
.octo-k4 { animation: octoK4 1.8s steps(1) infinite; }
@keyframes octoK1 { 0%, 24% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes octoK2 { 25%, 49% { opacity: 1; } 0%, 24%, 50%, 100% { opacity: 0; } }
@keyframes octoK3 { 50%, 74% { opacity: 1; } 0%, 49%, 75%, 100% { opacity: 0; } }
@keyframes octoK4 { 75%, 100% { opacity: 1; } 0%, 74% { opacity: 0; } }

.sitebar__logo-mark { overflow: visible; animation: octoFloat 1.8s ease-in-out infinite; }
@keyframes octoFloat {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(0.6px); }
  60%  { transform: translateY(-1.4px); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .octo-k, .sitebar__logo-mark { animation: none; }
  .octo-k1 { opacity: 1; }
}

.sitebar__nav {
  display: flex;
  gap: 2px;
  align-items: center;
}

.sitebar__link {
  padding: 8px 14px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.sitebar__link:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.04);
}
.sitebar__link.active {
  color: #1d1d1f;
  background: rgba(0, 113, 227, 0.08);
}
/* Флагман — постоянный cyan-акцент */
.sitebar__link--accent {
  color: #0891b2;
  font-weight: 600;
}
.sitebar__link--accent:hover {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
}
.sitebar__link--accent.active {
  color: #0891b2;
  background: rgba(6, 182, 212, 0.10);
}

.sitebar__cta {
  padding: 8px 18px;
  border-radius: 980px;
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.sitebar__cta:hover { background: #0071e3; }

.sitebar__burger {
  display: none;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: #1d1d1f;
}

.sitebar__mobile {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fbfbfd;
}
.sitebar__mobile.open { display: block; }
.sitebar__mobile .sitebar__link {
  display: block;
  padding: 14px 16px;
  margin-bottom: 2px;
  font-size: 16px;
  border-radius: 12px;
}

@media (max-width: 860px) {
  .sitebar__nav { display: none; }
  .sitebar__cta { display: none; }
  .sitebar__burger { display: flex; align-items: center; justify-content: center; }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 48px 24px 56px;
  margin-top: 80px;
  background: #f5f5f7;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: #86868b;
}
.site-footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer__nav a {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-footer__nav a:hover { color: #0071e3; }

/* Footer — колонки */
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 180px));
  gap: 32px 56px;
  justify-content: center;
  text-align: left;
}
@media (max-width: 600px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    width: 100%;
    max-width: 400px;
  }
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 4px;
}
.site-footer__col a {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.site-footer__col a:hover { color: #0071e3; }
.site-footer__legal {
  opacity: 0.8;
  line-height: 1.6;
  max-width: 720px;
}
