/* Переменные */
:root {
  --index: calc(1vw + 1vh); 
  --text-color: #808080;
  --title-color: #f8f9fa;
  --gray-5: #adb5bd;
  --gray-6: #868e96;
  --gray-dark: #495057;
  --accent-indigo: #3f4a7d;
  --dark: #2b2b2b;
}

@font-face {
	font-family: SourceSansPro_c;
	src: url(../fonts/Source\ Sans\ Pro/SourceSansPro-Regular.ttf);
	font-weight: 300;
}

@font-face {
	font-family: Daray_c;
	src: url(../fonts/Daray/Daray.ttf);
}

/* 16 основной щрифт, 26 подзаголовок, 40 заголовок, 64  */
body {
  font-family: SourceSansPro_c, sans-serif;
  font-size: calc(var(--index) * .8);
  background-color: #f5f5f5;
}

h1, h2, h3, h4 {
  font-weight: 400;
  /* letter-spacing: 0.2rem; */
  letter-spacing: 0.2em;
}

h2 {
  color: var(--dark);
  font-size: calc(var(--index) * 1);
  font-weight: bold;
}

p {
  font-size: calc(var(--index) * 1);
}

/* Главная Start */

/* HEADER */
.header-title h1,
.header-memo h1, h3{
  color: var(--title-color);
  font-family: Oswald_c;
  font-family: Daray_c;
}

.header-thumb h1,
.header-title h1 {
  font-size: calc(var(--index) * 1.8);
  font-weight: bold;
  letter-spacing: 0.2em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-thumb h3 {
  font-size: calc(var(--index) * 1.0);
}


/* Кнопки меню*/
.lang-btn {
  background-color: var(--text-color); 
  color: #fff;
  padding: 6px 12px;
  border: none; 
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease; 
  text-transform: uppercase; 
}

/* Эффект при наведении */
.lang-btn:hover {
  background-color: #909090; 
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

/* Эффект при нажатии */
.lang-btn:active {
  background-color: #868e96;
  transform: translateY(1px); 
}

/*Логотип меню */
.navicon {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  /*width: calc(var(--index) * 1.8);*/
  /*width: calc(var(--index) * 10);*/
  /*max-height: 2.25em;*/
  max-height: 1.5em;
  align-items: center;
}

/*Соцсети иконки меню*/
.navbar__contacts {
  display: flex;
  width: 25vw;
  align-items: center;
  justify-content: center;
}

.navbar__contacts-links {
  display: flex;
  align-items: center;
}

.navbar__contacts-links a {
  margin-left: calc(var(--index) * .8);;
}

.navbar__contacts-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-6);

  transition: 
    transform 0.6s cubic-bezier(.25,.8,.25,1);
}

.navbar__contacts-links a:hover {
  transform: scale(1.18);
}

.navbar__contacts-links img,
.footer__contacts-links img {
  width: calc(var(--index) * 1.3);
  margin-right: calc(var(--index) * 0.6);
}

.circle.inline {
  display: flex;
  align-items: center;
  justify-content: end;
}

.circle i {
  font-size: calc(var(--index) * 2.4);
  color: var(--gray-6);
}

.circle:hover .icon {
  color: var(--accent-indigo);
  border-color: var(--accent-indigo);
}


