/*------------------------------------------------------------------
  dbart.ru — Design Enhancements 2026
  Палитра: чёрно-белая, приглушённые серые
------------------------------------------------------------------*/

:root {
  --ink:        #111111;        /* почти чёрный */
  --ink-soft:   #444444;        /* тёмно-серый */
  --muted:      #888888;        /* средний серый */
  --rule:       rgba(0,0,0,0.07); /* линии-разделители */
  --bg-warm:    #f7f6f4;        /* тёплый офф-вайт для карточек */
  --bg-mid:     #eeece9;        /* чуть темнее */
}


/* ================================================================
   1. CUSTOM CURSOR
   Чёрная точка + отстающее кольцо. Без цвета.
================================================================ */

* { cursor: none !important; }

#cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
}

#cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease,
              background 0.3s ease,
              border-color 0.3s ease;
  opacity: 0.5;
}

#cursor-dot.is-hover  { width: 0; height: 0; opacity: 0; }
#cursor-ring.is-hover { width: 52px; height: 52px; opacity: 1; border-color: var(--ink); }

#cursor-ring.is-portfolio {
  width: 60px; height: 60px;
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--ink);
  opacity: 0.8;
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none !important; }
  * { cursor: auto !important; }
}


/* ================================================================
   2. HERO GLOW
   Очень тонкий холодный блик — не цветной, а световой
================================================================ */

#hero {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  top: 40%;
  left: 25%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: glow-drift 22s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes glow-drift {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.9; }
  20%  { transform: translate(30%, -40%) scale(1.15);  opacity: 0.45;}
  40%  { transform: translate(-10%, 30%) scale(0.9);   opacity: 0.8; }
  60%  { transform: translate(50%, 10%) scale(1.1);    opacity: 0.4; }
  80%  { transform: translate(10%, -25%) scale(1.05);  opacity: 0.75;}
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.9; }
}

/* Второй пульсирующий блик — смещён, другая фаза */
.hero-shimmer {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  top: 55%;
  left: 70%;
  transform: translate(-50%, -50%);
  filter: blur(50px);
  animation: shimmer-pulse 6s ease-in-out infinite,
             shimmer-drift 18s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes shimmer-pulse {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.85; }
}

@keyframes shimmer-drift {
  0%   { transform: translate(-50%, -50%) scale(1);   }
  33%  { transform: translate(-20%, -65%) scale(1.1); }
  66%  { transform: translate(-70%, -35%) scale(0.9); }
  100% { transform: translate(-50%, -50%) scale(1);   }
}

/* Grain поверх hero */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  animation: grain-shift 0.35s steps(1) infinite;
}

@keyframes grain-shift {
  0%  { transform: translate(0,   0); }
  25% { transform: translate(-2%, -1%); }
  50% { transform: translate(1%,  2%); }
  75% { transform: translate(2%, -2%); }
}


/* ================================================================
   3. HERO TEXT — WORD-BY-WORD REVEAL
================================================================ */

.hero-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
  /* межсловный интервал — через margin, без пробельных span */
  margin-right: 0.28em;
}
.hero-word-wrap:last-child { margin-right: 0; }

.hero-word {
  display: inline-block;
  transform: translateY(70%);
  opacity: 0;
  filter: blur(5px);
  transition: transform 1s     cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.75s  cubic-bezier(0.4, 0, 0.2, 1),
              filter    0.75s  cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-word.is-visible {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* Точка после заголовка — такой же цвет, без акцента */
.hero-title::after {
  content: '.';
  color: inherit;
  opacity: 0.3;
}


/* ================================================================
   4. MARQUEE STRIP
================================================================ */

.marquee-strip {
  position: relative;
  z-index: 10;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  border-top:    1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #fff;
  -webkit-user-select: none;
          user-select: none;
}

.marquee-strip:hover .marquee-inner { animation-play-state: paused; }

.marquee-inner {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-inner span {
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c0bdb8;
  padding: 0 26px;
  transition: color 0.2s ease;
}

.marquee-inner span:hover { color: var(--ink); }

.marquee-inner .sep {
  color: #c0bdb8 !important;
  padding: 0 2px;
  font-size: 10px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ================================================================
   5. PORTFOLIO — SCROLL REVEAL + УЛУЧШЕННЫЙ HOVER
================================================================ */

.item-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity  0.75s ease          calc(var(--stagger, 0) * 60ms),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--stagger, 0) * 60ms);
}

.item-hidden.item-visible {
  opacity: 1;
  transform: translateY(0);
}

.item-content { overflow: hidden !important; }

.item-image {
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  will-change: transform;
}
.item-content:hover .item-image { transform: scale(1.05) !important; }

.item-overlay {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: translateY(10px);
  opacity: 0;
}
.item-content:hover .item-overlay {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* 3D-тилт */
.item {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s ease !important;
}
.item.tilt-reset {
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1) !important;
}


/* ================================================================
   6. НАВИГАЦИЯ И ИНТЕРАКТИВНЫЕ ЭЛЕМЕНТЫ — чёрно-белые ховеры
================================================================ */

nav a {
  transition: opacity 0.2s ease !important;
}
nav a:hover {
  opacity: 1 !important;
  color: var(--ink) !important;
}

/* Кнопка «Смотреть» на оверлее */
.item-case {
  transition: border-color 0.25s ease, color 0.25s ease !important;
}
.item-content:hover .item-case {
  color: #fff !important;
  border-color: rgba(255,255,255,0.6) !important;
}

/* CTA-ссылки */
a.link:hover span,
#project-nav .project-next:hover {
  opacity: 0.55 !important;
}

