
@font-face{
  font-family: 'Oswald';
  src: url('fonts/Oswald/Oswald-VariableFont_wght.ttf') format('truetype');
}
@font-face{
  font-family: 'customfont';
  src: url('fonts/Source_Code_Pro/SourceCodePro-VariableFont_wght.ttf') format('truetype');
}

html { scroll-behavior: smooth; }
body { margin:0; font-family: Oswald; background:#010101; color:#e4e4e4; 
    
}
a { color:#e4e4e4; text-decoration:none; transition:.3s; }
a:hover { color:#ff6b6b; }
/* HEADER */
.site-name {
  font-family:'Oswald';
  color: #e4e4e4;
  font-size: 2.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap; 
  font-weight: 300;
  padding-left: 40px;
  margin-top: 20px;
}

.site-header {
  position: fixed; top:0; left:0; width:100%; z-index:999;
  transition: background 0.3s ease;
  height: 100px;
  padding-bottom: 30px;
}
.site-header.scrolled { background: rgba(0,0,0,0.8); }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 0 15px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px; 
  margin-right: 20px;
}


.nav-links { list-style:none; display:flex; gap:30px; margin:20; padding:0; text-transform: uppercase;}

.nav-links .portfolio-dropdown {
  position: relative;
}

.nav-links .portfolio-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e4e4e4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links .portfolio-toggle .arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-links .portfolio-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.nav-links .portfolio-dropdown:hover .portfolio-toggle {
  color: #ff6b6b;
}

.nav-links .portfolio-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-radius: 4px;
  z-index: 1000;
}

.nav-links .portfolio-dropdown:hover .portfolio-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links .portfolio-menu li {
  margin: 0;
}

.nav-links .portfolio-menu a {
  display: block;
  padding: 8px 20px;
  color: #e4e4e4;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-links .portfolio-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color:#fff; font-weight:600;
}

.portfolio-dropdown .arrow {
  transition: transform 0.3s;
}
.portfolio-dropdown .arrow.rotated {
  transform: rotate(180deg);
}
.portfolio-dropdown .portfolio-menu {
 opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.portfolio-dropdown:hover .portfolio-menu {
  display: block; /* добавляем */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* BURGER */
.burger { display:none; flex-direction:column; gap:4px; width:25px; background:none; border:none; cursor:pointer; margin-top: 15px}
.burger span { display:block; width:150%; height:3px; background:#e4e4e4; }


.title {
  text-align: center;
  font-weight: 300;
}

.hero {
  margin-top: 100px;
  display: flex;
  justify-content: center; 
}

.hero-inner-container {
  width: 1100px;
}


.image-wrapper {
  position: relative;
  width: 100%;
  height: fit-content; /* высота как у фото */
}

.avatar {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}



.hero-text .name {
   font-size: 25px;
  font-weight: 300;
  line-height: 1.4rem;
  text-transform: uppercase;
  text-shadow: 0 0 10pxx rgba(0, 0, 0, 0.5) ;

}

.hero-text .portfolio {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3rem;
  text-transform: uppercase;
  
}
.desk{
  padding: 100px;
}




.carousel-wrapper {
  color:#5e5e5e;
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
}

.carousel-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
}

.service {
  font-size: 20px;
  flex-shrink: 0;
  font-weight: 300;
}

/* анимация движения */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); 
  }
}
.tagline {

  font-weight: 300;
  text-align: center;
  line-height: 1.4;
  color: #e6e6e6; 
  font-size: 0.9rem;
}

.title{
  font-size: 25px;
}
.tagline{
  font-size: 20px;
}
.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}


.magic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 14px 26px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;

  color: #111;
  background: #b7b7b7;          
  border: 0.8px solid transparent;
  overflow: hidden;

  transition: color 0.4s ease;
}


.magic-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;           
  transform: translateX(-100%); 
  transition: transform 0.5s ease;
  z-index: 0;
}

/* текст поверх шторки */
.magic-btn span, .magic-btn {
  position: relative;
  z-index: 1;
}

/* при наведении */
.magic-btn:hover::before {
  transform: translateX(0);   /* шторка закрывает фон полностью */
}

.magic-btn:hover {
  color: #fff;               
  border-color: transparent;
}
/* PORTFOLIO GRID */

.portfolio{
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 25px;
}

.card{
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 0.1px solid rgba(255,255,255,0.2);
}

.card img{
  width:100% ;
  aspect-ratio: 1/1.5 ;
  object-fit: cover;
  transition: none; 
}

.overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-wrapper{
  text-align: center;
  width: 80%;
  height: 40%;
  padding-top: 29px;
  transition: border 0.3s ease;
}

.card:hover .text-wrapper{
  background: rgba(0,0,0,0.3); /* полупрозрачный фон для читаемости */
}

.card-title{
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  color: #fff;
}

