@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200;300;400;700&family=DM+Mono:wght@300;400&display=swap');

:root {
  --black: #0A0A0A;
  --white: #F0EEE9;
  --accent: #FF5300;
  --B: 'Raleway', sans-serif;
  --M: 'DM Mono', monospace;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #0A0A0A !important;
  color: #F0EEE9;
  font-family: 'DM Mono', monospace;
  cursor: none !important;
  overflow-x: hidden;
}

/* Скрыть стандартные отступы Tilda */
.t-rec { padding: 0 !important; }
.t-section { padding: 0 !important; background: #0A0A0A !important; }

/* ── КУРСОР ── */
.ax-cur {
  position: fixed; width: 7px; height: 7px;
  background: #F0EEE9; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
.ax-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1px solid rgba(240,238,233,.3); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, border-color .3s;
}

/* ── ХЕДЕР ── */
.ax-nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 28px 52px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
}
.ax-nav a { text-decoration: none; }
.ax-nav ul { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; }
.ax-nav ul a {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .15em;
  color: rgba(240,238,233,.4); text-transform: uppercase;
  transition: color .25s;
}
.ax-nav ul a:hover,
.ax-nav ul a.ax-active { color: #F0EEE9; }

/* ── ФУТЕР ── */
.ax-footer {
  padding: 26px 52px;
  border-top: 1px solid rgba(240,238,233,.05);
  background: #0A0A0A;
  display: flex; justify-content: space-between; align-items: center;
}
.ax-f-left { display: flex; align-items: center; gap: 10px; }
.ax-f-name {
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 200;
  letter-spacing: .16em; color: rgba(240,238,233,.26);
}
.ax-f-copy {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .1em;
  color: rgba(240,238,233,.18);
}

/* ── АНИМАЦИИ ── */
@keyframes axSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hintFade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── КНОПКА CTA ── */
.cta-btn,
.ax-cta-btn,
.ax-btn {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  color: #FFFFFF !important;
  -webkit-font-smoothing: antialiased !important;
}
.cta-btn:hover,
.ax-cta-btn:hover,
.ax-btn:hover {
  color: #FFFFFF !important;
}

/* ══════════════════════════════════════
   ПОРТФОЛИО — Paritetbank (блоки T123)
   ══════════════════════════════════════ */

.ax-proj-wrap { padding: 80px 52px 32px; }
.ax-proj-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(240,238,233,.07);
  margin-bottom: 12px;
}
.ax-proj-client {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 200; letter-spacing: .04em;
  color: #F0EEE9; line-height: 1;
}
.ax-proj-meta {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px; padding-bottom: 4px;
}
.ax-proj-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .22em;
  color: #FF5300; text-transform: uppercase;
}
.ax-proj-scope {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .1em;
  color: rgba(240,238,233,.35);
  text-align: right; line-height: 1.8;
}
.ax-proj-addr {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .1em;
  color: rgba(240,238,233,.2); text-align: right;
}
.ax-zones { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
.ax-zone-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,238,233,.35);
  border: 1px solid rgba(240,238,233,.1);
  padding: 6px 14px;
}

