/* AO ProDefence — hub / TSCM visual language */

@font-face {
  font-family: "Gilroy";
  font-weight: 300;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Light.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  font-weight: 400;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Regular.woff") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  font-weight: 500;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Medium.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  font-weight: 600;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Semibold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  font-weight: 700;
  font-style: normal;
  src: url("/assets/fonts/Gilroy-Bold.woff2") format("woff2");
  font-display: swap;
}

:root {
  --pv-bg: #000;
  --pv-ink: #f5f5f7;
  --pv-mute: #a1a1a6;
  --pv-dim: #6e6e73;
  --pv-line: rgba(255, 255, 255, 0.12);
  --pv-red: #ef1a33;
  --pv-red-hot: #ff2d45;
  --pv-card: #111;
  --pv-shell: min(1120px, calc(100% - 48px));
  --pv-wide: min(1380px, calc(100% - 48px));
  --pv-font: "Gilroy", "Segoe UI", system-ui, sans-serif;
  --pv-body: "Inter", "Gilroy", "Segoe UI", system-ui, sans-serif;
  --pv-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  background: #000;
  scrollbar-width: auto;
  scrollbar-color: #ef1a33 #0a0a0a;
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: #080808;
  border-left: 1px solid rgba(239, 26, 51, 0.18);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff7a8a 0%, #ef1a33 55%, #7a0a16 100%);
  border-radius: 999px;
  border: 3px solid #080808;
}

body {
  margin: 0;
  font-family: var(--pv-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--pv-ink);
  background: #000;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.pv {
  font-family: var(--pv-body);
  overflow-x: clip;
}

.pv h1,
.pv h2,
.pv h3,
.pv .pv-title,
.pv .pv-hero__tag,
.pv .pv-btn,
.pv .pv-kicker,
.pv .pv-counter {
  font-family: var(--pv-font);
}

.pv-shell {
  width: var(--pv-shell);
  margin-inline: auto;
}

.pv-wide {
  width: var(--pv-wide);
  margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group__title,
  body.hub-home.ao-body.menu-open #nav-columns a {
    animation: pv-up 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  }

  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(1) .pv-nav-group__title {
    animation-delay: 0.04s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(1) a:nth-of-type(1) {
    animation-delay: 0.08s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(1) a:nth-of-type(2) {
    animation-delay: 0.12s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(1) a:nth-of-type(3) {
    animation-delay: 0.16s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(1) a:nth-of-type(4) {
    animation-delay: 0.2s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(1) a:nth-of-type(5) {
    animation-delay: 0.24s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(2) .pv-nav-group__title {
    animation-delay: 0.14s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(2) a:nth-of-type(1) {
    animation-delay: 0.18s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(2) a:nth-of-type(2) {
    animation-delay: 0.22s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(2) a:nth-of-type(3) {
    animation-delay: 0.26s;
  }
  body.hub-home.ao-body.menu-open #nav-columns .pv-nav-group:nth-child(2) a:nth-of-type(4) {
    animation-delay: 0.3s;
  }

  body.hub-home.ao-body.menu-open .nav-footer {
    animation: pv-up 0.55s cubic-bezier(0.215, 0.61, 0.355, 1) 0.28s both;
  }
}

/* ========== Buttons ========== */
.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 980px;
  font: 600 16px/1 var(--pv-font);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition:
    background 0.25s var(--pv-ease),
    transform 0.25s var(--pv-ease),
    box-shadow 0.25s var(--pv-ease);
}

.pv-btn--primary {
  background: var(--pv-red);
  color: var(--pv-ink);
}

/* Footer: AO logo + way back to the main ProDefence site */
.ao-footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.ao-footer-brand .footer-logo {
  margin: 0;
}

.ao-footer-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--pv-line);
  font-family: var(--pv-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pv-mute);
  text-decoration: none;
  transition: color 0.2s var(--pv-ease);
}

.ao-footer-by span {
  color: var(--pv-red-hot);
}

@media (hover: hover) and (pointer: fine) {
  .ao-footer-by:hover {
    color: #fff;
  }
}

.pv-btn--ghost {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

@media (hover: hover) and (pointer: fine) {
  .pv-btn--primary:hover {
    background: var(--pv-red-hot);
  }

  .pv-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .pv-btn:hover {
    transform: scale(1.02);
  }
}

.pv-btn:active {
  transform: scale(0.96);
}

.pv-btn:focus-visible,
.pv a:focus-visible,
.menu-btn:focus-visible,
.header-lang:focus-visible {
  outline: 2px solid var(--pv-red-hot);
  outline-offset: 3px;
}

@keyframes pv-up {
  from {
    transform: translateY(18px);
  }
  to {
    transform: none;
  }
}

/* ========== Sections (hub tokens) ========== */
.pv-section {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6.5vw, 78px) 0;
  scroll-margin-top: 110px;
}

.pv-section--band {
  background: #0a0a0a;
  border-block: 1px solid var(--pv-line);
}

.pv-kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pv-red);
}

.pv-title {
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

.pv-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--pv-mute);
}

.pv-head-center {
  text-align: center;
  margin-bottom: 56px;
}

.pv-head-center .pv-lead {
  margin-inline: auto;
}

/* ========== HERO — hub composition (centered, monogram, short statement, chips) ========== */
.pv-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  padding: 88px 0 112px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.pv-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050505;
}