.header-one{
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.header-memo{
  position: absolute;
  width: 100%;
  padding-top: 150px !important;
  z-index: 25;
}
@media (max-width: 768px) {
  .header-memo{
    padding-top: 80px !important;
  }
}

.swiper-container{
  /*aspect-ratio: 16 / 9;*/
  width: auto;
  
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* центрирование */
  z-index: 20;
}

@media (max-width: 780px) {
  .swiper-container{width: 120%;}
}
@media (max-width: 650px) {
  .swiper-container{width: 140%;}
}
@media (max-width: 560px) {
  .swiper-container{width: 160%;}
}
@media (max-width: 490px) {
  .swiper-container{width: 180%;}
}

/*Фраза манифест*/
.author-manifesto {
  margin: calc(var(--index) * 2) 0 calc(var(--index) * 2);
}

.author-manifesto__inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.author-manifesto__line {
  width: 18px;
  height: 1px;
  background-color: var(--accent-indigo);
  opacity: 0.5;
  margin-top: 0.6em;
  flex-shrink: 0;
}

.author-manifesto__text {
  font-size: calc(var(--index) * 0.9);
  color: var(--gray-6);
}

.author-manifesto__line {
  transition: width 0.6s ease, opacity 0.6s ease;
}

.author-manifesto:hover .author-manifesto__line {
  width: 26px;
  opacity: 0.8;
}

/*Новые работы */
.portfolio__title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio__title h2{
  font-size: calc(var(--index) * 0.8);
}

.portfolio__title p,
.video-title p {
  font-size: calc(var(--index) * 0.8);
  color:var(--gray-6);
  margin-bottom: calc(var(--index) * .4);
}

/* Масонри GRid */
.container__masonry {
  margin: 20px auto;
  columns: 3;
  column-gap: 20px;
}

.gallery__masonry {
  columns: 4;
}

.container__masonry .box {
  width: 100%;
  margin-bottom: 10px;
  /* break-inside: avoid; */
}

.container__masonry .box img {
  min-width: 100%;
  /* border-radius: 15px; */
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  
transition:
    transform 1.5s cubic-bezier(.25,.8,.25,1),
    filter 1s ease;
}

.container__masonry .box img:hover {
  transform: scale(1.04);
  filter: brightness(1.07) contrast(1.04) saturate(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1200px)
{
  .container__masonry
  {
    width: calc(100% - 40px);
  }
}

@media (max-width: 768px)
{
  .container__masonry
  {
    columns: 2;
  }
}

@media (max-width: 480px)
{
  .container__masonry
  {
    columns: 1;
  }
}

@media (hover: hover) {
  .container__masonry .box img:hover {
    transform: scale(1.04);
    filter: brightness(1.07) contrast(1.04) saturate(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }
}

/* Кнопка */
.portfolio__new-nav {
display: flex;
justify-content: center;
margin-bottom: calc(var(--index) * 3);
}

.btn-outline,
#contact input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 28px;
  border: 1px solid var(--gray-6);
  border-radius: 999px;
  background: transparent;
  color: var(--dark);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

/* hover эффект */
#contact input[type='submit']:hover,
.btn-outline:hover {
  background-color: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #fff;
  transform: scale(1.05);
}

/* Подвал */
footer {
  width: 100%;
  background: var(--gray-dark);
  padding-top: calc(var(--index) * 3);
  padding-bottom: calc(var(--index) * 3);
}

.footer__content {
  max-width: 1200px; /* при необходимости */
  margin: 0 auto;
  padding: 20px 20px;
  display: grid;
  gap: 30px;
}

/* Меню подвала*/
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  width: 100%;
}

/* Пункты меню */
.footer-menu li {
  margin: 0;
  padding: 0;
}

/* Ссылки */
.footer-menu a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.2rem;
  color: var(--title-color);
  font-size: 14px;
  white-space: nowrap;
}

.footer-menu a:hover {
  opacity: 0.7;
}

/* Главная END */

/* Gallery Start */

.header-banner {
    background: url(../images/banner/watercolour_water.jpg) no-repeat;
    height: calc(var(--index) * 5.2);;
    min-height: 220px;
    padding-top: 150px;
  }

.header-title h1 {
  color: var(--title-color);
  opacity: 0.9; 
}

/* Табы */
.portfolio__tabs {
  display: flex;
  gap: 32px;
  margin-bottom: calc(var(--index) * 1.2);
  align-items: center;
}

.portfolio__tab {
  position: relative;
  font-size: 16px;
  color: var(--dark);
  text-decoration: none;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

.portfolio__tab:hover {
  color: var(--accent-indigo);
}

.portfolio__tab.active {
  color: var(--accent-indigo);
  font-weight: 500;
}

.portfolio__tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-indigo);
}