.card-desc{
  font-size: 1rem;
  margin: 0 0 15px 0;
  color: #fff;
}
/* КАРУСЕЛЬ ДЛЯ КАРТОЧЕК */
.card-image-container {
  width: 100%;
  aspect-ratio: 1/1.5;
  position: relative;
  overflow: hidden;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.card-image-container img.active {
  opacity: 1;
}



/* FILMOGRAPHY */
.filmography {
  padding: 20px 20px 40px;
  border-top: 0.1px solid rgba(255,255,255,0.2);
  border-bottom: 0.1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.filmography-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.image-container {
  position: relative;
  width: 100%;
  display: block;
}

.filmography-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  margin: 0;
  color: #fff;
  text-align: center;
  width: 90%;
  z-index: 2;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projects-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1300px;
}

.project-column h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.film-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.film-list li {
  margin-bottom: 8px;
  padding: 4px 0;
  text-align: center;
  line-height: 1.4;
}



.phone {
  padding-top:30px; text-align: center; font-size: 1.5rem;

}
/* FOOTER */
.site-footer{ padding:30px; display:flex; justify-content:center; gap:20px; }
.icon{color:white; text-decoration:none; font-size:1.5rem; transition:.3s; }
.icon:hover{filter:brightness(40%);}

/* Сетка квадратных изображений */
.grim-gallery{
  max-width:1300px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
  padding:20px;
}
.grim-gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 0.1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: transform 0.3s;
}

.grim-gallery img:hover {
  transform: scale(1.05);
}

.gallery,.price{
  margin-top: 140px;
}
.gallery h1, .price h1 {
  text-align: center !important;
  margin: 60px 0 20px 0 !important;
  font-size: 2.5rem !important;
  font-weight: 300 !important;
  width: 100% !important;
  font:'Oswald';
  padding-top:20px !important;
}

.gallery-menu{
  width: 100%;
}

.gallery-links,.price-links{
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  list-style:none; 
  padding:0; 
  display:flex;
  gap:20px; 
  margin:0;
}



.gallery-links a,.price-links a {
  color: #fff;
  text-decoration: none;
  padding: 8px 25px;
  border:0.1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  opacity: 0.8;
  position: relative;
  overflow: hidden;
}



.gallery-links a.active, .price-links a.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  
}

/* LIGHTBOX */
#lightbox-overlay {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

#lightbox-overlay .close,
#lightbox-overlay .prev,
#lightbox-overlay .next {
  position: absolute;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
}

#lightbox-overlay .close { top: 20px; right: 30px; }
#lightbox-overlay .prev { top: 50%; left: 30px; transform: translateY(-50%); }
#lightbox-overlay .next { top: 50%; right: 30px; transform: translateY(-50%); }
/* --- ПРАЙС --- */

.price-section {
  margin-top: 40px;
  text-align: center;
  width: 100%;
}

.price-list {
  display: flex;
  flex-direction: column;
  align-items: center;

  
  margin: 0 auto;
}

.price-item {
 
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.25); /* полупрозрачный белый */
  padding: 20px;
  background: rgba(255, 255, 255, 0.05); /* лёгкая дымка */
  text-align: left;
 
  
  max-width: 600px;
 
}

.price-item img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.price-header {
  display: flex;
  justify-content: space-between; /* название слева, цена справа */
  align-items: center;
  
}

.price-title {
  font-weight: 600;
  font-size: 20px;
}

.price-cost {
  font-weight: 500;
}
.price-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  flex-grow: 1;
}

.price-small-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 8px;
  line-height: 1.3;
}
.price-title,
.price-cost {
  white-space: nowrap;
}
.price-cost {
  font-size: 18px;
  font-weight: 500;
  color:#ff6b6b;
  
}

.price-desc {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  line-height: 1.3;
  opacity: 0.8;
}

.view-works {
  display: inline-flex;           
  align-items: center;            
  justify-content: center;        
  font-size: 15px;
  color: white;                   
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-works .arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.view-works:hover .arrow {
  transform: translateX(5px);    /* двигаем стрелку при ховере */
}


/*  СЛАЙДЕР ОБУЧЕНИЯ */
.training-section {
  margin-top: 50px;
  padding: 0 20px;
}

.training-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  
}

.training-slider {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.05); /* светлая дымка */
  border: 0.5px solid rgba(255,255,255,0.2);
  padding: 20px;
 
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.training-track {
  display: flex;
   overflow: hidden;
  transition: transform 0.4s ease-in-out;
  max-width: 100%;
}

.training-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  margin: 0 auto;
  min-width: 0;
  background: rgba(255,255,255,0.1); /* светлая карточка */
  color: #000; /* текст тёмный */
  border: 0.5px solid rgba(255,255,255,0.1);
  
  
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
  
}