.pv-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.pv-hero__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 30% 35%;
}

/* Darker than hub: the render is busy, the centered type must win */
.pv-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.66) 68%, #000 100%),
    radial-gradient(70% 55% at 50% 40%, rgba(239, 26, 51, 0.16), transparent 70%);
}

.pv-hero__inner {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 48px));
}

.pv-hero__solo {
  display: block;
  width: clamp(52px, 10vw, 72px);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.pv-hero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--pv-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.72);
}

.pv-hero__tag {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}

.pv-hero__lead {
  margin: 0 auto 36px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  color: rgba(245, 245, 247, 0.78);
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.pv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.pv-hero__ports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-hero__ports a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-family: var(--pv-font);
  font-size: 13px;
  font-weight: 600;
  color: #ececf0;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .pv-hero__ports a:hover {
    color: #fff;
    background: rgba(239, 26, 51, 0.28);
    box-shadow: inset 0 0 0 1px rgba(239, 26, 51, 0.7);
  }
}

.pv-hero__scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

.pv-hero__scroll span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: pv-scroll 1.6s var(--pv-ease) infinite;
}

@keyframes pv-scroll {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .pv-hero__img {
    object-position: 26% 30%;
  }

  .pv-hero__scroll {
    display: none;
  }
}

/* ========== Practices — hub card component + accordion ========== */
.ao-practice-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}

.ao-practice {
  position: relative;
  border: 1px solid var(--pv-line);
  border-radius: 22px;
  background: #0c0c0c;
  transition:
    background 0.25s var(--pv-ease),
    border-color 0.25s var(--pv-ease);
}

.ao-practice::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: -1px;
  height: 2px;
  background: var(--pv-red);
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 0.3s var(--pv-ease),
    transform 0.3s var(--pv-ease);
}

.ao-practice.is-open {
  border-color: rgba(239, 26, 51, 0.45);
  background: #101010;
}

.ao-practice.is-open::before {
  opacity: 1;
  transform: none;
}

.ao-practice__head {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  gap: 18px 20px;
  align-items: center;
  padding: 22px 22px 22px 20px;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.ao-practice__head:focus-visible {
  outline: 2px solid var(--pv-red-hot);
  outline-offset: 3px;
}

.pv-dept__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #ff1838;
  background: linear-gradient(145deg, rgba(255, 24, 56, 0.09), rgba(255, 24, 56, 0.025));
  border: 1px solid rgba(255, 24, 56, 0.38);
  transition:
    border-color 0.25s var(--pv-ease),
    background 0.25s var(--pv-ease);
}

