/* ═══════════════════════════════════════════
   ДРУГОЕ БЮРО — base.css
   Общие стили: reset, переменные, навигация,
   курсор, футер, анимации
═══════════════════════════════════════════ */

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

:root {
  --cream: #f5f2ed;
  --black: #1a1917;
  --muted: #6b6760;
  --line: rgba(26, 25, 23, 0.12);
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--black);
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  cursor: none;
  overflow-x: hidden;
}

input,
textarea,
select,
[contenteditable] {
  cursor: auto;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}

/* ─── Кастомный курсор ─── */
.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.2s;
}
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  transition:
    width 0.25s,
    height 0.25s,
    opacity 0.2s;
}
body:has(a:hover) .cursor__ring,
body:has(button:hover) .cursor__ring {
  width: 56px;
  height: 56px;
  opacity: 0.2;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
  .cursor__dot,
  .cursor__ring {
    display: none;
  }
}

/* ─── Навигация ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
}

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

.nav__links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--black);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--black);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
  }
  .nav__links a {
    font-size: 14px;
  }
  .nav__links.open {
    transform: translateX(0);
  }
  .nav__burger {
    display: flex;
    z-index: 101;
  }
}

/* ─── Section label ─── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--muted);
  flex-shrink: 0;
}

/* ─── Футер ─── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__copy {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer__socials {
  display: flex;
  gap: 24px;
}

.footer__socials a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__socials a:hover {
  color: var(--black);
}

@media (max-width: 540px) {
  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
  }
}

/* ─── Reveal: always visible (animation disabled) ─── */
.reveal {
  opacity: 1;
  transform: none;
}

/* ─── Focus-visible ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
