/* ============ TOP LINE ============ */
.topline {
  border-bottom: 1px solid var(--line-soft);
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
}
.topline .mono { font-size: 10px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 92px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark { color: var(--accent); flex: none; }
.logo-text {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1;
}
.logo-sub {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 7px;
}

.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 38px;
  justify-content: flex-end;
}
.site-nav a {
  font-size: 14px;
  position: relative;
  padding-block: 6px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  left: auto;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width .3s ease;
}
.site-nav a:hover::after { width: 100%; }
.site-nav a.active { color: var(--accent); }
.site-nav a.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.burger {
  display: none;
  width: 34px;
  height: 34px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1px;
  background: var(--ink);
  transition: transform .3s, top .3s;
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 21px; }
.burger[aria-expanded="true"] span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  top: 17px;
  transform: rotate(-45deg);
}

/* ============ HEADER ADAPTIVE ============ */
@media (max-width: 1000px) {
  .burger { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px var(--gutter) 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav li {
    border-top: 1px solid var(--line-soft);
  }
  .site-nav a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }
  .site-nav a::after { display: none; }
}
@media (max-width: 760px) {
  .header-inner { height: 76px; gap: 20px; }
  .logo-text { font-size: 20px; }
  .logo-sub { display: none; }
  .topline .wrap span:last-child { display: none; }
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .active { color: var(--ink); }

/* ============ FOOTER ============ */
.footer {
  padding-block: 56px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-about {
  max-width: 300px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-2);
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-2);
  margin: 6px 0 18px;
}
.footer li { margin-bottom: 10px; }
.footer li a {
  font-size: 13px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.footer li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
  font-family: var(--mono);
  letter-spacing: .05em;
}
.footer-legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--mono);
  letter-spacing: .05em;
  transition: color .25s;
}
.footer-legal-links a:hover {
  color: var(--accent);
}

/* ============ FOOTER ADAPTIVE ============ */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ============ TO TOP ============ */
.to-top {
  position: fixed;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  width: 48px;
  height: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s, transform .3s, background .25s, color .25s, border-color .25s;
  z-index: 40;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.to-top svg {
  width: 16px;
  height: 16px;
  transition: transform .25s;
}
.to-top:hover svg { transform: translateY(-2px); }
body.cookie-visible .to-top {
  bottom: calc(clamp(20px, 3vw, 40px) + 120px);
}

/* ============ COOKIE ============ */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 20px 0;
  z-index: 60;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -8px 32px rgba(38, 36, 31, .06);
}
.cookie.visible { transform: translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.cookie-text a {
  border-bottom: 1px solid var(--line);
  transition: border-color .25s, color .25s;
}
.cookie-text a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cookie-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: block;
  margin-bottom: 6px;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  transition: all .25s;
  white-space: nowrap;
}
.cookie-btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cookie-btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.cookie-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: color .25s;
}
.cookie-close:hover { color: var(--accent); }

/* ============ COOKIE ADAPTIVE ============ */
@media (max-width: 760px) {
  .cookie { padding: 24px 0; }
  .cookie-inner { gap: 20px; }
  .cookie-actions { width: 100%; flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; }
  .cookie-close { top: 12px; right: 12px; }
  body.cookie-visible .to-top {
    bottom: calc(clamp(20px, 3vw, 40px) + 180px);
  }
}