:root {
  --color-bg: #0d0d0d;
  --color-gray-soft: #1f1f1f;
  --color-text: #e6e6e6;
  --color-text-muted: #888;
  --color-accent: #acacac;
  --color-accent-light: #ffa458;
  --container-max: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  animation: bgPulse 40s ease-in-out infinite;
  background:
          radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px) repeat,
          radial-gradient(ellipse at center, #1A1A1A 0%, #0F0F0F 60%, #0D0D0D 100%) no-repeat center/cover;
  background-color: #0D0D0D;
}

@media (min-width: 800px) {
  body {
    background:
            radial-gradient(circle, rgba(255,255,255,0.05) 2px, transparent 2px) repeat,
            radial-gradient(ellipse at center, #1A1A1A 0%, #0F0F0F 60%, #0D0D0D 100%) no-repeat center/cover;
  }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-main {
  flex: 1;
}

.site-footer {
  flex-shrink: 0;
}

.top-header {
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: bold;
}

.icon-logo {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5rem;
  fill: var(--color-accent-light);
}

.site-hero {
  text-align: center;
  padding: 0 0 3rem;
}

.gradient-text {
  background: linear-gradient(60deg, var(--color-text-muted) 0%, #ffffff 50%, var(--color-text-muted) 65%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  transition: background-position 4s ease;
  animation: gradient-shift 8s ease infinite;
}

.gradient-text:hover {
  animation-duration: 1.5s;
}

.gradient-subtle {
  background: linear-gradient(90deg, var(--color-text-muted) 0%, var(--color-text) 50%, var(--color-text-muted) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.site-hero .stat-item {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.site-hero .stat-number {
  color: var(--color-text);
  font-weight: 600;
  margin-right: 0.25rem;
}

.site-hero h1 {
  font-size: 2.75rem;
  margin-bottom: -1rem;
}

.site-hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #27a7e7 0%, #009eeb 100%);
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1;
  border: none;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #27a7e7 0%, #00a8ff 100%);
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0,0,0,0.18);
}

.btn-telegram:active {
  transform: scale(0.97);
}

.btn-telegram:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,168,255,0.6);
}

.icon-telegram {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  color: #fff;
}

.features-gallery {
  margin: -3rem auto 2rem;
}

.feature-gallery {
  width: 100%;
  height: 100%;
  position: relative;
}

.feature-gallery .slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--color-gray-soft);
  text-align: center;
}

