/*
 * Pixel-pass overrides for the homepage Figma frames.
 * Kept separate from main.css so the template remains easy to integrate.
 */

.about__square {
  background: #222222;
}

.section-head h2,
.about h2,
.production h2,
.partners h2 {
  font-weight: 700;
}

.hero-promo__arrows button,
.about__arrows button {
  color: #ffffff;
  background: var(--orange);
}

.hero-promo__arrows button:hover,
.about__arrows button:hover {
  background: var(--orange-dark);
}

.hero-promo__arrows button .asset-icon,
.about__arrows button .asset-icon {
  width: 20px;
  height: 20px;
  border: 0;
  background-image: var(--asset-icon-slider-arrow);
  background-size: contain;
}

.hero-promo__arrows .asset-icon--slider-arrow-next,
.about__arrows .asset-icon--slider-arrow-next {
  transform: rotate(180deg);
}

.tech-card,
.blog-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  background: rgba(24, 24, 24, 0.58);
  box-shadow: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.tech-card p {
  color: rgba(255, 255, 255, 0.84);
}

.blog-card__body > a {
  color: rgba(255, 255, 255, 0.8);
}

.filter-dropdown summary,
.products__mobile-filter button {
  border: 0;
  border-radius: 10px;
  background: #f0f0f0;
}

.product-card {
  border: 0;
  border-radius: 16px;
  background: #f8f8f8;
}

.product-card--featured {
  border: 0;
}

.partner-logo {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background-color: #ffffff;
}

.product-card__photo {
  flex: 0 0 220px;
  background-color: #ffffff;
  background-size: 82% auto;
}

.product-card h3 {
  font-weight: 600;
}

.spec-row {
  font-weight: 400;
}

.spec-row strong,
.stock-label {
  font-weight: 600;
}

@media (min-width: 1200px) {
  .hero {
    height: 965px;
    min-height: 965px;
  }

  .feature-card {
    height: 211px;
    min-height: 211px;
    overflow: hidden;
  }

  .feature-card h3,
  .tech-card h3 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
  }

  .feature-card p,
  .tech-card p {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
  }

  .about {
    height: 610px;
    padding-top: 114px;
    padding-bottom: 60px;
  }

  .about__copy p {
    max-width: 730px;
    color: #2b2b2b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
  }

  .about__copy {
    position: relative;
    top: -36px;
  }

  .about__copy h2 {
    position: relative;
    top: 7px;
  }

  .production {
    height: 571px;
    min-height: 571px;
    padding-top: 59px;
    padding-bottom: 58px;
    overflow: hidden;
  }

  .production__copy p {
    font-weight: 400;
    line-height: 1.5;
  }

  .production__copy {
    position: relative;
    top: -10px;
  }

  .production__track {
    gap: 32px 40px;
  }

  .tech-card {
    height: 211px;
    min-height: 211px;
    max-height: 211px;
    padding: 32px;
    overflow: hidden;
  }

  .tech-card__icon {
    margin-bottom: 20px;
  }

  .products {
    height: auto;
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 80px;
    overflow: visible;
  }

  .products > .section-head {
    margin-bottom: 44px;
  }

  .products-list {
    align-items: stretch;
    column-gap: 20px;
    row-gap: 16px;
  }

  .product-card,
  .product-card--featured {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    background: #f8f8f8;
  }

  .product-card h3 {
    font-size: 16px;
    line-height: 1.2;
  }

  .product-card__actions,
  .product-card--featured .product-card__actions {
    display: flex;
  }

  .catalog-tree__group {
    margin-bottom: 16px;
    border-bottom: 0;
  }

  .catalog-tree summary {
    border-radius: 10px;
    background: #f0f0f0;
  }

  .catalog-tree a {
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: #f8f8f8;
  }

  .blog {
    height: 662px;
    min-height: 662px;
    padding-top: 71px;
    padding-bottom: 74px;
    overflow: hidden;
  }

  .blog-card {
    height: 421px;
    min-height: 421px;
    max-height: 421px;
    overflow: hidden;
  }

  .blog-card__body {
    padding-top: 20px;
  }

  .blog-card h3 {
    font-size: 16px;
    line-height: 1.25;
  }

  .blog-card__body > a {
    margin-top: 14px;
    font-weight: 400;
  }

  .partners {
    height: 635px;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .partners h2 {
    max-width: 700px;
    font-weight: 700;
  }

  .partners__marquee {
    margin-top: 89px;
    margin-bottom: 80px;
  }

  .partners p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
  }

  .site-footer {
    height: 584px;
    padding-bottom: 33px;
  }
}

