/* =======================
   ROOT VARIABLES
   ======================= */
:root {
  --powr1-black: #060606;
  --powr1-dark: #717171;
  
  --powr1-white: #f5f5f5;
  --powr1-light: #9a9eb1;

  
  --powr1-red: #fb001f;
  --powr1-blue: #26d0e3;
  --powr1-green: #47e200;
}

/* =======================
   BASE STYLES
   ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
  font-size: 15px;
}

body {
  font-family: 'Geologica';
  height: 92vh;
  -webkit-overflow-scrolling: touch;
  font-weight: 300;
  
  max-width: 1000px;
  margin: 0 auto;
  color: var(--powr1-white);
  background: var(--powr1-black);
  
  text-align: center;
}






/* =======================
   LAYOUT STYLES
   ======================= */
.flexsec {
  
  display: flex;
  flex-direction: column;
  
  border-bottom: 0px solid var(--powr1-light);
  padding: 4rem 2rem;
}


.flexcol {
  display: flex;
  flex-direction: column;
  flex:0 0 100%;
}

.flexcol-2
  {flex:0 0 50%;}


.flexbox {
  display: flex;
  flex-direction: column;
  
  
  min-height:30px;
  height:auto;
  justify-content: space-between;
  align-items: stretch;
  padding: 0px 14px;
  border-radius: 25px;
  background: var(--powr1-dark);
  color: var(--powr1-light);
}





/* =======================
   BUTTON STYLES
   ======================= */
.button {
  /* Сброс дефолтных стилей кнопки */
  border: none;
  background: none;
  padding: 8px;
  font: inherit; 
  color: var(--powr1-light);
  cursor: pointer;
  user-select: none;

  /* Визуальные стили */
  display: flex;
  flex: 1 1 0;
  max-height: 50px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 25px;
  transition: background-color 0.1s ease;
  -webkit-tap-highlight-color: transparent;

  /* Чтобы фон мог меняться в анимации */
  background-color: transparent;
}

.button:active {
  animation: buttonPress 0.3s ease;
}

@keyframes buttonPress {
  0% {}
  50% {
    background-color: var(--powr1-red);
    color: var(--powr1-white);
  }
  100% {}
}




/* =======================
   TYPOGRAPHY STYLES
   ======================= */

header {
  text-align: center;
  overflow: hidden;
  z-index: 1; 
}



footer {
  text-align: center;
  font-size: 1.5 rem;
 
}




/* =======================
   TYPOGRAPHY STYLES
   ======================= */
   
h1 {

  font-size: 5rem;
  font-weight: 900;
  color: var(--powr1-red);
  text-transform: none;
}

h2 {

  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

p {
  
  margin-bottom: 1rem;
  line-height: 1.7;
  letter-spacing: 1;
}

a {
font-size: 0.85rem;
  text-decoration: none;
   color: var(--powr1-red);
}

.meta {
  font-size: 0.85rem;
 color: grey;
  margin-top: 0.5rem; 
  font-weight: 900;
}

.fas {
  font-size: 1rem;
  flex-shrink: 0;
  padding: 10px;
  color: var(--powr1-blue);
}

/* =======================
   IMAGES STYLES
   ======================= */
   
   
.img-sec {
    display:none;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: transparent;
  overflow: hidden;
  position: relative;
}

.image-wrapper.loading {
  background-color: white;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =======================
   RESPONSIVE STYLES
   ======================= */

@media (min-width: 768px) {

html {
  font-size: 25px;
}
  .flexsec {
    flex-direction: row;
    max-width: 800px;
  }

  .button {
    min-height: auto;
    padding: 8px;
  }

.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

}



/* =======================
   CAROUSEL
   ======================= */
   
/* carousel.css */
body.carousel-active {
  overflow: hidden;
  height: 100vh;
  transition: transform 0.3s ease;
  will-change: transform;
}

.carousel-section {
  opacity: 0.2;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.carousel-section.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-section.near {
  opacity: 0.3;
  transform: scale(0.9);
}


/* =======================
   TOGGLE CONTROLS
   ======================= */
   
   
   
   
   
   
   /* =======================
   TEMPORARY STYLES
   ======================= *
   
   
   
.category-name {
  
  /* или используйте CSS-переменную: */
  color: var(--powr1-blue);
}
   