@media (max-width: 768px) {
  .portfolio__tabs {
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* Фильтры */
.portfolio__filters {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.filter-link {
  display: inline-block;
  text-decoration: none; 
  padding: 6px 18px;
  font-size: 14px;
  color: var(--dark);
  border: 1px solid var(--gray-5);
  border-radius: 999px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

/* hover эффект */
.filter-link:hover {
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
}

/* активная ссылка */
.filter-link.active {
  background: var(--accent-indigo);
  color: #fff;
  border-color: var(--accent-indigo);
}
/* Gallery End */

/* Single-gallery Start */
.container-image__details {
  display: flex;
  justify-content: space-between;
  /*align-items: flex-start;*/
  gap: calc(var(--index) * 1.2);
  margin-bottom: calc(var(--index) * 1.2);
}
.container-image img {
  /*min-width: 100%;*/
  border-radius: 8px;
}

.container-image__details div {
  margin-top: 20px;
  width: 50%;
}

.container-image__details img {
  min-width: 100%;
}

.container-image__details div:first-child {
  /* width: 100%; */
  /*ustify-content: start;*/
}

.container-image__details > div:last-child {
  width: 50%;
  display: flex;
  flex-direction: end;
  align-items: flex-end;
  gap: 20px;
}

.container-image__details > div:last-child img {
  width: 60%;
  border-radius: 8px;
}
.gslide-image img{
  border-radius: 8px;
}

/*Эффект паспарту Start*/
.container-image img {
  display: block;
  /*padding: 6px;*/ /* WIB FIX DELETE */
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08);

  transition:
    box-shadow 0.6s ease,
    transform 0.6s ease;
}

.container-image__main img {
  /*padding: 8px;*/ /* WIB FIX DELETE */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.12);

}

.container-image__details img {
  /*padding: 5px;*/ /* WIB FIX DELETE */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 6px 16px rgba(0, 0, 0, 0.07);
}

/* Анимация при наведении */
/*
.container-image img:hover {
  transform: translateY(-2px);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.08),
    0 20px 44px rgba(0, 0, 0, 0.14);
}
*/

.container-image__main .anim-hover img:hover{
  transform: scale(1.05);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.08),
    0 20px 44px rgba(0, 0, 0, 0.14);
}


/*.height-viewport{
  width: 100%;
  }
.height-viewport img {
    height: calc(100vh - 400px);
    width: auto;
    min-width: auto;
    margin:0 auto;
  }*/

.container-image__main{
  display: flex;
  /* width: 100%; */
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}


.cont-img-prev,
.cont-img-next{
  /*background-color: #e9ecef;*/
  /*height: 40px; width: 40px;*/
  height: calc(var(--index) * 1.5); width: calc(var(--index) * 1.5);
  display: block;
  margin: calc(var(--index) * 1.2);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.25;
}

.cont-img-prev:hover{
  transform: translateX(-5px) scale(1.2);
  opacity: 1;
}
.cont-img-next:hover{
  transform: translateX(+5px) scale(1.2);
  opacity: 1;
}
.cont-img-prev{
  background-image: url(/view/images/elements/gallery-arrow-prev.png);
}
.cont-img-next{
  background-image: url(/view/images/elements/gallery-arrow-next.png);
}


/*Эффект паспарту End*/


.container-image__details h2 {
  margin-bottom: 8px;
}

.portfolio-single__material {
  margin-bottom: 4px;
  opacity: 0.85;
}

.portfolio-single__size {
  margin-top: 0;
  font-size: 0.9em;
  opacity: 0.5;
}

.portfolio-single__description {
  margin-top: calc(var(--index) * 2.8);
  margin-bottom: calc(var(--index) * 2.8);
  max-width: 680px; 
  line-height: 1.7;
  padding-left: 24px;
  border-left: 2px solid rgba(63, 74, 125, 0.25); 
}

.portfolio-single__description p {
  letter-spacing: 0.02em;
  line-height: 0.95em;
}




/* WIB */
.portfolio-desc__text-values {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-desc__text-values .status-collection {
  width: 100%;
  font-style: italic;
  color: #777;
  font-size: 0.9em;
}


/* Single-gallery End */

/*About Start*/
#about {
  padding-bottom: 4rem;
}

#about img {
  border-radius: 8px;
  padding-bottom: 0;
}

.about__portrait {
  width: 100%;
}

.about__text-block {
  display: flex;
  gap: 60px;
}

@media (max-width: 768px) {
  .about__text-block {
    gap: 20px;
    display: block;
  }

  .about__portrait {
  margin-bottom: calc(var(--index) * 2.0);
}
}

.about__text {
  width: 100%;
}

.about__text-block p {
  margin-bottom: 1.6em;
  line-height: 1.7;
  font-size: calc(var(--index) * .8);
}

.about__accent {
  margin-top: calc(var(--index) * 2.0);
  padding-left: 24px;
  border-left: 2px solid rgba(63, 74, 125, 0.25); 
  font-weight: 500;
  color: var(--dark);
}

.about__process {
  margin-top: calc(var(--index) * .8);
  display: flex;
  justify-content: left;
}

.about__process img {
  max-width: 520px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/*About End*/

/* Contacts Start */
#contact {
  margin-bottom: calc(var(--index) * 4);
}

.contact-block {
  max-width: 520px;
}

.contact-title {
  font-size: calc(var(--index) * 1);
  margin-bottom: 8px;
}

.contact-note {
  font-size: calc(var(--index) * 0.7);
  color: var(--gray-6);
  margin-bottom: calc(var(--index) * 1.2);
}

#contact .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: none;
}

#contact .form-control:hover {
 border-color: var(--gray-5);
}

#contact .form-control:focus {
  outline: none;
  border-color: var(--accent-indigo);
}

/* Contacts End */

/* Video Start */
#video {
  margin: calc(var(--index) * 4) 0;
}

.video-title {
  margin-bottom: calc(var(--index) * 1.5);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.video-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  cursor: pointer;

  transition:
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-item:hover {
  /* transform: scale(1.03); */
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}


.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;

  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;

  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.9s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.6s ease;
}

.video-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0)
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

.video-item:hover .video-caption {
  opacity: 1;
  transform: translateY(0);
  color: #ffffff;
}

.video-item:hover video {
  animation: play-video 0s forwards;
}

@media (max-width: 768px) {
  .video-grid {
    gap: 16px;
  }

  .video-caption {
    font-size: 11px;
  }
}

.video-item:hover video,
.video-item:hover img {
  filter: brightness(1.03) contrast(1.04);
  transition: filter 1s ease;
}