/* ===============================
   SOLEPOINT GLOBAL STYLES — NEW DESIGN
   =============================== */

/* ---- Local Google Fonts (TTF) ---- */
/* Скачай TTF из Google Fonts:
   Manrope (400,500,600) и Syne (600)
   и положи в /fonts с такими именами. */
@font-face {
  font-family: "SolePointSans";
  src: url("../fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

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

/* ---- CSS Variables ---- */
:root {
  --sp-bg: #f6f0e8;
  --sp-bg-alt: #fdf7f0;
  --sp-surface: #ffffff;
  --sp-surface-soft: #f7eee4;
  --sp-accent: #ff6a3c;
  --sp-accent-soft: #ffd0b8;
  --sp-mint: #36b9a2;
  --sp-text-main: #221b26;
  --sp-text-muted: #7b6f7e;
  --sp-border-soft: rgba(64, 38, 17, 0.12);
  --sp-radius-lg: 32px;
  --sp-radius-md: 22px;
  --sp-radius-pill: 999px;
  --sp-shadow-soft: 0 22px 44px rgba(141, 87, 48, 0.18);
  --sp-header-height: 78px;
  --sp-transition-fast: 0.18s ease-out;
  --sp-transition-med: 0.3s ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body.sp-body {
  margin: 0;
  min-height: 100vh;
  font-family: "SolePointSans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, #ffe4c7 0, transparent 55%),
    radial-gradient(circle at bottom right, #f0f0ff 0, transparent 55%),
    linear-gradient(135deg, #f6f0e8 0, #fdf7f0 55%, #f4f5fb 100%);
  color: var(--sp-text-main);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Ограничиваем ширину всех изображений */
img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 18px;
}

/* Типографика и базовые элементы */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
  color: var(--sp-text-muted);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--sp-text-muted);
}

li + li {
  margin-top: 0.25rem;
}

/* ---- Layout ---- */
.sp-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  padding: calc(var(--sp-header-height) + 32px) 26px 88px;
  margin: 0 auto;
}

.sp-section {
  margin-block: 80px;
}

/* ---- Header ---- */
.sp-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--sp-header-height);
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(253, 247, 240, 0.96),
    rgba(253, 247, 240, 0.9),
    rgba(253, 247, 240, 0.88)
  );
  border-bottom: 1px solid rgba(138, 93, 56, 0.12);
  transition: background var(--sp-transition-med), border-bottom var(--sp-transition-med),
    box-shadow var(--sp-transition-med), transform 0.18s ease-out;
}

.sp-header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* Header scroll state */
.sp-header--scrolled {
  box-shadow: 0 18px 40px rgba(138, 93, 56, 0.18);
  background: rgba(253, 247, 240, 0.98);
}

/* Logo */
.sp-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px;
  border-radius: 999px;
  background:
    linear-gradient(120deg, #ffffff 0, #fff5ec 50%, #ffffff 100%);
  border: 1px solid rgba(156, 110, 71, 0.22);
  box-shadow: 0 10px 25px rgba(156, 110, 71, 0.18);
  transition: transform var(--sp-transition-fast), box-shadow var(--sp-transition-fast),
    border-color var(--sp-transition-fast), background var(--sp-transition-fast);
}

.sp-logo:hover {
  transform: translateY(-1px) translateX(1px);
  border-color: rgba(210, 135, 83, 0.8);
  box-shadow: 0 16px 32px rgba(156, 110, 71, 0.32);
  background: linear-gradient(120deg, #fffaf6 0, #ffe7d1 45%, #ffffff 100%);
}

.sp-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background:
    conic-gradient(from 220deg, #ff6a3c, #ffd0b8, #36b9a2, #ffba5c, #ff6a3c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "SolePointDisplay", system-ui, sans-serif;
  font-size: 18px;
  color: #281310;
}

.sp-logo-mark--small {
  width: 24px;
  height: 24px;
  font-size: 15px;
}

.sp-logo-text {
  font-family: "SolePointDisplay", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 14px;
  text-transform: uppercase;
}

/* Navigation */
.sp-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.sp-nav-link {
  position: relative;
  padding: 6px 6px;
  color: var(--sp-text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition:
    color var(--sp-transition-fast),
    opacity var(--sp-transition-fast),
    transform var(--sp-transition-fast);
}

.sp-nav-link::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sp-accent), var(--sp-mint));
  transition: width var(--sp-transition-fast), transform var(--sp-transition-fast);
}

.sp-nav-link:hover {
  color: var(--sp-text-main);
  transform: translateY(-1px);
}

.sp-nav-link:hover::after {
  width: 80%;
}

.sp-nav-link--active {
  color: var(--sp-text-main);
}

.sp-nav-link--active::after {
  width: 80%;
}

