:root {
  --bg-color: #080808;
  --card-bg: #111111;
  --card-border: #1e1e1e;
  --text-main: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent-orange: #ff4d00;
  --font-family: 'Geologica', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
	 scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ff4d00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>') 0 0, auto;
}

a:hover, li:hover, span:hover, button:hover {  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>') 0 0, auto;
	transition: 1s;
}

/* --- Выделение текста --- */
::selection {
  background-color: #ff4d00;
  color: #ffffff;
}

::-moz-selection {
  background-color: #ff4d00;
  color: #ffffff;
}

/* --- Кастомный скроллбар (Chrome, Safari, Edge, Opera) --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: #ff4d00;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e04400;
}

/* --- Скроллбар для Firefox --- */
* {
  scrollbar-width: thin;
  scrollbar-color: #ff4d00 #080808;
}


/* --- Header --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 80px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-orange);
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--text-main);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--accent-orange);
  border-radius: 50%;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 28px;
  border-radius: 30px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- Case Hero --- */
.case-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  padding: 20px 80px 20px 80px;
  align-items: center;
	background: linear-gradient(360deg, rgba(255, 77, 0, 0.08) 0%, rgba(0, 0, 0, 1) 50%)
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 30px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--text-main);
}

.category-tag {
  color: var(--accent-orange);
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.case-title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 25px;
}

.case-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.btn-orange {
  background-color: var(--accent-orange);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.btn-orange:hover {
  opacity: 0.9;
}

.btn-text-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.btn-text-link:hover {
  color: var(--text-main);
}

/* Mockups */
.case-hero-mockups {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup img {
  width: 100%;
  max-width: 640px;
  height: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.mockup {
  position: relative;
  bottom: -20px;
}

/* --- Task Section --- */
.task-section {
  padding: 60px 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.task-title h3 {
  color: var(--accent-orange);
  font-size: 16px;
  font-weight: 500;
}

.task-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 35px;
}

.task-features {
  display: flex;
  gap: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 13px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
}

/* --- Timeline Section --- */
.process-section {
  padding: 80px 80px;
}

.section-tag {
  color: var(--accent-orange);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 40px;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.timeline-step h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-step p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* --- Result Section --- */
.result-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding: 80px 80px;
}

.result-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.metrics-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.metric-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.metric-lbl {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.result-screens {
display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.result-screens {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Большая картинка слева */
.result-screens .screen-card:first-child {
    grid-row: 1 / 3;
	transform: scale(1.04)
}

/* Все изображения */
.result-screens .screen-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}



/* --- Mobile Version Section --- */
.mobile-section {
  padding: 80px 80px;
}

.mobile-header {
  margin-bottom: 30px;
}

.mobile-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: -30px;
}

.mobile-screens-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.mobile-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
	margin: 0 auto
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 0 80px 80px 80px;
}

.cta-banner-content {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 60px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: radial-gradient(circle at 90% 50%, rgba(255, 85, 0, 0.1) 0%, transparent 50%);
}

.cta-text h2 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 10px;
}

.orange-text {
  color: var(--accent-orange);
}

.cta-text p {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Footer --- */
.footer {
      display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: row;
    align-content: center;
    flex-wrap: nowrap;
}

footer span {
	margin: 8px 16px
}

/*modal*/
.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.35s ease;
}

.modal:target{
    opacity:1;
    visibility:visible;
}

.modal-content{
    width:min(420px,90%);
    background:#161616;
    border-radius:8px;
    padding:42px;
    position:relative;

    transform:translateY(40px);
    transition:.35s ease;
}

.modal:target .modal-content{
    transform:translateY(0);
}

.modal-content span a {
	text-decoration: none;
	margin: 4px 16px;
	display: inline-grid;
	justify-content: center;
	align-items: center
}

.close{
    position:absolute;
    right:20px;
    top:20px;
	color: #fff;
    text-decoration:none;
    font-size:28px;
}

/* ==========================================
   MOBILE & TABLET ADAPTIVE (Case Page)
   ========================================== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .header,
  .case-hero,
  .task-section,
  .process-section,
  .result-section,
  .mobile-section,
  .cta-banner,
  .footer {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Hero */
  .case-hero {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .case-hero-mockups {
    margin-top: 20px;
	margin-bottom: -20px
  }

  /* Процесс (Таймлайн) */
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }

  .process-timeline::before {
    display: none; /* Скрываем сквозную линию на планшетах */
  }

  /* Результаты */
  .result-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Экраны мобильных устройств */
  .mobile-screens-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
  .header {
    padding: 20px;
  }

  .nav {
    display: none; /* Скрываем десктопное меню */
  }

  .case-hero,
  .task-section,
  .process-section,
  .result-section,
  .mobile-section,
  .cta-banner {
    padding: 40px 20px;
  }

  /* Заголовки */
  .case-title {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .btn-orange,
  .btn-text-link {
    text-align: center;
  }

  /* Мокапы в hero */
  .mockup-laptop img {
    max-width: 100%;
	  padding-bottom: -20px
  }


  /* Задача */
  .task-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .task-features {
    flex-direction: column;
    gap: 15px;
  }

  /* Процесс */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Скриншоты результатов */
    .result-screens {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .result-screens .screen-card:first-child {
        grid-row: auto;
    }

    .result-screens .screen-card img {
        height: auto;
    }

  /* Мобильная версия (сетка 5 экранов) */
.mobile-screens-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -ms-overflow-style: none;

    padding-bottom: 5px;
}

.mobile-screens-grid::-webkit-scrollbar {
    display: none;
}

.mobile-card {
    flex: 0 0 67%;
    scroll-snap-align: start;
}

.mobile-card img {
    width: 50vw;
    display: block;
    border-radius: 18px;
}	
	
  /* Баннер CTA */
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 40px 20px;
  }

  .cta-text h2 {
    font-size: 26px;
  }

