/* =========================================
   SoftLight Yoga — global styles
   styles/style.css
   ========================================= */

/* Local fonts from Google Fonts (TTF placed in /fonts) */
@font-face {
  font-family: "SoftLight Sans";
  src: url("../fonts/Urbanist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

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

/* Root tokens */
:root {
  --sy-bg: #040613;
  --sy-bg-elevated: #090b1c;
  --sy-bg-soft: #101326;
  --sy-border-subtle: rgba(148, 163, 184, 0.2);

  --sy-accent-rose: #f9a8d4;
  --sy-accent-rose-soft: rgba(249, 168, 212, 0.14);
  --sy-accent-amber: #facc6b;
  --sy-accent-amber-soft: rgba(250, 204, 107, 0.18);
  --sy-accent-mint: #6ee7b7;

  --sy-text-main: #f9fafb;
  --sy-text-muted: #cbd5f5;
  --sy-text-soft: #9ca3c9;

  --sy-radius-lg: 1.75rem;
  --sy-radius-md: 1.25rem;
  --sy-radius-pill: 999px;

  --sy-shadow-soft: 0 26px 60px rgba(15, 23, 42, 0.85);
  --sy-shadow-glow: 0 0 40px rgba(249, 168, 212, 0.35);

  --sy-header-height: 76px;

  --sy-transition-fast: 200ms ease-out;
  --sy-transition-base: 260ms ease-out;

  --sy-max-width: 1180px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SoftLight Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sy-text-main);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.06) 0, transparent 50%),
    radial-gradient(circle at 90% 0%, rgba(249, 168, 212, 0.12) 0, transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(94, 234, 212, 0.08) 0, transparent 55%),
    var(--sy-bg);
  padding-top: var(--sy-header-height);
  -webkit-font-smoothing: antialiased;
}

.sy-body.is-loaded {
  transition: background 900ms ease-out;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "SoftLight Serif", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
  line-height: 1.6;
}

/* Layout helpers */
.sy-shell {
  width: 100%;
  max-width: var(--sy-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.sy-main {
  padding-block: 2.5rem 3.5rem;
}

/* Skip link */
.sy-skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 0.5rem;
  z-index: 999;
  text-decoration: none;
  font-size: 0.9rem;
}

.sy-skip:focus {
  left: 0.75rem;
}

/* Header */
.sy-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--sy-header-height);
  z-index: 200;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.94),
    rgba(15, 23, 42, 0.8),
    rgba(15, 23, 42, 0.6)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.sy-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

/* Logo */
.sy-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.sy-logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 45% 55% 60% 40%;
  background:
    radial-gradient(circle at 30% 0%, #facc6b 0, transparent 55%),
    radial-gradient(circle at 80% 60%, #f9a8d4 0, transparent 52%),
    #111827;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35), var(--sy-shadow-glow);
}

.sy-logo__text {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Nav */
.sy-nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sy-nav__link {
  position: relative;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--sy-text-soft);
  padding-block: 0.35rem;
  transition: color var(--sy-transition-fast);
}

.sy-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sy-accent-rose), var(--sy-accent-amber));
  transition: width var(--sy-transition-base);
}

.sy-nav__link:hover,
.sy-nav__link:focus-visible {
  color: var(--sy-text-main);
}

.sy-nav__link:hover::after,
.sy-nav__link:focus-visible::after,
.sy-nav__link--active::after {
  width: 100%;
}

.sy-header__cta {
  display: flex;
  align-items: center;
}

.sy-header__note {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sy-text-soft);
  padding: 0.3rem 0.9rem;
  border-radius: var(--sy-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.8),
    rgba(15, 23, 42, 0.98)
  );
}

/* Buttons */
.sy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--sy-radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--sy-transition-base),
    color var(--sy-transition-base),
    box-shadow var(--sy-transition-base),
    transform 160ms ease-out;
}

.sy-btn--primary {
  background: radial-gradient(circle at 0 0, #facc6b 0, #f97316 35%, #ec4899 100%);
  color: #020617;
  box-shadow: 0 18px 35px rgba(248, 250, 252, 0.12), var(--sy-shadow-glow);
}

.sy-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(148, 163, 184, 0.45), var(--sy-shadow-glow);
}

.sy-btn--ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--sy-text-main);
  border-color: rgba(148, 163, 184, 0.55);
}

.sy-btn--ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.7);
}

/* Footer */
.sy-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 1) 0, #020617 55%);
}

.sy-footer__inner {
  padding-block: 1.9rem 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.sy-footer__title {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sy-footer__text {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--sy-text-soft);
  max-width: 28rem;
}

/* Global reveal animation helper */
.js-sy-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.js-sy-reveal.sy-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------
   Responsive global layout
   --------------------------------- */

@media (max-width: 900px) {
  :root {
    --sy-header-height: 70px;
  }

  body {
    padding-top: var(--sy-header-height);
  }

  .sy-header__inner {
    gap: 1rem;
  }

  .sy-header__note {
    display: none;
  }
}

@media (max-width: 640px) {
  .sy-shell {
    padding-inline: 1rem;
  }

  .sy-nav__list {
    gap: 0.9rem;
  }

  .sy-nav__link {
    font-size: 0.82rem;
  }

  .sy-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* -----------------------------------------
   Footer legal links
   ----------------------------------------- */

.sy-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.86rem;
  margin-top: 0.6rem;
}

.sy-footer__legal-link {
  text-decoration: none;
  color: var(--sy-text-muted);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.9);
  transition:
    background-color 180ms ease-out,
    color 180ms ease-out,
    border-color 180ms ease-out,
    transform 180ms ease-out;
}

.sy-footer__legal-link:hover {
  color: #e5e7eb;
  border-color: rgba(248, 250, 252, 0.9);
  transform: translateY(-1px);
}