.feature-gallery .slide.active {
  display: flex;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.site-footer {
  background: var(--color-gray-soft);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  padding: 2rem 0 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  margin: 0 0.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-credit .heart {
  margin-left: 1rem;
}

.footer-meta {
  font-size: 0.7rem;
  color: #666;
}

.image-wrapper {
  position: relative;
  max-width: 360px;
  margin: 2rem auto 1rem;
}

.image-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-slide {
  display: none;
  text-align: center;
}

.gallery-slide.active {
  display: block;
}

.gallery-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.chat-overlay-title {
  text-align: center;
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.gallery-slide .chat-overlay-title {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  background: none;
  padding: 0;
  border-radius: 0;
  text-shadow: none;
}

.control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.control-btn:hover {
  transform: translateY(-50%) scale(1.15);
  background: rgba(255,255,255,0.12);
  border-color: var(--color-accent);
}

.control-btn:active {
  transform: translateY(-50%) scale(1.05);
}

.control-prev {
  left: -32px;
}

.control-next {
  right: -32px;
}

.icon-cross,
.icon-heart {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: color 0.3s ease;
}

.control-btn:hover .icon-cross,
.control-btn:hover .icon-heart {
  color: #f3344f;
}

.gallery-instruction {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.privacy-policy {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #1e1e1e;
  color: #e2e2e2;
  padding: 2rem 1rem;
  border-radius: 8px;
  max-width: 1200px;
  margin: 3rem auto;
}

.privacy-policy h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.privacy-policy h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.privacy-policy p,
.privacy-policy li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.privacy-policy nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 1rem;
  flex-direction: column;
}

.privacy-policy nav a {
  font-size: 0.95rem;
  color: #80bfff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.privacy-policy nav a:hover {
  border-color: #80bfff;
}

.privacy-policy ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.privacy-policy a {
  color: #80bfff;
  text-decoration: none;
  border-bottom: 1px solid rgba(128,191,255,0.3);
  transition: border-color 0.2s;
}

.privacy-policy a:hover {
  border-color: rgba(128,191,255,0.6);
}

@media (max-width: 600px) {
  .privacy-policy {
    margin: 1.5rem 1rem;
    padding: 1.5rem 1rem;
  }
  .privacy-policy h1 {
    font-size: 1.75rem;
  }
  .privacy-policy h2 {
    font-size: 1.1rem;
  }
}

.site-hero .small-stats {
  display: inline-flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  align-items: baseline;
}

.stats-wrapper {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 0 1rem;
}

.stats-block {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.05);
  border-radius: 50px;
  backdrop-filter: blur(6px);
  margin-bottom: 1.5rem;
  border: 0.5px solid rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
  .stats-minipanel {
    display: none !important;
  }

  .control-btn {
    width: 40px;
    height: 40px;
    border-width: 1px;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(4px);
  }

  .control-prev {
    left: 8px;    
  }
  .control-next {
    right: 8px;
  }

  .control-btn:hover {
    transform: translateY(-50%) scale(1.1);
  }

  .icon-cross,
  .icon-heart {
    width: 18px;
    height: 18px;
  }
}

.icon-stats {
  display: inline-block;
  vertical-align: middle;
  width: 1.2em;
  height: 1.2em;
  color: var(--color-accent);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  white-space: nowrap;
}

.stat-number {
  margin-right: 0.25rem;
  font-weight: 600;
  color: var(--color-accent);
}

.stats-minipanel {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

.stats-icon {
  width: 1.4em;
  height: 1.4em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.stats-items {
  display: flex;
  flex-wrap: wrap;       
  gap: 0.5rem;            
  justify-content: center;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat .num {
  font-weight: 600;
  color: var(--color-text);
}

.stat small {
  color: var(--color-text-muted);
}

@media (max-width: 400px) {
  .stats-minipanel {
    overflow-x: auto;
  }
}


.faq-section {
  margin: 4rem auto;
  max-width: 700px;
  padding: 0 1rem;
}

.faq-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.faq-item details {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.faq-item details:hover {
  transform: translateY(-1px);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background: var(--color-gray-soft);
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;  
}

.faq-item .icon-chevron {
  width: 1.25em;
  height: 1.25em;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item details[open] .icon-chevron {
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0.75rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeIn 0.3s ease forwards;
  opacity: 0;
  transform: translateY(-5px);
}

.faq-item details[open] .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .faq-item summary {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .faq-item .faq-answer {
    padding: 0.75rem 1rem;
  }
}

.link-blue {
  color: #24A1DE;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-blue:visited {
  color: #24A1DE;
}

.link-blue:hover,
.link-blue:focus {
  color: #1b89c9;
  outline: none;
}

.link-blue-underline {
  color: #24A1DE;
  text-decoration: underline;
  text-decoration-color: #24A1DE;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-blue-underline:visited {
  color: #24A1DE;
  text-decoration-color: #24A1DE;
}

.link-blue-underline:hover,
.link-blue-underline:focus {
  color: #1b89c9;
  text-decoration-color: #1b89c9;
  outline: none;
}

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.error-page .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.error-page a {
  color: #24A1DE;
  text-decoration: underline;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 0;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #414141;
  transform: translateX(-50%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  width: 70%;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.timeline-item::before {
  display: none;
}

.timeline-content {
  position: relative;
  background: #212121;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.left .timeline-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: -0.75rem;
  width: 0.25rem;
  height: 100%;
  background: #3B82F6;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.timeline-item.right .timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -0.75rem;
  width: 0.25rem;
  height: 100%;
  background: #3B82F6 ;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.timeline-item.completed .timeline-content::before,
.timeline-item.completed .timeline-content::after {
  background: #10B981 !important;
}
.timeline-item.completed .timeline-content {
  background: #212121;
  opacity: 0.6;
}
.timeline-item.completed .timeline-content:hover {
  transform: none;
  box-shadow: none;
}

.timeline-item.pending .timeline-content::before,
.timeline-item.pending .timeline-content::after {
  background: #9CA3AF !important;
}
.timeline-item.pending .timeline-content {
  opacity: 0.8;
}

.timeline-item.left {
  left: -20%;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}
.timeline-item.branch {
  left: 50%;
  width: auto;
  transform: translateX(-50%);
  text-align: center;
}

.timeline-item.branch .timeline-content {
  padding: 0.75rem 1rem;
  background: #212121;
}

@media (max-width:600px) {
  .timeline-line {
    display: none;
  }

  .timeline-item {
    width: 100% !important;
    padding: 0.75rem 1rem;
    left: 0 !important;
    text-align: left !important;
  }

  .timeline-item.left .timeline-content::after,
  .timeline-item.right .timeline-content::before {
    left: -1rem;
    right: auto;  
    width: 0.25rem;
  }

  .timeline-content {
    margin-left: 1rem;
  }

  .timeline-item.branch {
    left: 0 !important;
    transform: none;
  }
  
  .error-page h1 {
    font-size: 2rem;
  }
  .error-page .lead {
    font-size: 1rem;
  }
}