/* Burger */
.sp-burger {
  display: none;
  position: relative;
  width: 38px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(138, 93, 56, 0.3);
  background: linear-gradient(135deg, #ffffff 0, #ffe7d4 100%);
  padding: 0 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color var(--sp-transition-fast), background var(--sp-transition-fast),
    transform var(--sp-transition-fast), box-shadow var(--sp-transition-fast);
}

.sp-burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #3b2720;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out, width 0.18s ease-out;
}

.sp-burger:hover {
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 1px rgba(255, 106, 60, 0.32);
}

/* Burger active state */
.sp-burger.sp-burger--active span:nth-child(1) {
  transform: translateY(5px) rotate(40deg);
}

.sp-burger.sp-burger--active span:nth-child(2) {
  opacity: 0;
}

.sp-burger.sp-burger--active span:nth-child(3) {
  transform: translateY(-5px) rotate(-40deg);
}

/* Header menu open */
.sp-header.sp-header--menu-open {
  box-shadow: 0 20px 42px rgba(138, 93, 56, 0.28);
}

/* Buttons */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--sp-radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--sp-transition-med),
    color var(--sp-transition-med),
    box-shadow var(--sp-transition-med),
    transform 0.14s ease-out,
    border-color var(--sp-transition-med);
}

.sp-btn--primary {
  background: linear-gradient(120deg, #ff6a3c, #ffb45c);
  color: #2c1109;
  box-shadow: 0 18px 40px rgba(255, 106, 60, 0.4);
}

.sp-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(255, 106, 60, 0.55);
}

.sp-btn--ghost {
  background: #fff8f1;
  color: var(--sp-text-main);
  border-color: rgba(138, 93, 56, 0.45);
  box-shadow: 0 12px 26px rgba(138, 93, 56, 0.22);
}

.sp-btn--ghost:hover {
  background: #ffe7d3;
  border-color: var(--sp-accent);
}

/* Chips / Badges */
.sp-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--sp-radius-pill);
  border: 1px dashed rgba(155, 108, 74, 0.55);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-text-muted);
  background:
    linear-gradient(120deg, #fffdf9 0, #fff1de 40%, #fffdf9 100%);
}

.sp-chip--outline {
  background: transparent;
  border-style: solid;
}

.sp-chip--accent {
  border-style: solid;
  border-color: rgba(255, 106, 60, 0.9);
  background: linear-gradient(120deg, #ffeadc 0, #fff9f4 100%);
  color: #3f1908;
}

/* Reveal animation */
.sp-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.sp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Footer */
.sp-footer {
  background:
    linear-gradient(to top, #f0e4d9 0, #f8f1ea 60%, #fdf7f0 100%);
  border-top: 1px solid rgba(138, 93, 56, 0.2);
  padding: 30px 26px 24px;
}

.sp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 34px;
  align-items: flex-start;
}

.sp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "SolePointDisplay", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.sp-footer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sp-text-muted);
  margin-bottom: 0.5rem;
}

.sp-footer-contact {
  font-size: 13px;
}

.sp-footer-link {
  display: inline-flex;
  margin-bottom: 0.3rem;
  font-size: 13px;
  color: var(--sp-text-muted);
  transition: color var(--sp-transition-fast), transform var(--sp-transition-fast);
}

.sp-footer-link:hover {
  color: var(--sp-accent);
  transform: translateY(-1px);
}

.sp-footer-address {
  font-size: 12px;
  color: var(--sp-text-muted);
}

.sp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.sp-footer-copy {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  color: var(--sp-text-muted);
}

/* Screen-reader only */
.sp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1024px) {
  .sp-main {
    padding-inline: 22px;
  }

  .sp-header-inner {
    padding-inline: 22px;
  }
}

@media (max-width: 768px) {
  .sp-header-inner {
    gap: 12px;
  }

  .sp-nav {
    position: fixed;
    right: 18px;
    top: calc(var(--sp-header-height) + 8px);
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 22px;
    background:
      linear-gradient(140deg, #ffffff 0, #ffe9d5 40%, #ffffff 100%);
    border: 1px solid rgba(138, 93, 56, 0.32);
    box-shadow: 0 20px 40px rgba(138, 93, 56, 0.32);
    min-width: 190px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity var(--sp-transition-fast),
      transform var(--sp-transition-fast);
  }

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

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

  .sp-main {
    padding-inline: 16px;
    padding-top: calc(var(--sp-header-height) + 24px);
  }

  .sp-footer-inner {
    grid-template-columns: 1fr;
  }

  .sp-footer-copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .sp-main {
    padding-inline: 14px;
  }

  .sp-header-inner {
    padding-inline: 14px;
  }

  .sp-logo-text {
    font-size: 13px;
  }

  .sp-footer {
    padding-inline: 16px;
  }
}
