@import './vars.css';

@media (min-width: 992px) {
  /* header */

  .header {
    padding: var(--base-spacing) 0;
    border: 1px solid var(--color-bg);
  }

  .nav {
    display: block;
    height: 64px;
  }

  .nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    list-style: none;
  }

  .nav-list--desktop {
    flex-direction: row;
  }

  .nav-list__item--desktop {
    padding: 0;
    border: none;
    width: auto;
  }

  .nav-list__link {
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
  }

  .nav-list__link.active {
    color: var(--color-blue);
  }

  .nav-list__link:not(.active):hover {
    border-bottom: 1px solid var(--color-blue);
  }

  .nav-list__item:not(:first-child) {
    margin: 0 0 0 var(--margin-48);
  }

  .controls--desktop {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0 0 0 10px;
    height: 64px;
  }

  .social {
    margin: 0 6px;
    padding: 0;
  }

  .social__link {
    font-size: 0;
  }

  .social__link svg {
    fill: var(--color-blue);
  }

  .social__link:hover svg {
    fill: var(--color-blue-hover);
  }

  .social__link:active svg {
    fill: var(--color-blue-active);
  }

  .social__link:not(:first-child) {
    margin: 0 0 0 2px;
  }

  .lang {
    text-decoration: none;
    text-transform: uppercase;
    margin-right: 10px;
    cursor: pointer;
  }

  .lang.active {
    border: 1px solid var(--color-blue-active);
  }

  /* save */

  .save-item-wrapper:first-child {
    order: 1;
  }
  
  .save-item-wrapper:last-child {
    order: 2;
  }

  .save-item-wrapper:last-child:before,
  .save-item-wrapper:last-child:after {
    content: none;
  }
  
  .save__img {
    height: 618px;
  }

  .save__img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .background {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    background-color: var(--color-bg);
  }

  /* post */

  .post-item-wrapper:first-child .post-item {
    margin: 0 12px 0;
  }

  /* team */

  .team__info {
    padding: 75px 0 0 55px;
  }

  .detail-info-wrapper {
    padding: 0 0 var(--margin-32);
  }

  .detail-info-wrapper .social__link:not(:first-child) {
    margin: 0 0 0 18px;
  }

  /* gallery */
  
  .gallery-item__title {
    font-size: 24px;
    line-height: 30px;
  }

  /* album */

  .album-grid-sizer,
  .album-grid-item {
    width: 33.33%;
  }

  /* news */

  .news-item__img {
    width: 416px;
    margin: 0 var(--margin-24) 0 0;
    padding: 23.3% 0 0;
  }

  .news-item__body {
    width: calc(100% - 440px);
  }

  .news-item__title {
    font-size: 24px;
    line-height: 30px;
  }

  .news-item__text {
    -webkit-line-clamp: 5;
  }

  .block-select__button {
    font-size: 16px;
  }

  .offers-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    margin: var(--margin-48) 0 var(--margin-64);
  }

  .offers-box__title {
    font-size: 32px;
  }

  .offers-box__button {
    margin-left: var(--margin-24);
    margin-top: 0;
  }

  .invoice__text.spendings-info {
    display: block;
  }

  .select-tabs {
    position: absolute;
    left: 100%;
    top: 0;
    width: 220px;
    height: auto;
    padding-left: 8px;
    margin: 0;
  }

  .tabs-nav {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .tabs-nav-button {
    position: relative;
    display: block;
    height: 80px;
    color: var(--color-text-gray);
    background-color: var(--color-button-tabs);
  }

  .tabs-nav-button + * {
    margin-top: 8px;
  }

  .tabs-nav-button span {
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: var(--base-spacing);
    transition: color 150ms, background-color 150ms;
  }

  .tabs-nav-button.active span {
    color: #fff;
    background-color: transparent;
  }

  .tabs-nav-button span:hover {
    background-color: var(--color-blue-hover);
    color: #fff;
  }

  .tabs-nav-button.active span:hover {
    background-color: transparent;
  }

  .tabs-nav-button.active:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 237px;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='237' height='80' viewBox='0 0 237 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M237 0H17V29.0303L0.999999 38.2679C-0.333334 39.0378 -0.333333 40.9622 1 41.7321L17 50.9697V80H237V0Z' fill='%230057B8'/%3E%3C/svg%3E%0A");
    background-position: top left;
    background-repeat: no-repeat;
  }

  .select-tabs-title {
    display: none !important;
  }

  .select-tabs-title.open {
    border-radius: 0;
  }
}