.pv-dept__icon .pd-icon {
  width: 24px;
  height: 24px;
}

.pv-dept__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-dim);
}

.ao-practice__main {
  display: block;
  min-width: 0;
}

.ao-practice__title {
  display: block;
  margin: 0 0 6px;
  font-family: var(--pv-font);
  font-size: clamp(1.3rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.ao-practice__one {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--pv-mute);
}

/* Round "+" — same shape as the blog slider arrows */
.ao-practice__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: #1c1c1e;
  transition:
    background 0.25s var(--pv-ease),
    color 0.25s var(--pv-ease);
}

.ao-practice__icon svg {
  transition: transform 0.3s var(--pv-ease);
}

.ao-practice.is-open .ao-practice__icon {
  background: var(--pv-red);
}

.ao-practice.is-open .ao-practice__icon svg {
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .ao-practice:hover {
    border-color: rgba(239, 26, 51, 0.45);
  }

  .ao-practice:hover .ao-practice__icon {
    background: #2c2c2e;
  }

  .ao-practice.is-open:hover .ao-practice__icon {
    background: var(--pv-red-hot);
  }
}

.ao-practice__panel {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 22px 0 calc(20px + 48px + 20px);
  transition: grid-template-rows 0.45s var(--pv-ease);
}

.ao-practice.is-open .ao-practice__panel {
  grid-template-rows: 1fr;
}

.ao-practice__panel[hidden] {
  display: none;
}

.ao-practice__panel-body {
  overflow: hidden;
  min-height: 0;
  max-width: 40rem;
  opacity: 0;
  padding-bottom: 0;
  transition:
    opacity 0.32s var(--pv-ease),
    padding-bottom 0.45s var(--pv-ease);
}

.ao-practice.is-open .ao-practice__panel-body {
  opacity: 1;
  padding-bottom: 24px;
}

.ao-practice__panel p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--pv-line);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--pv-mute);
  text-wrap: pretty;
}

.ao-practice__bullets {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ao-practice__bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--pv-mute);
}

.ao-practice__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1.5px;
  background: var(--pv-red);
}

@media (max-width: 640px) {
  .ao-practice__head {
    grid-template-columns: 44px minmax(0, 1fr) 40px;
    gap: 14px;
    padding: 18px 16px;
  }

  .pv-dept__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .ao-practice__icon {
    width: 40px;
    height: 40px;
  }

  .ao-practice__panel {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ao-practice,
  .ao-practice__panel,
  .ao-practice__panel-body {
    transition: none !important;
  }
}

/* ========== ABOUT — hub "Що таке ProDefence" + team photo card ========== */
.pv-about {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.pv-about::before {
  content: "";
  position: absolute;
  inset: 8% 10% 10%;
  z-index: -1;
  background: radial-gradient(50% 55% at 50% 38%, rgba(239, 26, 51, 0.12), transparent 72%);
  pointer-events: none;
}

.pv-about__inner {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.pv-about__kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pv-red);
}

.pv-about__title {
  margin: 0 0 16px;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: #fff;
  text-wrap: balance;
}

.pv-about__title .pv-brand-mark em {
  font-style: normal;
  color: var(--pv-red);
  text-shadow: 0 0 40px rgba(239, 26, 51, 0.45);
}

.pv-about__lead {
  margin: 0 auto 22px;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #e8e8ed;
  text-wrap: pretty;
}

.pv-about__rule {
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--pv-red), transparent);
  box-shadow: 0 0 18px rgba(239, 26, 51, 0.5);
}

.pv-about__copy {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  margin: 0 auto 36px;
}

.pv-about__copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--pv-mute);
  text-wrap: pretty;
}

/* ========== NAAU committee — one job: credibility (text + team photo) ========== */
.ao-committee__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.ao-committee__title {
  margin: 0 0 16px;
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
}

