/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #c8102e;
  --red-dark: #a00d24;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #222222;
  --dark-card: #161616;
  --grey: rgba(255, 255, 255, 0.55);
  --grey-light: rgba(255, 255, 255, 0.35);
  --border: rgba(255, 255, 255, 0.12);
  --white: #fff;
  --font: 'Montserrat', sans-serif;
  --transition: 0.3s ease;
  --content-max: 1360px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
}

body.page-gallery {
  touch-action: pan-y;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 88px;
  width: auto;
  display: block;
}

.logo__img--small {
  height: 64px;
}

.logo--small {
  display: inline-flex;
}

/* ===== Header Navigation mount ===== */
.header__nav .side-nav {
  display: block;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 32px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header__brand {
  color: var(--white);
  display: none;
}

@media (min-width: 768px) {
  .header__brand {
    display: block;
  }
}

.header__brand strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header__brand span {
  font-size: 11px;
  opacity: 0.8;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 1200px) {
  .header__menu-btn {
    display: none;
  }
}

.header__langs {
  display: flex;
  gap: 12px;
}

.lang-switcher button,
.header__langs a {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity var(--transition);
  font-family: inherit;
}

.lang-switcher button.active,
.lang-switcher button:hover,
.header__langs a.active,
.header__langs a:hover {
  opacity: 1;
}

.header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

.header__menu-btn em {
  color: var(--white);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 4px;
}

.header__contacts-link {
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: none;
}

@media (min-width: 768px) {
  .header__contacts-link {
    display: block;
  }
}

/* ===== Menu Overlay ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.menu-overlay__nav a {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  transition: color var(--transition);
}

.menu-overlay__nav a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.menu-overlay__langs {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 16px;
}

.menu-overlay__langs button,
.menu-overlay__langs a {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.45;
  font-family: inherit;
}

.menu-overlay__langs button.active,
.menu-overlay__langs a.active {
  opacity: 1;
  color: var(--white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.65) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80') center/cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 32px 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1200px) {
  .hero__content {
    max-width: 760px;
  }
}

.hero__title {
  color: var(--white);
  margin-bottom: 32px;
}

.hero__title span {
  display: block;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero__list {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.8;
}

.hero__list li {
  padding-left: 16px;
  position: relative;
}

.hero__list li::before {
  content: '—';
  position: absolute;
  left: 0;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 32px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.hero__video {
  position: absolute;
  bottom: 40px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  z-index: 2;
}

.hero__video-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}

.hero__video-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(1);
  transition: filter var(--transition);
}

.hero__video:hover .hero__video-icon {
  border-color: var(--white);
  background: var(--white);
}

.hero__video:hover .hero__video-icon img {
  filter: none;
}

.hero__video-text span {
  display: block;
  font-size: 11px;
  opacity: 0.7;
}

.hero__video-text strong {
  font-size: 13px;
  font-weight: 600;
}

/* ===== Category Tiles ===== */
.categories {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  background: var(--black);
}

.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.category-tile:last-child {
  border-bottom: none;
}

.category-tile__bg {
  position: absolute;
  inset: 0;
  background-color: var(--black);
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}

.category-tile:hover .category-tile__bg {
  transform: scale(1.05);
}

.category-tile__icon {
  position: relative;
  z-index: 2;
  color: var(--white);
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.category-tile__icon svg {
  width: 100%;
  height: 100%;
}

.category-tile__title {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== Stats / About ===== */
.stats {
  padding: 80px 32px;
  background: var(--dark);
}

.stats__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .stats__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.stats__text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}

.stats__text p {
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 32px;
}

.stats__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.stats__features li strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.stats__features li span {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.4;
}

.stats__image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.stats__image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.stats--requisites {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}

.stats__inner--single {
  grid-template-columns: 1fr;
  max-width: 800px;
}

/* Contacts + Requisites row */
.info-block {
  position: relative;
  padding: 80px 32px;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.info-block__logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.info-block__logo img {
  width: min(480px, 75vw);
  height: auto;
  opacity: 0.14;
  filter: grayscale(1);
}

.info-block__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.info-block__inner--center {
  max-width: 640px;
  text-align: center;
}

.info-block__inner--center .info-block__col--contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-block__inner--center .contacts-list {
  align-items: center;
}

.info-block__inner--center .contacts-list p {
  text-align: center;
}

.info-block__col h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
}

.contacts-list {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-list p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}

.contacts-list strong {
  color: var(--white);
  font-weight: 600;
}

.contacts-list__value {
  display: inline-block;
  margin-top: 4px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.contacts-list a {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  transition: opacity var(--transition);
}

.contacts-list a:hover {
  opacity: 0.75;
}

.requisites {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.requisites li {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
}

.requisites li strong {
  color: var(--white);
  font-weight: 600;
}

#clients .news__grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  #clients .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

#clients .news-card__body {
  padding: 28px;
}

#clients .news-card__body h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

/* ===== Promo ===== */
.promo {
  padding: 60px 32px;
  background: var(--black);
}

.promo__header {
  max-width: 1200px;
  margin: 0 auto 32px;
}

.promo__links {
  display: flex;
  gap: 24px;
}

.promo__tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.promo__tab.active,
.promo__tab:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.promo__grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .promo__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promo-card {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-radius: 4px;
  display: block;
  border: 1px solid var(--border);
}

.promo-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  filter: brightness(0.5);
}

.promo-card:hover .promo-card__bg {
  transform: scale(1.08);
  filter: brightness(0.65);
}

.promo-card__content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.promo-card__content h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.promo-card__btn {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 20px;
  display: inline-block;
  width: fit-content;
  transition: background var(--transition), border-color var(--transition);
}

.promo-card:hover .promo-card__btn {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ===== Services ===== */
.services {
  padding: 80px 32px;
  background: var(--dark-2);
  color: var(--white);
}

.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 48px;
  text-align: center;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-item {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--dark-card);
  transition: border-color var(--transition), transform var(--transition);
}

.service-item:hover {
  border-color: var(--white);
  transform: translateY(-4px);
}

.service-item__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--white);
  flex-shrink: 0;
}

