/* Доводка шаблона: слайдер и структура секций остаются, меняется подача.
   Вендорный templatemo-sleeky-pro.css не трогается — всё правится отсюда. */

:root {
  --dp-coral: #ff6b6b;
  --dp-ink: #111319;
  --dp-paper: #f6f3ee;
  --dp-serif: 'Fraunces', Georgia, serif;
  --dp-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --dp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body { font-family: var(--dp-sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--dp-coral); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--dp-coral); outline-offset: 3px;
}

/* ─── Иконки вместо эмодзи ─── */
.dp-ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-tab-icon { font-size: 34px; color: var(--dp-coral); line-height: 1; }
.service-content-icon { font-size: 40px; }
.tech-icon { font-size: 28px; }
.contact-icon { font-size: 26px; }
.social-link { font-size: 12px; font-weight: 600; letter-spacing: .04em; }

/* ─── Шапка ─── */
.header { border-bottom: 1px solid rgba(17, 19, 25, .06); }
.logo-text { font-family: var(--dp-serif); font-weight: 600; letter-spacing: -.01em; }
.nav-link { font-weight: 500; letter-spacing: .02em; }

/* ─── Герой: тёмная «выставочная стена» вместо кислотного градиента ─── */
.hero {
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(255, 107, 107, .16), transparent 70%),
    radial-gradient(50% 50% at 90% 100%, rgba(127, 255, 212, .10), transparent 70%),
    var(--dp-ink);
}
.text-overlay {
  background: linear-gradient(0deg, rgba(10, 11, 15, .82), rgba(10, 11, 15, .35));
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.slide-title { font-family: var(--dp-serif); font-weight: 600; font-size: 38px; letter-spacing: -.02em; text-shadow: none; }
.slide-description { max-width: 620px; opacity: .85; }

/* видоискатель: уголки кадра и счётчик */
.dp-vf { position: absolute; inset: 0; pointer-events: none; z-index: 105; }
.dp-vf i {
  position: absolute; width: 34px; height: 34px; border: 0 solid rgba(255, 255, 255, .85);
  transition: transform .6s var(--dp-ease);
}
.dp-vf i:nth-child(1) { left: 22px; top: 22px; border-width: 2px 0 0 2px; }
.dp-vf i:nth-child(2) { right: 22px; top: 22px; border-width: 2px 2px 0 0; }
.dp-vf i:nth-child(3) { left: 22px; bottom: 132px; border-width: 0 0 2px 2px; }
.dp-vf i:nth-child(4) { right: 22px; bottom: 132px; border-width: 0 2px 2px 0; }
.slider-container:hover .dp-vf i:nth-child(1) { transform: translate(-6px, -6px); }
.slider-container:hover .dp-vf i:nth-child(2) { transform: translate(6px, -6px); }
.slider-container:hover .dp-vf i:nth-child(3) { transform: translate(-6px, 6px); }
.slider-container:hover .dp-vf i:nth-child(4) { transform: translate(6px, 6px); }
.dp-count {
  position: absolute; left: 66px; top: 26px; color: #fff; font-family: var(--dp-serif);
  font-size: 15px; letter-spacing: .08em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.dp-count b { font-size: 26px; font-weight: 600; margin-right: 4px; }
.dp-count::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%;
  background: var(--dp-coral); animation: dpRec 1.6s ease-in-out infinite;
}
@keyframes dpRec { 50% { opacity: .25; } }

/* ─── Разделы ─── */
.section-title { font-family: var(--dp-serif); font-weight: 600; letter-spacing: -.02em; }
.section-header { position: relative; }
.section-header::after {
  content: ''; display: block; width: 56px; height: 2px; margin: 30px auto 0;
  background: linear-gradient(90deg, #FF6B6B, #7FFFD4); border-radius: 2px;
}
.section-subtitle { color: #6a6a72; }

.service-tab { border: 1px solid rgba(17, 19, 25, .06); }
.service-content h2, .timeline-title, .tech-title { font-family: var(--dp-serif); }
.service-content h2 { font-weight: 600; letter-spacing: -.02em; }

/* ─── Галерея: контактный лист ─── */
.gallery { background: var(--dp-paper); }
.sheet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; }
.frame { position: relative; background: #fff; padding: 10px 10px 0; box-shadow: 0 1px 2px rgba(17, 19, 25, .08), 0 18px 40px -22px rgba(17, 19, 25, .4);
  transition: transform .5s var(--dp-ease), box-shadow .5s; }
.frame:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 1px 2px rgba(17, 19, 25, .08), 0 34px 50px -26px rgba(17, 19, 25, .5); }
.frame button { display: block; width: 100%; padding: 0; border: 0; background: #ddd; overflow: hidden; cursor: zoom-in; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--dp-ease); }
.frame:hover img { transform: scale(1.06); }
.frame figcaption { display: flex; align-items: baseline; gap: 12px; padding: 14px 4px 16px; font-size: 14px; color: #55555d; }
.frame figcaption b { font-family: var(--dp-serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--dp-coral); }
.f1 { grid-column: span 4; } .f1 button { aspect-ratio: 16 / 9; }
.f2 { grid-column: span 2; } .f2 button { aspect-ratio: 4 / 5.05; }
.f3, .f4, .f5 { grid-column: span 2; } .f3 button, .f4 button, .f5 button { aspect-ratio: 4 / 3; }
.f1 { margin-top: 0; }
.f2::before { /* пометка «выбрано» восковым карандашом */
  content: ''; position: absolute; inset: -10px -8px auto auto; width: 74px; height: 46px;
  border: 2.5px solid #e5484d; border-radius: 50%; transform: rotate(-12deg); pointer-events: none; z-index: 2; opacity: .85;
}

/* лайтбокс */
.dp-lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(10, 11, 15, .94); padding: 30px; }
.dp-lb.open { display: flex; animation: dpFade .3s ease; }
@keyframes dpFade { from { opacity: 0; } }
.dp-lb img { max-width: min(94vw, 1300px); max-height: 82vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.dp-lb .cap { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #fff; font-family: var(--dp-serif); font-size: 22px; }
.dp-lb .cap small { display: block; font-family: var(--dp-sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #aab; margin-top: 4px; }
.dp-lb button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 22px; cursor: pointer; transition: .2s; }
.dp-lb button:hover { background: var(--dp-coral); border-color: var(--dp-coral); }
.dp-lb .x { right: 24px; top: 22px; } .dp-lb .pv { left: 24px; top: 50%; } .dp-lb .nx { right: 24px; top: 50%; }

/* ─── О нас ─── */
.stat-futuristic h4 { font-family: var(--dp-serif); font-weight: 600; letter-spacing: -.02em; }
.tech-card { transition: transform .45s var(--dp-ease), box-shadow .45s; }
.tech-card:hover { transform: translateY(-6px); }

/* ─── Контакты ─── */
.contact { background: var(--dp-paper); }
.form-note { margin-top: 16px; min-height: 1.4em; font-size: 15px; text-align: center; color: #1f7a55; }
.form-note.err { color: #c0392b; }
.form-group input.bad, .form-group textarea.bad { border-color: #c0392b; }

/* ─── Подвал ─── */
.footer-logo-text { font-family: var(--dp-serif); }

/* ─── Индикатор прокрутки и «наверх» ─── */
.dp-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #FF6B6B, #7FFFD4); z-index: 9999; pointer-events: none; }
.dp-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--dp-ink); color: #fff;
  font-size: 18px; cursor: pointer; z-index: 900; opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--dp-ease), background .25s; }
.dp-top.show { opacity: 1; transform: none; pointer-events: auto; }
.dp-top:hover { background: var(--dp-coral); }

@media (max-width: 900px) {
  .sheet { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .f1 { grid-column: 1 / -1; } .f2, .f3, .f4, .f5 { grid-column: span 1; } .f5 { grid-column: 1 / -1; }
  .f2 button, .f3 button, .f4 button { aspect-ratio: 1; }
  .f2::before { display: none; }
}
@media (max-width: 768px) {
  .slide-title { font-size: 22px; }
  .dp-vf i { width: 22px; height: 22px; }
  .dp-vf i:nth-child(1), .dp-vf i:nth-child(3) { left: 12px; }
  .dp-vf i:nth-child(2), .dp-vf i:nth-child(4) { right: 12px; }
  .dp-vf i:nth-child(1), .dp-vf i:nth-child(2) { top: 12px; }
  .dp-vf i:nth-child(3), .dp-vf i:nth-child(4) { bottom: 92px; }
  .dp-count { left: 44px; top: 14px; font-size: 13px; } .dp-count b { font-size: 20px; }
  .dp-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-count::before { animation: none; }
  * { transition-duration: .01ms !important; }
}
