/* ===========================
   GLOBAL RESET & VARIABLES
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body.ss-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #2d162e 0%, #0c0911 45%, #050308 100%);
  color: #f9f4ee;
  font-family: "SSSans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------------------------
   LOCAL FONTS (пример)
   --------------------------- */

@font-face {
  font-family: "SSDisplay";
  src: url("../fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SSDisplay";
  src: url("../fonts/PlayfairDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SSSans";
  src: url("../fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ss-color-bg: #0c0911;
  --ss-color-bg-soft: #171220;
  --ss-color-bg-softer: #22182f;
  --ss-color-accent-gold: #f4c978;
  --ss-color-accent-rose: #c86c89;
  --ss-color-accent-ink: #4a5ba8;
  --ss-color-text-main: #f9f4ee;
  --ss-color-text-muted: #c7b9d6;
  --ss-color-border-soft: rgba(255, 255, 255, 0.12);
  --ss-radius-lg: 26px;
  --ss-radius-md: 18px;
  --ss-radius-pill: 999px;
  --ss-shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);
  --ss-shadow-subtle: 0 14px 40px rgba(0, 0, 0, 0.5);
  --ss-transition-fast: 0.2s ease-out;
  --ss-transition-med: 0.3s ease-out;
}

/* ---------------------------
   COMMON ELEMENTS
   --------------------------- */

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

/* ограничение 350px по ширине для всех изображений */
img {
  max-width: 350px;
}

/* контейнер */
.ss-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* заголовки */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "SSDisplay", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

/* ссылки и кнопки */
a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------------------------
   HEADER
   --------------------------- */

.ss-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: linear-gradient(
    to bottom,
    rgba(6, 5, 11, 0.94),
    rgba(6, 5, 11, 0.88),
    rgba(6, 5, 11, 0.7)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* логотип */

.ss-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ss-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 0%, #f4c978 0%, #c86c89 40%, #4a5ba8 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0c0911;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

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

.ss-logo-text {
  font-family: "SSDisplay", serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f9f4ee;
}

/* навигация */

.ss-nav {
  display: flex;
}

.ss-nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(249, 244, 238, 0.78);
  padding: 6px 0;
  position: relative;
}

.ss-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4c978, #c86c89);
  transition: width var(--ss-transition-med);
}

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

.ss-nav-link--active {
  color: #f4c978;
}

/* бургер */

.ss-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 0 0, rgba(244, 201, 120, 0.22), transparent 60%);
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ss-burger-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f9f4ee;
  transition: transform var(--ss-transition-fast), opacity var(--ss-transition-fast),
    width var(--ss-transition-fast);
}

/* состояние открытого бургера */

.ss-header.is-nav-open .ss-burger-line:nth-child(1) {
  transform: translateY(4px) rotate(40deg);
}

.ss-header.is-nav-open .ss-burger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.ss-header.is-nav-open .ss-burger-line:nth-child(3) {
  transform: translateY(-4px) rotate(-40deg);
}

/* мобильное меню */

@media (max-width: 900px) {
  .ss-nav {
    position: fixed;
    inset-inline: 16px;
    top: 66px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at top, #22182f 0%, #0c0911 55%, #050308 100%);
    box-shadow: var(--ss-shadow-soft);
    padding: 14px 18px 18px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ss-transition-med), transform var(--ss-transition-med);
  }

  .ss-header.is-nav-open .ss-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ss-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ss-burger {
    display: inline-flex;
  }
}

/* ---------------------------
   MAIN & FOOTER
   --------------------------- */

.ss-main {
  padding-top: 82px; /* высота хедера + небольшой запас */
}

.ss-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(to top, #050308, #0c0911);
  padding-block: 26px 22px;
  margin-top: 60px;
}

.ss-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.ss-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ss-footer-info {
  flex: 1;
  min-width: 220px;
}

.ss-footer-meta {
  min-width: 180px;
  font-size: 0.78rem;
  color: rgba(199, 185, 214, 0.8);
}

.ss-footer-line {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: rgba(249, 244, 238, 0.78);
}

/* ---------------------------
   BUTTONS & LABELS
   --------------------------- */

.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--ss-radius-pill);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.ss-btn--primary {
  background: linear-gradient(135deg, #f4c978, #c86c89);
  color: #1a111f;
  box-shadow: var(--ss-shadow-subtle);
}

.ss-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity var(--ss-transition-med);
}

.ss-btn--primary:hover::after,
.ss-btn--primary:focus-visible::after {
  opacity: 1;
}

.ss-btn--ghost {
  background: rgba(12, 9, 17, 0.6);
  border-color: rgba(244, 201, 120, 0.4);
  color: #f9f4ee;
}

.ss-btn--ghost:hover,
.ss-btn--ghost:focus-visible {
  border-color: rgba(244, 201, 120, 0.8);
  background: rgba(23, 18, 32, 0.95);
}

.ss-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--ss-radius-pill);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(244, 201, 120, 0.12);
  border: 1px solid rgba(244, 201, 120, 0.3);
  color: rgba(249, 244, 238, 0.92);
}

.ss-pill--soft {
  background: rgba(72, 91, 168, 0.16);
  border-color: rgba(72, 91, 168, 0.35);
}

/* ---------------------------
   REVEAL ANIMATION
   --------------------------- */

[data-ss-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-ss-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------
   RESPONSIVE GLOBAL
   --------------------------- */

@media (max-width: 768px) {
  .ss-header-inner {
    padding-inline: 16px;
  }

  .ss-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-footer-meta {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .ss-container {
    padding-inline: 16px;
  }

  .ss-btn {
    width: 100%;
    justify-content: center;
  }
}
/* глобально на всякий случай */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
/* ===========================
   FOOTER LEGAL LINKS
   =========================== */

.ss-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 4px;
}

.ss-footer-link {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.ss-footer-link:hover {
  color: #f4c978;
  border-color: rgba(244, 201, 120, 0.8);
}

@media (max-width: 640px) {
  .ss-footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}