.service-item__icon svg {
  width: 100%;
  height: 100%;
}

.service-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ===== Metal ===== */
.metal {
  padding: 80px 32px;
  background: var(--black);
}

.metal--hero-next {
  padding-top: 48px;
  padding-bottom: 64px;
}

.metal__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.metal h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}

.metal__subtitle {
  color: var(--grey);
  margin-bottom: 40px;
}

.metal__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.metal-item {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: span 2;
  min-height: 84px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--white);
  background: var(--dark-card);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.metal-item:nth-child(4) {
  grid-column: 2 / span 2;
}

.metal-item:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 900px) {
  .metal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metal-item,
  .metal-item:nth-child(4),
  .metal-item:nth-child(5) {
    grid-column: auto;
  }

  .metal-item:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 540px) {
  .metal__grid {
    grid-template-columns: 1fr;
  }

  .metal-item:nth-child(5) {
    width: 100%;
    justify-self: stretch;
  }
}

.metal-item:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.metal__price-btn {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: 1px solid var(--white);
  transition: background var(--transition), color var(--transition);
}

.metal__price-btn:hover {
  background: var(--white);
  color: var(--black);
}

/* ===== News ===== */
.news {
  padding: 80px 32px;
  background: var(--dark);
}

.news__header {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news__header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
}

.news__all {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.news__all:hover {
  background: var(--white);
  color: var(--black);
}

.news__grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  border-radius: 4px;
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.3);
}

.news-card__img {
  height: 240px;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.7);
}

.news-card:hover .news-card__img img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.news-card__body {
  padding: 20px;
}

.news-card__body time {
  font-size: 12px;
  color: var(--grey-light);
}

.news-card__body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.3;
  color: var(--white);
}

.news-card__body p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

/* ===== Partners ===== */
.partners {
  padding: 40px 0;
  background: var(--black);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners__track {
  display: flex;
  gap: 100px;
  animation: scroll-partners 55s linear infinite;
  width: max-content;
}

@keyframes scroll-partners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners__item {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  letter-spacing: 3px;
  padding: 0 24px;
  text-transform: uppercase;
}

/* ===== Contact Form ===== */
.contact-form-section {
  padding: 60px 32px;
  background: var(--dark-2);
  color: var(--white);
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact-form-section__inner {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form-section h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-form-section p {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 24px;
}

.quick-form {
  display: flex;
  gap: 8px;
}

.quick-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--black);
  color: var(--white);
}

.quick-form input::placeholder {
  color: var(--grey-light);
}

.quick-form button {
  padding: 14px 24px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.quick-form button:hover {
  background: var(--grey);
  color: var(--white);
}

@media (max-width: 480px) {
  .quick-form {
    flex-direction: column;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 32px 0;
  border-top: 1px solid var(--border);
}

.footer__top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer__col ul a:hover {
  color: var(--white);
}

.footer__col address {
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer__col address a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer__col address a:hover {
  color: var(--white);
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer__langs {
  display: flex;
  gap: 12px;
}

.footer__langs button,
.footer__langs a {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
  font-family: inherit;
}

.footer__langs button.active,
.footer__langs button:hover,
.footer__langs a.active,
.footer__langs a:hover {
  color: var(--white);
}
