: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;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  padding-bottom: 80px;
  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, .process-list 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);
}

/* --- Hero --- */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 80px 80px 80px;
  position: relative;
}

.category-tag {
  color: var(--accent-orange);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
}

.main-title {
  font-size: 64px;
  font-weight: 400;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.accent-o {
  color: var(--accent-orange);
  font-weight: 600;
}

.description {
  color: var(--text-muted);
  max-width: 380px;
  font-size: 15px;
  line-height: 1.6;
}

/* --- Arc Navigation --- */
.process-arc {
  position: relative;
  width: 300px;
  height: 300px;
}

.arc-line {
    position: absolute;
    top: 0px;
    right: 52px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid #ffffff0a;
    background: linear-gradient(136deg, #ff4d00 10%, #e2e8f000 16%) border-box;
    -webkit-mask: linear-gradient(#fff, #fff) padding-box, linear-gradient(#ffffff00, #ffffff00);
    mask: linear-gradient(#ffffff00, #ffffff00) padding-box, linear-gradient(#ffffff, #ffffff00);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

}

.arc-orange-dot {
    position: absolute;
    top: 42px;
    left: -24px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px 2px var(--accent-orange);
}

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
  padding-left: 80px;
}

.process-list li {
  color: var(--text-dim);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: color 0.3s;
}

.process-list li .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  display: inline-block;
}

.process-list li.active {
  color: var(--accent-orange);
  font-weight: 500;
}

.process-list li.active .dot {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
}

/* --- Projects & Timeline --- */
.projects {
    padding: 0 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 96px;
    position: relative;
    z-index: 9999;
    margin-top: -128px;
}

.timeline-line {
  position: absolute;
  left: 110px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 40px;
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  gap: 96px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.card-left {
  display: flex;
  flex-direction: column;
}

.card-num {
  color: var(--accent-orange);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
}

.card-tag {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 15px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.card-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.card-link:hover {
  color: var(--accent-orange);
}

/* Mockups Container */
.card-center {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
	justify-content: center
}


.device-mockup img {
  display: block;
  max-width: 640px;
  height: auto;
  position: relative;
  z-index: 9999;
  margin: -96px 0px -40px;
}

/* Card Right */
.card-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: right;
}

.year {
  color: var(--text-dim);
  font-size: 16px;
}

.result-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: auto;
  margin-bottom: 15px;
  text-align: left;
}

.arrow-btn {
  color: var(--accent-orange);
  text-decoration: none;
  font-size: 18px;
  align-self: flex-end;
  transition: transform 0.3s;
}

.arrow-btn:hover {
  transform: translateX(5px);
}

/* --- Footer CTA --- */
.footer-cta {
  text-align: center;
  padding: 100px 20px 40px 20px;
}

.footer-cta h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 25px;
}

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

/*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;
	z-index: 9999999999
}

.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 (Portfolio List)
   ========================================== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .header,
  .hero,
  .projects {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero {
    flex-direction: column;
    gap: 40px;
  }

  .process-arc {
    width: 100%;
    height: auto;
  }

  .arc-line, .arc-orange-dot {
    display: none; /* Скрываем дугу на планшетах для чистоты */
  }

  .process-list {
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px 25px;
  }

  /* Карточки проектов */
  .project-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .timeline-line {
    display: none;
  }

  .card-right {
    text-align: left;
    flex-direction: row;
    align-items: center;
  }

  .card-right .result-text {
    margin-bottom: 0;
  }
	
	.device-mockup img {
		max-width: 320px;
		margin: 0
	}
}

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

  .main-title {
    font-size: 40px;
  }

  .project-card {
    padding: 24px;
  }

  .card-title {
    font-size: 22px;
  }

  .card-center {
    min-height: 220px;
  }

	.device-mockup img {
		max-width: 320px;
		margin: 0
	}

  .card-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .arrow-btn {
    align-self: flex-start;
  }
}