/* =========================================
   UrbanNest Studio — Global Styles
   ========================================= */

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.un-body {
  margin: 0;
  font-family: "UrbanNestText", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2e2a27;
  background-color: #f7f3ee;
}

/* Typography */
/* ===============================
   Local Google Fonts
   =============================== */

/* Display: Fraunces (Google Fonts) */
@font-face {
  font-family: "UrbanNestDisplay";
  src: url("../fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UrbanNestDisplay";
  src: url("../fonts/Fraunces-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Text: Outfit (Google Fonts) */
@font-face {
  font-family: "UrbanNestText";
  src: url("../fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UrbanNestText";
  src: url("../fonts/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* Color system */
:root {
  --un-bg: #f7f3ee;
  --un-bg-soft: #fbf7f2;
  --un-bg-elevated: #ffffff;
  --un-accent-sand: #e9cda8;
  --un-accent-clay: #d18b73;
  --un-accent-mint: #c4e0d9;
  --un-ink: #2e2a27;
  --un-muted: #6f6963;
  --un-border: #dfd4c8;
  --un-shadow-soft: 0 18px 40px rgba(40, 32, 24, 0.12);
  --un-radius-xl: 26px;
  --un-radius-lg: 20px;
  --un-radius-pill: 999px;
  --un-header-height-mobile: 64px;
  --un-header-height-desktop: 80px;
}

/* Images: глобальное ограничение ширины */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Layout helpers */
.un-main {
  min-height: 100vh;
  padding-inline: 1.6rem;
  padding-bottom: 4rem;
  padding-top: calc(var(--un-header-height-mobile) + 1.5rem);
}

.un-section {
  margin-inline: auto;
  max-width: 1160px;
}

/* Header */
.un-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      to bottom,
      rgba(247, 243, 238, 0.9),
      rgba(247, 243, 238, 0.85) 40%,
      rgba(247, 243, 238, 0.6)
    );
  border-bottom: 1px solid rgba(223, 212, 200, 0.9);
}

.un-header-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 0.6rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

/* Logo */
.un-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.un-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 20%, #ffffff, var(--un-accent-sand));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "UrbanNestDisplay", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--un-ink);
  box-shadow: 0 10px 25px rgba(110, 88, 60, 0.25);
}

.un-logo-mark--small {
  width: 26px;
  height: 26px;
  font-size: 1rem;
}

.un-logo-text {
  font-family: "UrbanNestDisplay", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--un-ink);
}

/* Desktop nav */
.un-nav {
  display: none;
}

.un-nav-list {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.un-nav-link {
  position: relative;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--un-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-block: 0.4rem;
}

.un-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--un-accent-mint), var(--un-accent-clay));
  transition: width 220ms ease-out;
}

.un-nav-link:hover::after,
.un-nav-link:focus-visible::after,
.un-nav-link--active::after {
  width: 100%;
}

.un-nav-link--active {
  color: var(--un-ink);
}

/* Burger */
.un-burger {
  position: relative;
  width: 38px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(223, 212, 200, 0.85);
  background: rgba(251, 247, 242, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.un-burger-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #5a5147;
  transition: transform 200ms ease, opacity 160ms ease, width 200ms ease;
}

.un-burger[aria-expanded="true"] .un-burger-line:nth-child(1) {
  transform: translateY(4px) rotate(37deg);
  width: 16px;
}

.un-burger[aria-expanded="true"] .un-burger-line:nth-child(2) {
  opacity: 0;
}

.un-burger[aria-expanded="true"] .un-burger-line:nth-child(3) {
  transform: translateY(-4px) rotate(-37deg);
  width: 16px;
}

/* Mobile nav */
.un-mobile-nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  transform-origin: top;
  transform: scaleY(0.7);
  opacity: 0;
  pointer-events: none;
  background: rgba(247, 243, 238, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(223, 212, 200, 0.85);
  transition: opacity 160ms ease, transform 200ms ease;
}

.un-mobile-nav--open {
  opacity: 1;
  pointer-events: auto;
  transform: scaleY(1);
}

.un-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.un-mobile-nav-link {
  display: block;
  padding-block: 0.6rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--un-muted);
  border-bottom: 1px dashed rgba(223, 212, 200, 0.8);
}