.socials-text a:hover { opacity: 0.5 !important; }

/* Scroll-to-top */
.scrolltotop:hover .arrow-top      { border-color: var(--ink) !important; }
.scrolltotop:hover .arrow-top-line { background: var(--ink) !important; }

/* Прогресс-кольцо — тёмное */
.progress-circle path { stroke: var(--ink) !important; }

/* Анимация перехода страниц */
.page-overlay .animate-box-bottom { background: var(--ink) !important; }

/* Focus */
a:focus-visible, button:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ================================================================
   7. СТРАНИЦА ЦЕН — ЧЁРНО-БЕЛАЯ ВЕРСИЯ
================================================================ */

.post-content-full .container {
  max-width: 960px;
  padding: 0 24px;
}

.price-intro {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}
.price-intro strong { color: var(--ink-soft); font-weight: 500; }

/* Секция */
.price-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.price-section:last-of-type { border-bottom: none; margin-bottom: 0; }

/* Заголовок секции */
.price-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c0bdb8;
  margin: 0 0 32px;
}
.price-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── КАРТОЧКИ САЙТОВ ── */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.price-card {
  background: var(--bg-warm);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Тонкая нижняя черта — тёмная */
.price-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.4s ease;
}
.price-card:hover { background: var(--ink); transform: translateY(-3px); }
.price-card:hover::before { width: 100%; }

.price-card-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  font-family: 'Poppins', 'Roboto', sans-serif;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.price-card:hover .price-card-name { color: #fff; }

.price-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  transition: color 0.3s ease;
}
.price-card:hover .price-card-desc { color: rgba(255,255,255,0.45); }

.price-card-meta {
  font-size: 10px;
  color: #c0bdb8;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}
.price-card:hover .price-card-meta { color: rgba(255,255,255,0.3); }

.price-card-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Poppins', 'Roboto', sans-serif;
  margin-top: 4px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.price-card:hover .price-card-price { color: #fff; }

/* «По запросу» */
.price-card.price-card--special {
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.1);
}
.price-card.price-card--special:hover {
  background: var(--ink);
  border-color: transparent;
}
.price-card.price-card--special .price-card-price {
  color: #b0ada8;
  font-size: 15px;
  font-weight: 400;
}
.price-card.price-card--special:hover .price-card-price { color: rgba(255,255,255,0.55); }

/* ── СТРОКИ ── */
.price-rows { display: flex; flex-direction: column; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 24px;
  transition: background 0.15s ease;
}
.price-row:first-child { border-top: 1px solid rgba(0,0,0,0.05); }
.price-row:hover { background: rgba(0,0,0,0.02); }

.price-row-left { flex: 1; }

.price-row-name {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}
.price-row-sub {
  font-size: 11px;
  color: #c0bdb8;
  margin-top: 3px;
  line-height: 1.5;
}
.price-row-sub a { color: #c0bdb8; text-decoration: underline; }
.price-row-sub a:hover { color: var(--ink); }

.price-row-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  font-family: 'Poppins', 'Roboto', sans-serif;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

/* ── БЛОК ОПЛАТЫ ── */
.price-payment {
  background: var(--bg-warm);
  padding: 36px 32px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.price-payment::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: var(--ink);
}
.price-payment-title {
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c0bdb8;
  margin-bottom: 16px;
}
.price-payment p {
  font-size: 13px;
  color: #777;
  line-height: 1.8;
  margin: 0 0 8px;
}
.price-payment-methods {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.price-payment-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border: 1px solid rgba(0,0,0,0.14);
  color: var(--ink-soft);
  border-radius: 100px;
}


/* ================================================================
   8. МЕЛКИЕ ДЕТАЛИ
================================================================ */

html { scroll-behavior: smooth; }

#logo a { transition: opacity 0.25s ease; }
#logo a:hover { opacity: 0.5; }

.hero-subtitle { opacity: 0.55; letter-spacing: 0.03em; word-spacing: normal; }

/* Адаптив */
@media (max-width: 900px) {
  .price-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .price-cards { grid-template-columns: 1fr; }
  .price-row { flex-direction: column; gap: 4px; }
  .price-row-price { color: var(--ink-soft); }
  .price-payment { padding: 24px 20px; }
}