/* Метки секций */
.ax-section-label {
  padding: 28px 52px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .22em;
  color: rgba(240,238,233,.28); text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.ax-section-label::before {
  content: ''; display: block;
  width: 24px; height: 1px;
  background: #FF5300; opacity: .6;
}

/* ── Карточки ── */
.ax-card {
  position: relative; overflow: hidden;
  background: #111; cursor: pointer;
  display: block; text-decoration: none;
}
.ax-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1), filter .5s;
  filter: brightness(.85);
}
.ax-card:hover img { transform: scale(1.04); filter: brightness(1); }
.ax-card-top {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(to bottom, rgba(10,10,10,.65), transparent);
  z-index: 2;
}
.ax-card-zone {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: .2em;
  color: rgba(240,238,233,.6); text-transform: uppercase;
  border: 1px solid rgba(240,238,233,.2); padding: 6px 12px;
  backdrop-filter: blur(4px); background: rgba(10,10,10,.3);
}
.ax-card-num {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: .16em;
  color: rgba(240,238,233,.3); text-transform: uppercase;
}
.ax-card-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 28px 28px;
  background: linear-gradient(to top, rgba(10,10,10,.9) 0%, rgba(10,10,10,.5) 55%, transparent 100%);
  z-index: 2;
}
.ax-card-name {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 200; color: #F0EEE9;
  letter-spacing: .03em; line-height: 1;
}
.ax-card-name em { color: #FF5300; font-style: normal; }
.ax-card-sub {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .12em;
  color: rgba(240,238,233,.4); text-transform: uppercase;
  margin-top: 6px; opacity: 0; transform: translateY(6px);
  transition: opacity .35s, transform .35s cubic-bezier(.16,1,.3,1);
}
.ax-card:hover .ax-card-sub { opacity: 1; transform: translateY(0); }
.ax-card-accent {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: #FF5300;
  transition: width .5s cubic-bezier(.16,1,.3,1); z-index: 3;
}
.ax-card:hover .ax-card-accent { width: 35%; }

/* Грид карточек */
.ax-grid-lounge { padding: 0 4px 4px; }
.ax-card-lounge { aspect-ratio: 21/9; }
.ax-grid-medium {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 0 4px 4px;
}
.ax-card-medium { aspect-ratio: 4/3; }
.ax-grid-small {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; padding: 0 4px 4px;
}
.ax-card-small { aspect-ratio: 1/1; }

/* ── Слайдер До/После · День/Ночь ── */
.ax-slider-section { padding: 0 4px 4px; }
.ax-slider-wrap {
  position: relative; width: 100%; overflow: hidden;
  cursor: ew-resize; user-select: none; aspect-ratio: 16/9;
}
.ax-sl-back { position: absolute; inset: 0; }
.ax-sl-back img, .ax-sl-front img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ax-sl-front { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ax-sl-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px; background: #F0EEE9; z-index: 10; cursor: ew-resize;
}
.ax-sl-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #F0EEE9;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
  transition: background .2s;
}
.ax-slider-wrap.dragging .ax-sl-btn { background: #FF5300; }
.ax-sl-btn svg { width: 14px; height: 14px; fill: #0A0A0A; flex-shrink: 0; }
.ax-sl-label-left, .ax-sl-label-right {
  position: absolute; top: 20px; z-index: 9;
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 14px; backdrop-filter: blur(4px); pointer-events: none;
}
.ax-sl-label-left {
  left: 20px; background: rgba(10,10,10,.6);
  color: rgba(240,238,233,.65);
  border: 1px solid rgba(240,238,233,.15);
}
.ax-sl-label-right { right: 20px; background: #FF5300; color: #0A0A0A; }
.ax-sl-hint {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .18em;
  color: rgba(240,238,233,.4); text-transform: uppercase;
  z-index: 8; pointer-events: none;
  animation: hintFade 2.8s ease 1s both;
}

/* ── Адаптив портфолио ── */
@media (max-width: 1024px) {
  .ax-proj-wrap     { padding: 60px 36px 24px; }
  .ax-section-label { padding: 20px 36px 12px; }
  .ax-grid-small    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ax-proj-header   { flex-direction: column; gap: 20px; align-items: flex-start; }
  .ax-proj-meta     { align-items: flex-start; }
  .ax-proj-wrap     { padding: 104px 20px 20px; }
  .ax-grid-medium   { grid-template-columns: 1fr; }
  .ax-grid-small    { grid-template-columns: 1fr 1fr; }
  .ax-card-lounge   { aspect-ratio: 4/3; }
  .ax-section-label { padding: 16px 20px 10px; }
  .ax-zones         { gap: 6px; }
}
@media (max-width: 480px) {
  .ax-proj-wrap   { padding: 36px 16px 16px; }
  .ax-grid-small  { grid-template-columns: 1fr; }
  .ax-slider-wrap { aspect-ratio: 4/3; }
}

/* ══════════════════════════════════════
   БЛОГ · FD301 Потоки Тильды
   ══════════════════════════════════════ */

.t-feed,
.t-feed__container-outer { background: #0A0A0A !important; }
.t-feed__container {
  gap: 3px !important;
  padding: 3px !important;
  margin-top: 0 !important;
}
.t-feed__title-wrapper { display: none !important; }
.t-feed__item {
  background: #111111 !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  transition: background .3s !important;
}
.t-feed__item:hover { background: #161616 !important; }
.t-feed__item-cover,
.t-feed__item-img-wrapper { overflow: hidden !important; }
.t-feed__item-cover img,
.t-feed__item-img-wrapper img,
.t-feed__item img {
  display: block !important;
  width: 100% !important;
  object-fit: cover !important;
  filter: brightness(.85) saturate(.9) !important;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .5s !important;
}
.t-feed__item:hover .t-feed__item-cover img,
.t-feed__item:hover .t-feed__item-img-wrapper img,
.t-feed__item:hover img {
  transform: scale(1.04) !important;
  filter: brightness(.98) saturate(1) !important;
}
.t-feed__item-content,
.t-feed__item-body,
.t-feed__item-textwrapper {
  display: block !important;
  visibility: visible !important;
  padding: 24px 28px !important;
  background: #111111 !important;
}
.t-feed__item-category,
.t-feed__item-tag,
.t-feed__item-rubric,
[class*="feed__item-rubric"],
[class*="feed__item-category"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: rgba(240,238,233,.35) !important;
  border: 1px solid rgba(240,238,233,.12) !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 5px 12px !important;
  margin-bottom: 12px !important;
}
.t-feed__item-title,
.t-feed__item-title *,
[class*="feed__item-title"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  color: #F0EEE9 !important;
  letter-spacing: .01em !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}
.t-feed__item-descr,
.t-feed__item-text,
.t-feed__item-descrtext,
[class*="feed__item-descr"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
  font-weight: 300 !important;
  color: rgba(240,238,233,.42) !important;
  margin-bottom: 16px !important;
}
.t-feed__item-date,
[class*="feed__item-date"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: #FF5300 !important;
  margin-top: 16px !important;
}
.t-feed__item-link,
.t-feed__readmore,
[class*="feed__readmore"] {
  display: inline-block !important;
  visibility: visible !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(240,238,233,.35) !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin-top: 12px !important;
  transition: color .2s !important;
}
.t-feed__item-link:hover,
.t-feed__readmore:hover { color: #FF5300 !important; }
.t-feed__pagination-btn {
  font-family: 'DM Mono', monospace !important;
  background: none !important;
  border: 1px solid rgba(240,238,233,.15) !important;
  color: rgba(240,238,233,.5) !important;
  font-size: 10px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  transition: all .2s !important;
}
.t-feed__pagination-btn:hover {
  border-color: #FF5300 !important;
  color: #FF5300 !important;
}

/* ══════════════════════════════════════════════
   ГЛОБАЛЬНЫЕ ПРАВКИ
   Типографика · Сетки · Адаптив · Медуза
   ══════════════════════════════════════════════ */

/* ── 1. ТИПОГРАФИКА ── */
.ax-nav ul a,
.ax-nav-links a          { font-size: 13px !important; letter-spacing: .13em !important; }
.ax-footer .ax-f-name    { font-size: 14px !important; }
.ax-footer .ax-f-copy    { font-size: 11px !important; }
.ax-footer .ax-f-icon    { width: 42px !important; height: 42px !important; }
.ax-footer .ax-f-icon svg{ width: 18px !important; height: 18px !important; }
.ax-social-link          { font-size: 13px !important; }
.ax-sec-label,
.ax-section-label        { font-size: 11px !important; }
.ax-proj-tag             { font-size: 11px !important; }
.ax-proj-scope           { font-size: 12px !important; }
.ax-proj-addr            { font-size: 11px !important; }
.ax-zone-tag             { font-size: 11px !important; padding: 7px 16px !important; }
.ax-hc-num,
.ax-hc-type              { font-size: 11px !important; }
.ax-card__cat,
.ax-card__year,
.ax-card__scope          { font-size: 11px !important; }
.ax-card-zone            { font-size: 10px !important; }
.ax-card-num             { font-size: 10px !important; }
.ax-card-sub             { font-size: 11px !important; }
.ax-sl-label-left,
.ax-sl-label-right,
.ax-sl-hint              { font-size: 11px !important; }
.ax-cf-label             { font-size: 11px !important; }
.ax-cf-input,
.ax-cf-select,
.ax-cf-textarea          { font-size: 13px !important; }
.ax-info-label           { font-size: 11px !important; }
.ax-p,
.ax-descr-body           { font-size: 13px !important; line-height: 1.9 !important; }

/* ── 2. СЕТКИ — 1 колонка на мобайле ── */
@media (max-width: 768px) {
  .ax-h-grid,
  .ax-about,
  .ax-cont-body,
  .ax-grid-medium,
  .ax-grid-small,
  .ax-row-1,
  .ax-row-2,
  .ax-grid-ba,
  .ax-grid-dn            { grid-template-columns: 1fr !important; }
  .t-col,
  .t-cell                { width: 100% !important; float: none !important; }
  .t-row                 { display: block !important; }
  .ax-cf-row             { grid-template-columns: 1fr !important; }
  .ax-cf-submit,
  .ax-btn,
  .ax-cta-btn,
  .t-submit,
  .t-btn,
  button[type="submit"]  { width: 100% !important; text-align: center !important; box-sizing: border-box !important; }
  .ax-input,
  .ax-subscribe,
  .ax-bs-form            { width: 100% !important; }
  .ax-subscribe          { flex-direction: column !important; }
  .ax-bs-form            { flex-direction: column !important; }
  .ax-clients-row        { flex-wrap: wrap !important; }
  .ax-client             { flex: 0 0 50% !important; }
  .ax-cta-messengers     { flex-direction: column !important; width: 100% !important; }
  .ax-cta-msg            { justify-content: center !important; }
  .ax-slider-wrap        { aspect-ratio: 4/3 !important; }
  .ax-footer             { padding: 24px 20px !important; flex-direction: column !important;
                           align-items: flex-start !important; gap: 20px !important; }
  .ax-nav                { padding: 20px 20px !important; }
  .ax-nav ul             { gap: 24px !important; }
  .t-feed__container     { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .ax-client             { flex: 0 0 100% !important; }
  .ax-f-socials          { flex-wrap: wrap !important; gap: 8px !important; }
  .ax-cf-submit,
  .ax-btn,
  .ax-cta-btn,
  .t-submit,
  .t-btn,
  button[type="submit"]  { width: 100% !important; }
}

/* ── 3. МЕДУЗА — тач-устройства ── */
@media (hover: none) and (pointer: coarse) {
  #axJelly               { opacity: 0.5 !important; transition: opacity .3s !important; }
}

/* ── ПРИНУДИТЕЛЬНЫЙ ЦВЕТ КНОПКИ (перебивает Tilda #allrecords) ── */
#allrecords .cta-btn,
#allrecords a.cta-btn,
#allrecords .ax-cta-btn,
#allrecords a.ax-cta-btn {
  color: #FFFFFF !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  -webkit-font-smoothing: antialiased !important;
}
#allrecords .cta-btn:hover,
#allrecords a.cta-btn:hover {
  color: #FFFFFF !important;
}