.un-mobile-nav-link:last-child {
  border-bottom: none;
}

.un-mobile-nav-link--active {
  color: var(--un-ink);
}

/* Buttons */
.un-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
  overflow: hidden;
}

.un-btn--primary {
  background: radial-gradient(circle at 20% 0%, #ffffff, var(--un-accent-sand));
  border-color: rgba(209, 139, 115, 0.1);
  color: var(--un-ink);
  box-shadow: var(--un-shadow-soft);
}

.un-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(40, 32, 24, 0.18);
}

.un-btn--ghost {
  background: transparent;
  border-color: rgba(111, 105, 99, 0.25);
  color: var(--un-muted);
}

.un-btn--ghost:hover {
  background: rgba(251, 247, 242, 0.95);
}

/* Orbit micro animation */
.un-btn-orbit {
  position: absolute;
  inset: -30%;
  border-radius: inherit;
  background: radial-gradient(circle at 0% 0%, rgba(196, 224, 217, 0.5), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transform: translate3d(-20%, -20%, 0);
  transition: opacity 220ms ease, transform 260ms ease;
}

.un-btn:hover .un-btn-orbit {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Pills */
.un-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: var(--un-radius-pill);
  border: 1px dashed rgba(223, 212, 200, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--un-muted);
  background: rgba(251, 247, 242, 0.9);
}

.un-pill--soft {
  background: linear-gradient(120deg, rgba(233, 205, 168, 0.16), rgba(251, 247, 242, 0.96));
}

.un-pill--mint {
  background: linear-gradient(130deg, rgba(196, 224, 217, 0.24), rgba(251, 247, 242, 0.96));
}

.un-pill--clay {
  background: linear-gradient(130deg, rgba(209, 139, 115, 0.16), rgba(251, 247, 242, 0.96));
}

/* Footer */
.un-footer {
  border-top: 1px solid rgba(223, 212, 200, 0.9);
  background: rgba(247, 243, 238, 0.98);
}

.un-footer-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.un-footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--un-muted);
}

/* Animations base */
.un-animate {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease-out,
    transform 420ms ease-out;
}

.un-animate--visible {
  opacity: 1;
  transform: translateY(0);
}

.un-tilt {
  transform-origin: 10% 90%;
  transition: transform 360ms ease-out, box-shadow 360ms ease-out;
}

.un-tilt:hover {
  transform: rotate(-1.8deg) translateY(-4px);
  box-shadow: var(--un-shadow-soft);
}

/* Scroll hint */
.un-hero-scroll-hint {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: var(--un-muted);
}

.un-scroll-dot {
  width: 8px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(111, 105, 99, 0.5);
  position: relative;
  overflow: hidden;
}

.un-scroll-dot::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--un-accent-clay);
  left: 50%;
  transform: translateX(-50%);
  animation: un-scroll-dot 1400ms infinite;
}

@keyframes un-scroll-dot {
  0% {
    top: 3px;
    opacity: 0;
  }
  25% {
    top: 6px;
    opacity: 1;
  }
  75% {
    top: 16px;
    opacity: 1;
  }
  100% {
    top: 19px;
    opacity: 0;
  }
}

/* Responsive: desktop */
@media (min-width: 768px) {
  .un-main {
    padding-top: calc(var(--un-header-height-desktop) + 2.4rem);
    padding-inline: 2.2rem;
  }

  .un-header-inner {
    padding-inline: 2.2rem;
  }

  .un-nav {
    display: block;
  }

  .un-burger,
  .un-mobile-nav {
    display: none;
  }
}

@media (min-width: 1200px) {
  .un-main {
    padding-inline: 0;
  }
}
.un-footer-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.un-footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--un-muted);
}
/* Базовые ссылки — без фиолетового и стандартного подчёркивания */
a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}
:root {
  --un-font-display: "UrbanNestDisplay", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --un-font-sans: "UrbanNestText", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}
/* Глобально отключаем горизонтальный скролл */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