.ao-committee__text {
  margin: 0 0 28px;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--pv-mute);
  text-wrap: pretty;
}

.ao-committee__people {
  display: grid;
  margin: 0 0 24px;
  padding: 0;
  max-width: 32rem;
  list-style: none;
  border-top: 1px solid var(--pv-line);
}

.ao-committee__people li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pv-line);
}

.ao-committee__people strong {
  font-family: var(--pv-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.ao-committee__people span {
  font-size: 0.92rem;
  color: var(--pv-dim);
  text-align: right;
}

.ao-committee__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pv-red-hot);
  transition: gap 0.25s var(--pv-ease);
}

@media (hover: hover) and (pointer: fine) {
  .ao-committee__link:hover {
    gap: 12px;
  }
}

.ao-committee__photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--pv-line);
  border-radius: 24px;
  background: #0c0c0c;
}

.ao-committee__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 55% 40%;
}

@media (max-width: 860px) {
  .ao-committee__grid {
    grid-template-columns: 1fr;
  }

  .ao-committee__photo {
    order: -1;
  }
}

.pv-about__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
  width: min(100%, 44rem);
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ao-about__facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 38rem);
}

.pv-about__facts > div {
  margin: 0;
}

.pv-about__facts dt {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.pv-counter {
  display: inline-block;
  min-width: 2.4ch;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  transition:
    text-shadow 0.45s var(--pv-ease),
    color 0.45s var(--pv-ease);
}

.pv-counter.is-ticking {
  text-shadow: 0 0 22px rgba(239, 26, 51, 0.35);
}

.pv-counter.is-done {
  color: #fff;
  text-shadow: 0 0 28px rgba(239, 26, 51, 0.28);
}

.pv-about__facts dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--pv-dim);
}

@media (max-width: 560px) {
  .ao-about__facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ========== STATEMENT — typographic manifesto (hub) ========== */
.pv-statement {
  position: relative;
  text-align: center;
  padding: clamp(56px, 6vw, 84px) 0;
  isolation: isolate;
  overflow: hidden;
}

.pv-statement::before {
  content: "";
  position: absolute;
  inset: 20% 10% 25%;
  z-index: -1;
  background: radial-gradient(55% 60% at 50% 45%, rgba(239, 26, 51, 0.14), transparent 70%);
  pointer-events: none;
}

.pv-statement__inner {
  display: grid;
  justify-items: center;
}

.pv-statement__rule {
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--pv-red), transparent);
  box-shadow: 0 0 16px rgba(239, 26, 51, 0.55);
}

.pv-statement h2 {
  margin: 0 auto 28px;
  max-width: 16ch;
  font-family: var(--pv-font);
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: #fff;
  text-wrap: balance;
}

.pv-statement__line {
  display: block;
}

.pv-statement__line--dim {
  margin-top: 0.12em;
  color: var(--pv-dim);
}

.pv-statement__lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--pv-mute);
  text-wrap: pretty;
}

.pv-statement__cta {
  margin-top: 28px;
}

/* ========== Blog — hub rail + progress ========== */
.pv-blog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  margin-bottom: 36px;
}

.pv-blog__intro {
  flex: 1 1 auto;
  min-width: 0;
}

.pv-blog__intro .pv-title {
  margin: 0 0 12px;
}

.pv-blog__intro .pv-lead {
  margin: 0;
}

/* Same as hub: "До блогу" sits above the arrows, both right-aligned with the title */
.pv-blog__title-side {
  --pv-blog-nav-size: 48px;
  --pv-blog-nav-gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  flex: 0 0 auto;
  width: calc(var(--pv-blog-nav-size) * 2 + var(--pv-blog-nav-gap));
}

.pv-blog__nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: var(--pv-blog-nav-gap);
}

