/*
Theme Name: АЙОС 26
Theme URI: https://ios26.store
Author: АЙОС 26
Description: Тёмный лендинг АЙОС 26 с кнопками связи. Настройки — Внешний вид → Настроить.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: aios26
*/

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --mark: rgba(255, 255, 255, 0.035);
  --burgundy: #7a1f2b;
  --burgundy-soft: #9a2a3a;
  --burgundy-glow: rgba(122, 31, 43, 0.45);
  --line: rgba(122, 31, 43, 0.85);
  --radius: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --stage-pad-x: max(1.25rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --stage-pad-top: max(1.75rem, env(safe-area-inset-top, 0px));
  --stage-pad-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 700px at 50% 115%, rgba(122, 31, 43, 0.18), transparent 55%),
    radial-gradient(800px 500px at 80% 0%, rgba(122, 31, 43, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

body.admin-bar .stage {
  min-height: calc(100svh - 32px);
  min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .stage {
    min-height: calc(100svh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

.bg-mark {
  position: fixed;
  font-weight: 700;
  font-size: clamp(5.5rem, 22vw, 18rem);
  letter-spacing: -0.06em;
  color: var(--mark);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  max-width: 55vw;
  overflow: hidden;
  white-space: nowrap;
}

.bg-mark--tl {
  top: -3%;
  left: -4%;
  transform: rotate(-8deg);
}

.bg-mark--br {
  right: -4%;
  bottom: -6%;
  transform: rotate(6deg);
}

.stage {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: clamp(1.25rem, 3.5vh, 2.75rem);
  padding:
    var(--stage-pad-top)
    var(--stage-pad-x)
    var(--stage-pad-bottom);
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 36rem);
  padding-inline: 0.25rem;
  animation: rise 0.9s var(--ease) both;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  height: 2.35rem;
  padding: 0 1.05rem;
  border-radius: var(--radius);
  background: var(--fg);
  box-shadow: 0 0 0 1px rgba(122, 31, 43, 0.35), 0 10px 40px rgba(0, 0, 0, 0.35);
  animation: pulse-soft 3.6s ease-in-out infinite;
}

.logo__text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--bg);
  line-height: 1;
}

.title {
  margin: 1.15rem 0 0.65rem;
  font-size: clamp(2.35rem, 9vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 100%;
}

.tagline {
  margin: 0;
  max-width: 100%;
  font-size: clamp(0.7rem, 2.4vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: balance;
  animation: rise 1s var(--ease) 0.12s both;
}

.accent-line {
  margin-top: 1.2rem;
  width: 3.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  animation: grow 1.1s var(--ease) 0.25s both;
  flex-shrink: 0;
}

.socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  width: min(100%, 18.5rem);
  animation: rise 1s var(--ease) 0.2s both;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.social svg {
  flex-shrink: 0;
}

.social:active {
  background: var(--burgundy);
  border-color: var(--burgundy-soft);
  transform: scale(0.98);
}

.social:focus-visible {
  background: var(--burgundy);
  border-color: var(--burgundy-soft);
  box-shadow: 0 0 0 3px rgba(154, 42, 58, 0.45);
  outline: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grow {
  from {
    opacity: 0;
    transform: scaleX(0.25);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(122, 31, 43, 0.35), 0 10px 40px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(154, 42, 58, 0.55), 0 12px 48px rgba(122, 31, 43, 0.25);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .stage {
    gap: 0.85rem;
    justify-content: safe center;
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }

  .title {
    margin: 0.55rem 0 0.35rem;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .tagline {
    letter-spacing: 0.12em;
  }

  .accent-line {
    margin-top: 0.65rem;
  }

  .logo {
    min-width: 3.8rem;
    height: 2rem;
  }

  .bg-mark {
    font-size: clamp(4rem, 18vw, 9rem);
    opacity: 0.7;
  }

  .socials {
    width: min(100%, 18.5rem);
    gap: 0.55rem;
  }

  .social {
    min-height: 2.75rem;
    font-size: 0.88rem;
  }
}

@media (min-width: 480px) {
  .tagline {
    letter-spacing: 0.22em;
  }

  .socials {
    width: min(100%, 20rem);
    gap: 0.8rem;
  }
}

@media (min-width: 768px) {
  :root {
    --stage-pad-x: max(2rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  }

  .tagline {
    letter-spacing: 0.28em;
  }

  .logo {
    min-width: 5.1rem;
    height: 2.55rem;
  }

  .logo__text {
    font-size: 1.12rem;
  }

  .socials {
    width: min(100%, 20rem);
    gap: 0.9rem;
  }

  .social {
    min-height: 3.35rem;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .stage {
    gap: 3.25rem;
  }

  .title {
    margin: 1.45rem 0 0.8rem;
  }

  .accent-line {
    margin-top: 1.45rem;
    width: 3.75rem;
  }

  .socials {
    width: min(100%, 22rem);
    gap: 1rem;
  }

  .social {
    min-height: 3.5rem;
    padding: 0.85rem 1.15rem;
  }

  .bg-mark {
    font-size: clamp(10rem, 22vw, 18rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  .social:hover {
    background: var(--burgundy);
    border-color: var(--burgundy-soft);
    box-shadow: 0 10px 30px var(--burgundy-glow);
    transform: translateY(-2px);
  }

  .social:active {
    transform: translateY(0);
  }
}

/* —— News block on main —— */
.news {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 20rem);
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(122, 31, 43, 0.22), transparent 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(122, 31, 43, 0.18);
  text-align: center;
  animation: rise 1s var(--ease) 0.16s both;
}

.news__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.news__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.1rem, 4.2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.news__text {
  margin: 0;
  font-size: clamp(0.88rem, 3.2vw, 0.98rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.news__place {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92em;
}

@media (max-height: 520px) and (orientation: landscape) {
  .news {
    padding: 0.75rem 1rem 0.85rem;
  }

  .news__badge {
    margin-bottom: 0.4rem;
  }

  .news__title {
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }
}

@media (min-width: 480px) {
  .news {
    width: min(100%, 20rem);
  }
}

@media (min-width: 768px) {
  .news {
    width: min(100%, 20rem);
    padding: 1.25rem 1.35rem 1.35rem;
  }
}

@media (min-width: 1024px) {
  .news {
    width: min(100%, 22rem);
  }
}

/* —— Friday promo modal (one-time) —— */
body.promo-open {
  overflow: hidden;
}

.promo {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(1.25rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s var(--ease),
    visibility 0.28s var(--ease);
}

.promo.is-open {
  opacity: 1;
  visibility: visible;
}

.promo[hidden] {
  display: none !important;
}

.promo.is-open[hidden] {
  display: flex !important;
}

.promo__dialog {
  position: relative;
  width: min(100%, 21.5rem);
  padding: 2rem 1.6rem 1.55rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(122, 31, 43, 0.28), transparent 55%),
    linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
  box-shadow:
    0 0 0 1px rgba(122, 31, 43, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  outline: none;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.32s var(--ease);
}

.promo.is-open .promo__dialog {
  transform: translateY(0) scale(1);
}

.promo__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.promo__close:hover,
.promo__close:focus-visible {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.promo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.95rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.promo__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.promo__text {
  margin: 0;
  font-size: clamp(0.98rem, 3.4vw, 1.08rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.promo__place {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92em;
}

.promo__line {
  margin: 1.25rem auto 1.15rem;
  width: 2.75rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  min-width: 8.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.promo__cta:hover,
.promo__cta:focus-visible {
  background: var(--burgundy);
  border-color: var(--burgundy-soft);
  box-shadow: 0 10px 28px var(--burgundy-glow);
  outline: none;
}

.promo__cta:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
