/* ===== Страница работы из портфолио ===== */

.work-page {
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
}

/* --- Header --- */
.work-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a0a0abb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.247);
}

.work-header__inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 4px 24px 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-header__logo img {
  opacity: 0.2;
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.work-header__blog {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  font-weight: 300;
  transition: color 0.2s;
  margin-left: auto;
  margin-right: 32px;
  margin-bottom: 5px;
}

.work-header__blog:hover {
  color: #fff;
}

.work-header__close {
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.work-header__close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* --- Title bar --- */
.work-title-bar {
  max-width: 1170px;
  margin: 0 auto;
  padding: 60px 20px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.work-title {
  font-family: 'Manrope', sans-serif;
  /* font-family: 'Inter', sans-serif; */
  font-size: 42px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
}

.work-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.work-nav__btn {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s;
}

.work-nav__btn:hover {
  color: #fff;
}

.work-nav__counter {
  min-width: 40px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* --- Mockup --- */
.work-content {
  padding: 10px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.work-mockup {
  max-width: 1032px;
  width: 100%;
  /* border-radius: 12px; */
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  background: #111;
}

.work-mockup__img {
  margin-bottom: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.work-like {
  margin-bottom: 60px;
  width: 44px;
  height: 44px;
  background-color: #5e0094;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 54px;
}

.work-like img {
  margin-top: 3px;
  /* margin-left: 1px; */
  display: block;
  width: 16px;
  height: 15px;
}

/* --- Contact section --- */
.work-contact {
  background: linear-gradient(180deg, #3d1a7a 0%, #2a1055 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
}

.work-contact__inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 2;
}

 .work-contact__title {
  /* font-family: 'Manrope', sans-serif; */
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 36px;
}

.work-contact__form .form-group {
  position: relative;
  margin-bottom: 28px;
}

.work-contact__form input,
.work-contact__form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 12px 0 10px;
  outline: none;
  transition: border-color 0.2s;
}

.work-contact__form textarea {
  min-height: 80px;
  resize: vertical;
}

.work-contact__form input:focus,
.work-contact__form textarea:focus {
  border-bottom-color: #fff;
}

.work-contact__form label {
  position: absolute;
  left: 0;
  top: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.work-contact__form input:focus + label,
.work-contact__form input:not(:placeholder-shown) + label,
.work-contact__form textarea:focus + label,
.work-contact__form textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.work-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 10px;
}

.work-contact__left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--message textarea {
  min-height: 160px;
}

.work-contact__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.work-contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  max-width: 340px;
  cursor: pointer;
}

.work-contact__consent input {
  margin-top: 3px;
  accent-color: #c4f06a;
  flex-shrink: 0;
}

.work-contact__consent a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

.work-contact__submit {
  background: #c4f06a;
  color: #1a1a1a;
  border: none;
  border-radius: 30px;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.work-contact__submit:hover {
  background: #b5e45c;
  transform: translateY(-1px);
}

/* Phones visual */
.work-contact__phones {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-contact__phones-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  /* crop to show mainly the phones area */
  object-position: right center;
}

/* Bottom bar */
.work-contact__bottom {
  margin-top: 60px;
  padding: 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.work-contact__logo img {
  height: 26px;
  filter: brightness(0) invert(1);
}

.work-contact__info {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.work-contact__wa {
  color: #25d366;
  display: flex;
}

.work-contact__phone,
.work-contact__email {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.work-contact__phone:hover,
.work-contact__email:hover {
  color: #fff;
}

.work-contact__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .work-contact__inner {
    grid-template-columns: 1fr;
  }
  .work-contact__phones {
    order: -1;
    min-height: 280px;
  }
  .work-contact__grid {
    grid-template-columns: 1fr;
  }
  .form-group--message textarea {
    min-height: 100px;
  }
  .work-title {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .work-header__inner {
    padding: 14px 16px;
  }

  .work-title-bar {
    padding: 20px 16px 12px;
    box-sizing: border-box;
  }

  .work-content {
    padding: 0 10px 40px;
  }

 /* .work-mockup {
    border-radius: 8px;
  } */

  .work-contact {
    padding-top: 50px;
  }

  .work-contact__title {
    font-size: 28px;
  }

  .work-contact__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .work-contact__submit {
    width: 100%;
  }

  .work-contact__bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .work-contact__info {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Единая шапка: «Блог» вместо крестика, по краю контейнера 1170px */
.work-header__inner {
  max-width: 1170px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.work-header__blog {
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 5px;
}


/* Extra responsive */
@media (max-width: 768px) {
  .work-header__inner {
    padding: 8px 16px 0;
  }

  .work-title-bar {
    padding: 36px 16px 16px;
    box-sizing: border-box;
  }

  .work-title {
    font-size: 28px;
    text-align: center;
  }

  .work-content {
    padding: 8px 12px 40px;
  }

  .work-contact__inner {
    padding: 0 16px;
  }

  .work-contact__bottom {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .work-title {
    font-size: 22px;
  }

  .work-header__logo img {
    height: 30px;
  }

  .work-like {
    width: 40px;
    height: 40px;
    margin-top: 36px;
    margin-bottom: 40px;
  }
}