.pv-blog__btn {
  display: grid;
  place-items: center;
  width: var(--pv-blog-nav-size, 48px);
  height: var(--pv-blog-nav-size, 48px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #1f1f22;
  box-shadow: 0 0 0 1px rgba(239, 26, 51, 0.12);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s var(--pv-ease),
    border-color 0.2s var(--pv-ease),
    opacity 0.2s;
}

.pv-blog__btn:hover:not(:disabled) {
  background: #2d2d31;
  border-color: rgba(255, 45, 69, 0.55);
}

.pv-blog__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pv-blog__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 980px;
  border: 1px solid rgba(255, 45, 69, 0.55);
  background: rgba(255, 24, 56, 0.08);
  color: #fff;
  font-family: var(--pv-font);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition:
    background 0.25s var(--pv-ease),
    border-color 0.25s var(--pv-ease),
    gap 0.25s var(--pv-ease);
}

.pv-blog__all--inline {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.pv-blog__all span {
  color: var(--pv-red-hot);
  transition: transform 0.25s var(--pv-ease);
}

@media (hover: hover) and (pointer: fine) {
  .pv-blog__all:hover {
    background: rgba(255, 24, 56, 0.16);
    border-color: rgba(255, 45, 69, 0.85);
    gap: 14px;
  }

  .pv-blog__all:hover span {
    transform: translateX(3px);
  }
}

.pv-blog__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 32vw);
  gap: 18px;
  overflow-x: auto;
  /* overflow-x alone makes the rail scrollable vertically too (overflow-y: auto),
     so on iPhone the cards rubber-banded under the finger while scrolling the page. */
  overflow-y: hidden;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.pv-blog__rail::-webkit-scrollbar {
  display: none;
}

.pv-blog__progress {
  position: relative;
  height: 3px;
  margin: 14px 0 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pv-blog__progress-bar {
  display: block;
  height: 100%;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pv-red), var(--pv-red-hot));
  transition: width 0.15s linear;
}

.pv-blog__loading,
.pv-blog__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 8px;
  color: var(--pv-dim);
  font-size: 1rem;
}

.pv-post {
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: #121214;
  box-shadow: inset 0 0 0 1px var(--pv-line);
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition:
    box-shadow 0.3s var(--pv-ease),
    transform 0.3s var(--pv-ease);
}

@media (hover: hover) and (pointer: fine) {
  .pv-post:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }

  .pv-post:hover .pv-post__media img {
    transform: scale(1.06);
  }
}

.pv-post__media {
  position: relative;
  flex: 1;
  min-height: 190px;
  overflow: hidden;
}

/* Covers carry their own text (name, role, logo). Keep the top of the cover
   in frame and put a solid gradient plate under our title so texts never mix. */
.pv-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s var(--pv-ease);
}

/* Author covers: person on the right, name + role on the left — crop to the person */
.pv-post--author .pv-post__media img {
  object-position: 94% 24%;
}

.pv-post__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.94) 72%, #000 100%);
  pointer-events: none;
}

.pv-post__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px 22px 22px;
}

.pv-post__cat {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-red-hot);
}

.pv-post h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}

@media (max-width: 960px) {
  .pv-blog__head {
    flex-direction: column;
    align-items: stretch;
  }

  .pv-blog__title-side {
    align-self: flex-start;
  }

  .pv-blog__rail {
    grid-auto-columns: minmax(260px, 78vw);
  }

  .pv-post {
    min-height: 300px;
  }
}

/* ========== Contact — hub layout ========== */
.pv-contact {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 72px);
  scroll-margin-top: 110px;
  isolation: isolate;
}

.pv-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 55% at 70% 80%, rgba(239, 26, 51, 0.22), transparent 70%), #000;
}

