:root {
  --orange: #ef4b0b;
  --text: #111;
  --container: 1600px;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
 font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.page-container { max-width: calc(var(--container) + 24px); }

.site-header {
  border-bottom: 2px solid var(--orange);
  z-index: 1030;
}

.header-inner { min-height: 104px; }
.navbar-brand { margin-right: 48px; padding: 5px 0; }
.navbar-brand img { display: block; width: 72px; height: 76px; object-fit: cover; }

.site-header .nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 !important;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.site-header .nav-link.active,
.site-header .nav-link:hover { color: var(--orange); }

.header-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.header-contacts .phones { display: flex; gap: 12px; align-items: center; }
.header-contacts a:hover { color: var(--orange); }
.callback-link { color: var(--orange); font-weight: 700; font-size: 15px; white-space: nowrap; }
footer .callback-link { font-weight: 500; text-decoration: underline;}
footer .callback-link:hover {text-decoration: none;}
.social-links { display: inline-flex; align-items: center; gap: 16px; margin-left: 0; padding-left: 14px; border-left: 1px solid var(--orange); }
.social-links a { color: var(--orange); text-transform: uppercase; font-weight: 700; }

.hero { position: relative; overflow: hidden; background: #222; }
.hero-video { display: block; width: 100%; min-height: 360px; aspect-ratio: 2560 / 1128; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 30px; pointer-events: none; }
.hero-overlay h1 { max-width: 1180px; margin: 0; color: #fff; font-size: clamp(34px, 3.35vw, 64px); line-height: 1.04; font-weight: 700; text-align: center; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, .28); }

.catalog-section { padding: 58px 0 72px; }
.promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 38%) 1fr;
  min-height: 360px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #19afe0;
  color: #fff;
}
.promo-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 44px 20px 44px 58px; }
.promo h1, .promo h2 { margin: 0 0 30px; font-size: clamp(36px, 3.3vw, 64px); line-height: 1.03; font-weight: 700; }
.promo img { position: absolute; z-index: 1; right: 0; top: 0; width: 72%; height: 100%; object-fit: cover; object-position: right center; }
.promo-button { align-self: flex-start; padding: 14px 38px; border: 1px solid #fff; font-size: 16px; font-weight: 700; transition: .2s ease; }
.promo-button:hover { background: #fff; color: #19afe0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.category-card {
  position: relative;
  grid-column: span 2;
  min-height: 310px;
  overflow: hidden;
  background: #e9e9e9;
}
.category-card.category-wide { grid-column: span 3; }
.category-card h3 { position: relative; z-index: 2; margin: 0; padding: 28px 28px 0; font-size: 19px; line-height: 1.06; font-weight: 700; text-transform: uppercase; }
.category-card img { position: absolute; z-index: 1; right: 0; bottom: 0; width: 74%; height: 74%; object-fit: contain; object-position: right bottom; transition: transform .25s ease; }
.category-card-accent, .category-card:hover { background: #ef4b0b; color: #111; }
.card-arrow { position: absolute; z-index: 3; left: 28px; bottom: 24px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--orange); color: var(--orange); font-size: 36px; font-weight: 300; line-height: 1; }
.category-card-accent .card-arrow, .category-card:hover .card-arrow { border-color: #fff; color: #fff; }
.category-card:hover img { transform: scale(1.018); }

.section-space { padding: 38px 0; }
.section-machine { display: block; width: 100%; height: auto; }
.copy-block { /*width: 410px;*/ max-width: calc(100% - 40px); }
.copy-block h2,
.numbers-section h2 {
  margin: 0 0 24px;
  color: var(--orange);
  font-weight: 700;
  font-size: 89px;
  line-height: 1.05;
}

.copy-block p { font-size: 16px; line-height: 1.45; margin-bottom: 24px; }
.outline-button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
  transition: .2s ease;
}
.outline-button:hover { color: #fff; background: var(--orange); }

.about-section { padding-top: 0; }
.about-copy { margin-left: 18px; }
.about-copy p { /*max-width: 500px;*/ font-size: 24px; }

.numbers-section { padding-top: 55px; padding-bottom: 60px; }
.numbers-section h2 { font-size: 89px; margin-bottom: 42px; }
.numbers-row strong { display: block; color: var(--orange); font-size: 130px; line-height: 1; margin-bottom: 14px; }
.numbers-row span { display: block; font-size: 24px; line-height: 1.1; }

.partners-section { overflow: hidden; padding-top: 25px; padding-bottom: 65px; }
.partners-section h2 { margin: 0 0 35px; color: var(--orange); font-size: 89px; font-weight: 700; }
.partners-section .carousel { padding: 0 70px; }
.partners-section .carousel-item img { display: block; width: 100%; height: 260px; object-fit: contain; }
.partners-section .carousel-control-prev,
.partners-section .carousel-control-next { width: 52px; opacity: 1; }
.partners-section .carousel-control-prev-icon,
.partners-section .carousel-control-next-icon { width: 42px; height: 42px; border-radius: 50%; background-color: var(--orange); background-size: 48%; }

.site-footer { background: #050505; color: #fff; padding: 48px 0 22px; font-size: 18px; line-height: 1.35; }
.site-footer img { filter: brightness(1.05); }
.footer-links { display: flex; flex-direction: column; gap: 9px; }

.linkbold a {
font-weight: 700;
}

.linkbold.active {
 font-weight: 700;
}

.footer-links a:hover, .footer-links .active { color: var(--orange); }
.footer-contact { display: flex; flex-direction: column; gap: 9px; font-size: 18px; }
.footer-contact p { margin: 10px 0 0; color: #fff; line-height: 1.5; }
.copyright { margin: 38px 0 0; color: #fff; font-size: 16px; }

.navbar-toggler { width: 28px; height: 28px; }
.menu-icon,
.menu-icon::before,
.menu-icon::after { display: block; width: 25px; height: 2px; background: #111; position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

.mobile-menu { width: 100% !important; border: 0 !important; }
.mobile-menu .offcanvas-header { height: 40px; padding: 2px 13px 2px 8px; border-bottom: 2px solid var(--orange); }
.mobile-menu .offcanvas-header img { width: 29px; height: 32px; object-fit: cover; }
.mobile-menu .btn-close { opacity: 1; width: 15px; height: 15px; }
.mobile-menu .offcanvas-body { padding-top: 48px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu nav a { font-size: 14px; font-weight: 700; }
.mobile-menu nav a.active { color: var(--orange); }
.mobile-phones { display: flex; flex-direction: column; gap: 13px; margin-top: 28px; font-size: 14px; }
.mobile-menu .callback-link { display: block; margin-top: 14px; font-size: 10px; }
.mobile-socials { display: flex; justify-content: center; gap: 20px; margin-top: 22px; }
.mobile-socials a { color: var(--orange); font-size: 10px; text-transform: uppercase; font-weight: 700; }

@media (min-width: 992px) {
  .site-header .navbar-collapse {
    display: grid !important;
    grid-template-rows: 48px 48px;
    min-width: 0;
    padding: 0;
  }
  .site-header .header-contacts { grid-row: 1; }
  .site-header .navbar-nav {
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: 20px !important;
    margin-right: 0 !important;
  }
  .leasing-section .row { min-height: 570px; }
  .about-section .row { min-height: 620px; }
}

@media (max-width: 991.98px) {
  .page-container { max-width: 960px; }
  .header-inner { min-height: 52px; }
  .navbar-brand img { width: 42px; height: 44px; }
  .hero-video { min-height: 300px; }
  .copy-block { width: auto; max-width: none; margin: 28px 24px 0 !important; }
  .about-copy { margin-bottom: 25px !important; }
  .section-machine { max-height: 570px; object-fit: contain; }
}

@media (max-width: 575.98px) {
  .page-container { max-width: 100%; padding-left: 16px; padding-right: 16px; }
  .site-header .container { padding-left: 8px; padding-right: 14px; }
  .header-inner { min-height: 40px; }
  .navbar-brand { padding: 2px 0; }
  .navbar-brand img { width: 29px; height: 32px; }
  .navbar-toggler { width: 23px; }
  .menu-icon, .menu-icon::before, .menu-icon::after { width: 22px; }

  .hero-video { height: 275px; min-height: 0; width: 100%; object-fit: cover; object-position: 50% center; }
  .hero-overlay { padding: 18px 10px; }
  .hero-overlay h1 { width: 100%; font-size: clamp(22px, 7.2vw, 28px); line-height: 1.08; }
  .catalog-section { padding: 30px 0 42px; }
  .promo { display: block; min-height: 330px; margin-bottom: 6px; }
  .promo-copy { padding: 26px 16px; justify-content: flex-start; }
  .promo h1, .promo h2 { max-width: 240px; margin-bottom: 18px; font-size: 27px; }
  .promo-button { padding: 9px 20px; font-size: 12px; }
  .promo img { top: auto; bottom: 0; width: 100%; height: 67%; object-fit: cover; object-position: 62% center; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .category-card, .category-card.category-wide { grid-column: auto; min-height: 230px; }
  .category-card h3 { padding: 14px 10px 0; font-size: 11px; line-height: 1.08; }
  .category-card img { width: 96%; height: 68%; }
  .card-arrow { left: 10px; bottom: 10px; width: 28px; height: 28px; font-size: 24px; }

  .section-space { padding: 20px 0 36px; }
  .section-machine { max-height: 390px; object-fit: contain; object-position: center; }
  .about-machine { max-height: 430px; object-fit: contain; object-position: 43% center; }
  .copy-block { margin: 28px 18px 0 !important; }
  .copy-block h2, .numbers-section h2 { font-size: 32px; }
  .copy-block p { font-size: 24px; }

  .numbers-section { padding: 28px 0 44px; }
  .numbers-section h2 { margin-bottom: 30px; }
  .numbers-row strong { font-size: 42px; }
  .numbers-row span { font-size: 11px; }

  .partners-section { padding-top: 15px; padding-bottom: 42px; }
  .partners-section h2 { margin-bottom: 18px; font-size: 30px; }
  .partners-section .carousel { padding: 0 36px; }
  .partners-section .carousel-item img { height: 250px; object-fit: contain; }
  .partners-section .carousel-control-prev,
  .partners-section .carousel-control-next { width: 32px; }
  .partners-section .carousel-control-prev-icon,
  .partners-section .carousel-control-next-icon { width: 30px; height: 30px; }
  .site-footer { padding-top: 30px; }
  .site-footer .row > div:first-child { display: none; }
  .footer-links { gap: 9px; font-size: 11px; line-height: 1.35; }
  .footer-contact { margin-top: 30px; text-align: center; font-size: 12px; }
  .copyright { text-align: center; font-size: 12px; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* WordPress content templates */
.content-area { min-height: 55vh; }
.content-area h1, .content-area h2 { font-weight: 700; }
.content-area h1 { color: var(--orange); }
.content-card { padding: 28px; background: #f3f3f3; }
.content-card h2 { font-size: 26px; }
.entry-content { font-size: 16px; line-height: 1.7; }
.entry-content img { max-width: 100%; height: auto; }
.custom-logo-link { display: block; }
.custom-logo { display: block; width: 72px; height: 76px; object-fit: contain; }
body.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}


/* Category archive */
.category-archive {
  min-height: 70vh;
  padding: 14px 0 118px;
  background: #fff;
}

.archive-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #b4b4b4;
  font-size: 12px;
  line-height: 1.4;
}

.archive-breadcrumbs a { transition: color .2s ease; }
.archive-breadcrumbs a:hover,
.archive-breadcrumbs .current { color: var(--orange); }

.category-archive-header { margin-top: 80px; }
.category-archive-header h1 {
  max-width: 1120px;
  margin: 0;
  color: var(--orange);
  font-size: clamp(48px, 4.4vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 108px;
}

.subcategory-grid-single { grid-template-columns: 1fr; }

.subcategory-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #e8e8e8;
}

.subcategory-card-link {
  position: absolute;
  inset: 0;
  display: block;
}

.subcategory-card-copy {
  position: relative;
  z-index: 2;
  width: 66%;
  height: 100%;
  padding: 30px 28px;
}

.subcategory-card h2 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(24px, 1.85vw, 30px);
  font-weight: 800;
  line-height: 1.04;
  text-transform: uppercase;
}

.subcategory-image {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 0;
  width: 57%;
  height: 92%;
  object-fit: contain;
  object-position: right bottom;
  transition: transform .3s ease;
}

.subcategory-image-fallback {
  right: 12%;
  bottom: 18%;
  width: 24%;
  height: 55%;
  object-position: center;
}

.subcategory-arrow {
  position: absolute;
  left: 28px;
  bottom: 30px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 32px;
  transition: color .2s ease, background-color .2s ease;
}

.subcategory-card-featured { min-height: 440px; }
.subcategory-card-featured .subcategory-card-copy { width: 58%; padding: 56px 58px; }
.subcategory-card-featured h2 { max-width: 760px; font-size: clamp(34px, 2.65vw, 46px); }
.subcategory-card-featured .subcategory-image { right: 40px; width: 55%; height: 94%; }
.subcategory-card-featured .subcategory-image-fallback { right: 14%; width: 20%; height: 52%; }

.subcategory-button {
  position: absolute;
  left: 58px;
  bottom: 48px;
  display: grid;
  min-width: 250px;
  height: 64px;
  padding: 0 30px;
  place-items: center;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  transition: color .2s ease, background-color .2s ease;
}

.subcategory-card:hover .subcategory-image { transform: scale(1.025); }
.subcategory-card:hover .subcategory-arrow,
.subcategory-card:hover .subcategory-button,
.subcategory-card-link:focus-visible .subcategory-arrow,
.subcategory-card-link:focus-visible .subcategory-button { color: #fff; background: var(--orange); }
.subcategory-card-link:focus-visible { outline: 3px solid rgba(239, 75, 11, .35); outline-offset: -3px; }

.category-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 108px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: #e8e8e8;
}

.product-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 3px solid var(--orange);
  background: #ddd;
}

.product-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.product-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #aaa;
  font-size: 56px;
}

.product-card-body {
  position: relative;
  flex: 1;
  min-height: 210px;
  padding: 28px 88px 30px 28px;
}

.product-card h2 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
}

.product-card-summary {
  font-size: 15px;
  line-height: 1.2;
}

.product-card-arrow {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 32px;
  transition: color .2s ease, background-color .2s ease;
}

.product-card:hover .product-card-media img { transform: scale(1.035); }
.product-card:hover .product-card-arrow,
.product-card-link:focus-visible .product-card-arrow { color: #fff; background: var(--orange); }
.product-card-link:focus-visible { outline: 3px solid rgba(239, 75, 11, .35); outline-offset: 3px; }

.category-pagination { margin-top: 54px; }
.category-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.category-pagination .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid #d5d5d5;
  font-weight: 700;
}
.category-pagination .page-numbers.current,
.category-pagination a.page-numbers:hover { border-color: var(--orange); color: #fff; background: var(--orange); }

.category-empty {
  margin-top: 80px;
  padding: 32px;
  background: #f1f1f1;
  font-size: 18px;
}
.category-empty p { margin: 0; }

@media (max-width: 1199.98px) {
  .category-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subcategory-card-featured .subcategory-card-copy { width: 62%; }
  .subcategory-card-featured h2 { font-size: 38px; }
}

@media (max-width: 575.98px) {
  .category-archive { padding: 12px 0 58px; }
  .archive-breadcrumbs { gap: 5px; font-size: 10px; }
  .category-archive-header { margin-top: 42px; }
  .category-archive-header h1 { font-size: clamp(30px, 10vw, 42px); line-height: 1.04; }
  .subcategory-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 46px; }
  .subcategory-card,
  .subcategory-card-featured { min-height: 300px; }
  .subcategory-card-copy,
  .subcategory-card-featured .subcategory-card-copy { width: 100%; padding: 20px; }
  .subcategory-card h2,
  .subcategory-card-featured h2 { max-width: 92%; font-size: 24px; }
  .subcategory-image,
  .subcategory-card-featured .subcategory-image { right: 10px; width: 76%; height: 72%; }
  .subcategory-image-fallback,
  .subcategory-card-featured .subcategory-image-fallback { right: 12%; bottom: 15%; width: 30%; height: 44%; }
  .subcategory-arrow { left: 20px; bottom: 20px; width: 48px; height: 48px; font-size: 27px; }
  .subcategory-button { left: 20px; bottom: 20px; min-width: 150px; height: 46px; padding: 0 20px; font-size: 13px; }
  .category-products { grid-template-columns: 1fr; gap: 18px; margin-top: 46px; }
  .product-card-body { min-height: 170px; padding: 22px 76px 24px 20px; }
  .product-card h2 { margin-bottom: 18px; font-size: 20px; }
  .product-card-summary { font-size: 14px; }
  .product-card-arrow { right: 20px; bottom: 22px; width: 48px; height: 48px; font-size: 27px; }
  .category-pagination { margin-top: 36px; }
}