.training-slide:nth-child(2) {
  background: rgba(255,255,255,0.1);
}

.course-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  
}

.training-slide h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  
}

.course-price {
  font-size: 20px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 20px;
  
}

.training-slide ul {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.training-slide ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.training-item:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffeb3b;
}

.course-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.course-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  text-align: center;
  margin: 0;
}

.slider-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-buttons button {
 padding: 8px 14px;
  border: 0.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 0;
}
.slider-buttons button:hover {
  background: rgba(255,255,255,0.25);
}





@media (max-width: 1200px) {
  .grim-gallery {
    grid-template-columns: repeat(3, 1fr);

  }
}
@media (max-width: 1000px) {



}
@media (max-width: 900px) {
  .grim-gallery {grid-template-columns: repeat(2, 1fr);}
  .hero-inner-container { width: 100%; }
  .desk { padding: 40px 20px; }
  .gallery h1 { font-size: 2rem; }
   .hero-text .name {font-size: 1rem;font-weight: 300; line-height: 1.1rem;}
  .hero-text .portfolio {font-size: 35px;font-weight: 400; line-height: 1rem;}
  .service{font-size: 15px;}
  .text-wrapper{ width: 70%; height: 30%;}
  .card-title{font-size: 1.2rem;margin: 0 0 5px 0;}
  .card-desc{font-size: 0.9rem;margin: 0 0 10px 0;}
   .title-overlay {
    font-size: 1.5em;
    width: 95%;
  }
  
  .projects-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
}
@media(max-width:768px){

  .portfolio-dropdown.open .portfolio-menu {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,255,255,0.05);
    margin-top: 10px;
    padding-left: 20px;
    
  }
  
  .portfolio-dropdown .portfolio-menu li {
    margin: 10px 0;
  }
  .burger{display:flex;}
  .nav-links{
    position:absolute; top:60px; right:0; width:220px;
    background:rgba(0,0,0,.95); flex-direction:column; gap:20px; padding:25px;
    transform:translateX(100%); transition:.3s;
  }
  .nav-links.active{ transform:translateX(0);
    z-index: 1001 !important; 
    background: rgba(0,0,0,0.95) !important; 
  } 
  .gallery {
    margin-top: 100px;
  }

  .gallery h1{font-size: 1.5rem !important;font-weight: 200 !important; padding-top:40px !important;margin-bottom:30px!important;}
  

  .projects-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .filmography-image {
    width: 90%;
  }
  .grim-gallery {
    padding: 0;
  }
}

@media (max-width: 600px) {
  
  .training-slide {
    padding: 20px;
    
  }
  .training-track{
      gap:0;
  }
  
  .training-slide h3 {
    font-size: 18px;
  }
  
  .course-header {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content:center;
  }
  
  .course-price {
    align-self: flex-start;
  }
  .price-item {
     max-width:100%;
    
    padding: 15px;
  }
  
  .price-item img {
    width: 110px;
    height: 110px;
  }
  
  .price-text {
    text-align: center;
  }
  .price-header{
    flex-direction: column;
  }
}
@media (max-width: 668px) {
  .hero-text .name {font-size: 0.9rem;font-weight: 300; line-height: 1rem;}
  .hero-text .portfolio {font-size: 25px;font-weight: 400; line-height: 0.9rem;}
  .grim-gallery {
   grid-template-columns: repeat(1, 1fr);
  }
  .gallery-links {
    gap: 10px;
  }
   .text-wrapper{  height: 35%;}
  .gallery-links a {
    padding: 6px 15px;
    font-size: 13px;
  }
    .site-name {
    font-size: 1.6rem;
    padding-left: 5px;
    margin-top: 10px;
}
  .title{
  font-size: 17px;
}
  .tagline{
  font-size: 12px;
}
 .title-overlay {
    font-size: 1.2em;
  }
  
  .projects-columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .filmography {
    padding: 15px 15px 30px;
  }

}
@media (max-width: 430px) {
  
  .gallery-links, .price-links {
    gap: 5px;
  }
  .gallery-links a, .price-links a {
    padding: 3px 10px;
    font-size: 12px;
  }
  .hero-text .name {font-size: 0.8rem;font-weight: 200;line-height: 0.7rem;}
  .hero-text .portfolio {font-size: 20px;font-weight: 300;letter-spacing: 0.5px;line-height: 0.6rem;}
  .price-title{
      font-size:18px;
      font-weight:500;
  }
  .price-cost{
      font-size:18px;
      font-weight:500;
  }
  .view-works{
      font-size:12px;
  }
  .price-small-desc {
      font-size:9px;
  }
}
@media (max-width: 330px) {
  
  .gallery-links, .price-links {
    gap: 3px;
  }
  .gallery-links a, .price-links a {
    padding: 1px 8px;
    font-size: 11px;
  }
  
}