.pv-contact__grid {
  width: var(--pv-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.pv-contact__copy {
  display: flex;
  align-self: start;
}

.pv-contact__rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  width: 100%;
  max-width: 36rem;
}

.pv-contact__intro {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.pv-contact__intro .pv-title {
  margin-bottom: 16px;
}

.pv-contact__intro .pv-lead {
  margin-bottom: 28px;
}

.pv-checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.02rem;
  line-height: 1.4;
  color: #d2d2d7;
}

.pv-checks .pd-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--pv-red-hot);
  margin-top: 2px;
}

/* Text and icons share a row only when both fit; otherwise icons wrap under the text */
.pv-contact-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 20px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.28);
}

.pv-contact-quick__text {
  flex: 1 1 13rem;
  min-width: 0;
}

.pv-contact-quick__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.pv-contact-quick__sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--pv-dim);
  line-height: 1.35;
}

.pv-contact-quick__messengers {
  display: flex;
  flex: 0 1 auto;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.pv-contact-quick__messengers a {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 48px;
  padding: 2px;
  text-decoration: none;
  transition: transform 0.2s var(--pv-ease);
}

.pv-contact-quick__msg-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  line-height: 0;
}

.pv-contact-quick__msg-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, #c50c1f 0%, #9a0c1f 100%);
  -webkit-mask-image: var(--pv-icon);
  mask-image: var(--pv-icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0;
  transition: opacity 0.2s var(--pv-ease);
  pointer-events: none;
}

.pv-contact-quick__messengers a:hover,
.pv-contact-quick__messengers a:focus-visible {
  transform: translateY(-2px);
}

.pv-contact-quick__messengers a:hover .pv-contact-quick__msg-icon img,
.pv-contact-quick__messengers a:focus-visible .pv-contact-quick__msg-icon img {
  opacity: 0;
}

.pv-contact-quick__messengers a:hover .pv-contact-quick__msg-icon::after,
.pv-contact-quick__messengers a:focus-visible .pv-contact-quick__msg-icon::after {
  opacity: 1;
}

.pv-contact-quick__messengers img {
  display: block;
  width: 32px;
  height: 32px;
  transition: opacity 0.2s var(--pv-ease);
}

.pv-contact-quick__msg-label {
  font-size: 0.72rem;
  font-weight: 450;
  line-height: 1.2;
  color: var(--pv-dim);
  text-align: center;
  white-space: nowrap;
}

.pv-contact .feedback-section {
  padding: 0;
  display: flex;
  align-self: stretch;
}

.pv-contact .pd-container {
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
}

.pv-contact .feedback {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.pv-contact .feedback-submit {
  transition:
    background 0.25s var(--pv-ease),
    transform 0.2s var(--pv-ease),
    box-shadow 0.25s var(--pv-ease);
}

.pv-contact .feedback-submit:hover {
  box-shadow: 0 10px 28px rgba(239, 26, 51, 0.35);
}

.pv-contact .feedback-submit:active {
  transform: scale(0.97);
}

.pv-form-privacy {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--pv-dim);
}

.pv-form-privacy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pv-contact .feedback-form input,
.pv-contact .feedback-form textarea,
.pv-contact .pv-select__control {
  transition:
    border-color 0.22s var(--pv-ease),
    box-shadow 0.22s var(--pv-ease),
    background 0.22s var(--pv-ease);
}

.pv-contact .feedback-form input:focus,
.pv-contact .feedback-form textarea:focus,
.pv-contact .pv-select__control:focus {
  box-shadow: 0 0 0 3px rgba(239, 26, 51, 0.22);
}

.pv-select {
  position: relative;
  margin-top: 6px;
}

.pv-select__control {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 44px 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 10, 0.72);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 550;
  font-family: inherit;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s var(--pv-ease),
    background 0.2s var(--pv-ease),
    box-shadow 0.2s var(--pv-ease);
}

.pv-select__control:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.pv-select__control:focus {
  outline: none;
  border-color: rgba(239, 26, 51, 0.75);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(239, 26, 51, 0.18);
}

.pv-select__control option {
  background: #121214;
  color: #fff;
}