@media (max-width: 767px) {
  .section-head h2,
  .about h2,
  .production h2,
  .partners h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero {
    height: 730px;
    min-height: 730px;
    overflow: hidden;
  }

  .site-header {
    padding-top: 34px;
  }

  .header-row__burger,
  .header-row__phone {
    background: var(--orange);
  }

  .header-row__phone .asset-icon {
    filter: brightness(0) invert(1);
  }

  .header-row__burger .asset-icon {
    position: relative;
    width: 18px;
    height: 14px;
    flex-basis: 18px;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    background-image: none;
  }

  .header-row__burger .asset-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #ffffff;
    transform: translateY(-50%);
  }

  .hero-stage {
    gap: 0;
    margin-top: 39px;
  }

  .hero-copy h1 {
    max-width: 354px;
    font-size: 24px;
    line-height: 1.28;
  }

  .hero-copy p {
    max-width: 354px;
    margin-top: 23px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
  }

  .hero-promo {
    margin-top: 19px;
  }

  .hero-promo__content {
    padding-top: 24px;
  }

  .hero-promo__kicker {
    display: none;
  }

  .hero-promo__arrows {
    left: 24px;
  }

  .hero-promo__arrows button {
    width: 56px;
    height: 40px;
  }

  .hero-promo__locker {
    right: 20px;
    top: 62px;
    bottom: auto;
    width: 150px;
    height: 275px;
    background-position: top center;
  }

  .hero-promo__shadow {
    display: none;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-features {
    margin-top: 33px;
    height: 169px;
  }

  .hero-features__track {
    height: 145px !important;
  }

  .feature-card {
    height: 145px;
    min-height: 145px;
    max-height: 145px;
    overflow: hidden;
  }

  .feature-card h3,
  .tech-card h3 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
  }

  .feature-card p,
  .tech-card p {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
  }

  .about {
    height: 605px;
    padding-top: 34px;
    padding-bottom: 39px;
    overflow: hidden;
  }

  .about__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .about__copy {
    display: contents;
  }

  .about__copy h2 {
    order: 1;
    width: 100%;
    align-self: stretch;
  }

  .about__copy p {
    width: 100%;
    max-width: 354px;
    font-size: 13.2px;
    color: #2b2b2b;
    font-weight: 400;
    line-height: 1.4;
  }

  .about__copy p:first-of-type {
    order: 2;
    margin-top: 12px;
  }

  .about__media {
    order: 3;
    width: 100vw;
    height: 246px;
    min-height: 246px;
    margin-top: 46px;
    margin-left: 0;
    flex: 0 0 246px;
  }

  .about__copy p + p {
    order: 4;
    margin-top: 36px;
    font-size: 12.5px;
  }

  .about__badge {
    left: 24px;
  }

  .about__square--small {
    right: 48px;
  }

  .about__square--large {
    right: 24px;
  }

  .about__arrows {
    left: 24px;
    gap: 12px;
  }

  .production {
    height: 541px;
    min-height: 541px;
    padding-top: 34px;
    padding-bottom: 20px;
    overflow: hidden;
  }

  .production__copy h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .production__copy p {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
  }

  .production__copy p:first-of-type {
    margin-top: 28px;
  }

  .production__copy p + p {
    margin-top: 8px;
  }

  .production__copy {
    height: 298px;
    flex: 0 0 298px;
  }

  .production__cards {
    height: 169px;
  }

  .production__track {
    height: 145px !important;
  }

  .tech-card {
    height: 145px;
    min-height: 145px;
    max-height: 145px;
    padding: 24px;
    overflow: hidden;
  }

  .tech-card__icon {
    margin-bottom: 12px;
  }

  .products {
    height: auto;
    min-height: 0;
    padding-top: 32px;
    padding-bottom: 48px;
    overflow: visible;
  }

  .products > .section-head {
    margin-bottom: 13px;
  }

  .products__mobile-filter {
    margin-bottom: 21px;
  }

  .products__mobile-filter button:first-child {
    font-size: 0;
    font-weight: 400;
  }

  .products__mobile-filter button:first-child::before {
    content: "Архивная мебель";
    font-size: 16px;
  }

  .products__mobile-filter button:first-child .asset-icon {
    transform: rotate(180deg);
  }

  .products__mobile-filter button:last-child .asset-icon {
    display: none;
  }

  .products__mobile-filter button:last-child::before {
    content: "";
    width: 16px;
    height: 15px;
    border: 0;
    background: #222222;
    clip-path: polygon(0 0, 100% 0, 64% 48%, 64% 100%, 36% 82%, 36% 48%);
  }

  .product-card,
  .product-card--featured {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .product-card__photo {
    height: 220px;
    flex-basis: 220px;
    background-size: 75% auto;
  }

  .product-card__actions,
  .product-card--featured .product-card__actions {
    display: flex;
  }

  .product-card h3 {
    font-size: 16px;
    line-height: 1.2;
  }

  .products-slider {
    width: calc(100% + 20px);
    max-width: calc(100% + 20px);
    height: auto;
    margin: -10px;
    padding: 10px;
    overflow: hidden;
  }

  .products-list {
    height: auto !important;
  }

  .products__footer .btn {
    color: var(--black);
    background: #f0f0f0;
  }

  .blog {
    height: 638px;
    min-height: 638px;
    padding-top: 40px;
    padding-bottom: 24px;
    overflow: hidden;
  }

  .blog-card {
    height: 421px;
    min-height: 421px;
    max-height: 421px;
    overflow: hidden;
  }

  .blog-card h3 {
    font-size: 16px;
    line-height: 1.25;
  }

  .blog-card__body > a {
    font-weight: 400;
  }

  .blog__mobile-action .btn {
    color: var(--black);
    background: #f0f0f0;
    box-shadow: none;
  }

  .partners {
    height: 398px;
    padding-top: 48px;
    padding-bottom: 64px;
    overflow: hidden;
  }

  .partners h2 {
    max-width: 354px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
  }

  .partners p {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
  }

  .partners__track {
    animation: none;
    transform: translateX(-23px);
  }

  .partners__track [aria-hidden="true"],
  .partners__track .partner-logo--1,
  .partners__track .partner-logo--2,
  .partners__track .partner-logo--3,
  .partners__track .partner-logo--8,
  .partners__track .partner-logo--10,
  .partners__track .partner-logo--11 {
    display: none;
  }

  .partners__track .partner-logo--9 { order: 1; }
  .partners__track .partner-logo--6 { order: 2; }
  .partners__track .partner-logo--5 { order: 3; }
  .partners__track .partner-logo--4 { order: 4; }
  .partners__track .partner-logo--7 { order: 5; }

  .site-footer {
    display: flex;
    height: 699px;
    flex-direction: column;
    align-items: center;
    padding-top: 52px;
    padding-bottom: 16px;
    overflow: hidden;
  }

  .footer-top {
    display: contents;
  }

  .footer-top__brand {
    order: 1;
    flex: 0 0 32px;
  }

  .footer-map {
    order: 2;
    margin-top: 36px;
  }

  .footer-map__image {
    height: 437px;
  }

  .footer-contact-card {
    height: 233px;
    min-height: 0;
    color: #ffffff;
    background: rgba(24, 24, 24, 0.64);
    box-shadow: none;
  }

  .city-tabs {
    display: none;
  }

  .footer-contact-card h3,
  .footer-contact-card p {
    color: #ffffff;
  }

  .footer-contact-card h3 {
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 400;
  }

  .footer-contact-card p {
    font-size: 12px;
    font-weight: 400;
  }

  .socials {
    order: 3;
    width: auto;
    margin-top: 24px;
  }

  .footer-bottom {
    order: 4;
    gap: 12px;
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track {
    animation: none !important;
  }
}