.pv-select__chevron {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.pv-select:focus-within .pv-select__chevron {
  border-color: var(--pv-red-hot);
}

@media (max-width: 960px) {
  .pv-contact__grid {
    grid-template-columns: 1fr;
  }

  /* Mobile: form fields and submit align with the content edges (no inset card). */
  .pv-contact .feedback {
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }

  .pv-contact__copy,
  .pv-contact__rail {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .pv-contact__rail {
    justify-content: flex-start;
    gap: 28px;
  }

  .pv-contact-quick__messengers {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

/* Float CTA */
.pv-float-cta {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 10050;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 45, 69, 0.6);
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: #fff !important;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.92);
  transition:
    opacity 0.35s var(--pv-ease),
    transform 0.4s var(--pv-ease),
    visibility 0.35s,
    background 0.2s var(--pv-ease),
    border-color 0.2s var(--pv-ease);
}

.pv-float-cta[hidden] {
  display: grid !important;
}

.pv-float-cta.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.pv-float-cta__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  line-height: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .pv-float-cta.is-visible {
    animation: pv-float-breathe 2.6s ease-in-out infinite;
  }
}

@keyframes pv-float-breathe {
  0%,
  100% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.45),
      0 0 0 0 rgba(239, 26, 51, 0);
    border-color: rgba(255, 45, 69, 0.55);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.45),
      0 0 0 8px rgba(239, 26, 51, 0.14);
    border-color: rgba(255, 45, 69, 0.9);
  }
}

/* ========== Scroll reveal (same rhythm as hub) ========== */
@media (prefers-reduced-motion: no-preference) {
  .pv-hero__inner > * {
    animation: pv-up 0.85s var(--pv-ease) both;
  }

  .pv-hero__inner > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .pv-hero__inner > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .pv-hero__inner > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .pv-hero__inner > :nth-child(5) {
    animation-delay: 0.24s;
  }
  .pv-hero__inner > :nth-child(6) {
    animation-delay: 0.3s;
  }

  .pv.js-reveal .ao-practice,
  .pv.js-reveal .pv-post,
  .pv.js-reveal [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    transition:
      opacity 0.58s var(--pv-ease),
      transform 0.58s var(--pv-ease),
      background 0.35s var(--pv-ease),
      border-color 0.35s var(--pv-ease);
  }

  .pv.js-reveal .ao-practice[data-reveal-from="above"],
  .pv.js-reveal .pv-post[data-reveal-from="above"],
  .pv.js-reveal [data-reveal][data-reveal-from="above"] {
    transform: translate3d(0, -18px, 0) scale(0.985);
  }

  .pv.js-reveal .ao-practice.is-in,
  .pv.js-reveal .pv-post.is-in,
  .pv.js-reveal [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* No stagger after enter — open/hover must feel instant */
  .pv.js-reveal .ao-practice.is-in {
    transition:
      background 0.25s var(--pv-ease),
      border-color 0.25s var(--pv-ease);
  }

  .pv.js-reveal .ao-practice:nth-child(2):not(.is-in) { transition-delay: 0.04s; }
  .pv.js-reveal .ao-practice:nth-child(3):not(.is-in) { transition-delay: 0.08s; }
  .pv.js-reveal .ao-practice:nth-child(4):not(.is-in) { transition-delay: 0.12s; }
  .pv.js-reveal .ao-practice:nth-child(5):not(.is-in) { transition-delay: 0.16s; }

  .pv.js-reveal .pv-post:nth-child(2):not([data-reveal-from="above"]) {
    transition-delay: 0.08s;
  }
  .pv.js-reveal .pv-post:nth-child(3):not([data-reveal-from="above"]) {
    transition-delay: 0.16s;
  }

  .pv.js-reveal .feedback-section.is-in {
    transition-delay: 0.1s;
  }
}

body.nav-open,
body.menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pv.js-reveal .ao-practice,
  .pv.js-reveal .pv-post,
  .pv.js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
