/* ==========================================================================
   Жезказганредмет — общие стили (сброс, переменные, шапка, футер, кнопки)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Manrope:wght@500&display=swap');

:root {
  --color-blue: #2e6299;
  --color-navy: #2c3e5f;
  --color-text: #000000;
  --color-muted: #6586b0;
  --color-border-soft: #456296;
  --color-white: #ffffff;
  --color-red: #df090c;

  --font-main: 'Montserrat', sans-serif;
  --font-accent: 'Manrope', sans-serif;

  --container-width: 1280px;
  --container-padding: 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.4;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 57px;
  padding: 0 30px;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 500;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color .2s ease, transform .2s ease;
}

.btn:hover {
  background-color: #244f7d;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue);
  font-weight: 600;
  font-size: 16px;
  transition: gap .2s ease;
}

.link-arrow img,
.link-arrow svg {
  display: block;
  width: 20px;
  height: 13px;
  transition: transform .2s ease;
}

.link-arrow:hover {
  gap: 16px;
}

.section-title {
  font-weight: 700;
  font-size: 30px;
  color: var(--color-text);
  margin-bottom: 40px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding-top: 26px;
}

.header--light {
  position: relative;
  background: var(--color-white);
  padding: 26px 0 0;
}

.header--light::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 164px;
  height: 1px;
  background: var(--color-muted);
}

.header--light .nav a {
  color: var(--color-text);
}

.header--light .nav a:hover,
.header--light .nav a.is-active {
  opacity: .6;
}

.header--light .header__phones {
  color: var(--color-text);
}

.header--light .langs button {
  color: var(--color-text);
}

.header--light .langs button.is-active {
  color: var(--color-white);
}

.header--light .header__bottom {
  padding-bottom: 24px;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.header__logo img {
  width: 305px;
  height: auto;
}

.header__left {
  display: flex;
  align-items: flex-start;
  gap: 63px;
}

.header__left .langs {
  margin-top: 8px;
}


.langs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.langs button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--color-white);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}

.langs button.is-active,
.langs button:hover {
  background: var(--color-blue);
}

.header__phones {
  display: flex;
  gap: 16px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .2px;
  white-space: nowrap;
}

.header__phones a:hover {
  opacity: .85;
}

.socials {
  display: flex;
  align-items: center;
  gap: 11px;
}

.social-link {
  display: flex;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}

.social-link:hover {
  opacity: 1;
  transform: scale(1.08);
}

.social-link svg {
  display: block;
  width: 35px;
  height: 36px;
}

.header__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 23px;
  gap: 20px;
  width: 100%;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.nav a {
  color: var(--color-white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: opacity .2s ease;
}

.nav a:hover,
.nav a.is-active {
  opacity: .75;
}

.search-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  align-self: flex-start;
  margin-top: 21px;
  transition: transform .25s ease;
}

.search-btn:hover {
  transform: scale(1.08);
}

.search-btn img,
.search-btn svg {
  width: 46px;
  height: 46px;
  display: block;
}

.burger-btn {
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 60px 0 40px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer__brand {
  max-width: 340px;
}

.footer__logo {
  width: 305px;
  height: auto;
  margin-bottom: 56px;
}

.footer__contacts {
  font-size: 16px;
  line-height: 26px;
}

.footer__contacts-phone {
  display: block;
  color: var(--color-white);
  font-size: 18px;
  margin-bottom: 14px;
}

.footer__contacts-phone a {
  transition: opacity .2s ease;
}

.footer__contacts-phone a:hover {
  opacity: .8;
}

.footer__contacts-address {
  display: block;
}

.footer__nav {
  display: flex;
  gap: 130px;
  flex-wrap: wrap;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-col li:first-child {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.footer__nav-col li:not(:first-child) {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white);
}

.footer__nav-col a:hover {
  opacity: .8;
}

.footer__divider {
  border: none;
  border-top: 1px solid var(--color-muted);
  margin: 55px 0 20px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer__copy {
  color: var(--color-muted);
  font-size: 15px;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer__partner {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 24px;
  text-align: left;
}

.footer__partner img {
  width: 91px;
  height: 30px;
}

.footer__partner-link {
  color: var(--color-white);
  text-decoration: underline;
}

/* ==========================================================================
   Mobile menu overlay
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-white);
  transform: translateY(-100%);
  transition: transform .35s ease;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.mobile-menu__logo {
  width: 239px;
  height: auto;
}

.mobile-menu__close {
  width: 22px;
  height: 22px;
  position: relative;
}

.mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
}

.mobile-menu__close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu__close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  display: block;
  padding: 16px;
  border-top: 1px solid #000;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .2px;
}

.mobile-menu__nav a:last-child {
  border-bottom: 1px solid #000;
}

.mobile-menu__contacts {
  padding: 16px;
  font-size: 16px;
  line-height: 22px;
}

.mobile-menu__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.mobile-menu__foot {
  display: flex;
  align-items: center;
  padding: 16px;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Carousel dots (mobile)
   ========================================================================== */

.dots {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  justify-content: flex-end;
}

.dots button {
  width: 7px;
  height: 7px;
  border-radius: 5px;
  background: rgba(47, 98, 153, .1);
  transition: width .2s ease, background-color .2s ease;
}

.dots button.is-active {
  width: 21px;
  background: var(--color-blue);
}

/* ==========================================================================
   Scroll-reveal анимации (аналог wow.js + animate.css, только vanilla JS)
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
}

.js [data-reveal].is-visible {
  animation-duration: .9s;
  animation-timing-function: cubic-bezier(.25, .46, .45, .94);
  animation-fill-mode: both;
}

[data-reveal="fade"].is-visible     { animation-name: revealFade; }
[data-reveal="fade-up"].is-visible  { animation-name: revealFadeUp; }
[data-reveal="fade-down"].is-visible{ animation-name: revealFadeDown; }
[data-reveal="fade-left"].is-visible{ animation-name: revealFadeLeft; }
[data-reveal="fade-right"].is-visible{ animation-name: revealFadeRight; }
[data-reveal="zoom"].is-visible     { animation-name: revealZoom; }

@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealFadeDown {
  from { opacity: 0; transform: translateY(-34px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealFadeLeft {
  from { opacity: 0; transform: translateX(-46px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes revealFadeRight {
  from { opacity: 0; transform: translateX(46px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes revealZoom {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ---------- Hover-анимации карточек ---------- */

.product-card,
.application-card,
.card-outline,
.history-card,
.management-card,
.gallery__cell {
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s ease, border-color .35s ease;
}

.product-card:hover,
.application-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 40px -16px rgba(0,0,0,.35);
}

.card-outline:hover,
.history-card:hover,
.management-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -18px rgba(46,98,153,.35);
  border-color: var(--color-blue);
}

.gallery__cell:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -16px rgba(0,0,0,.3);
}

.product-card__img,
.application-card img,
.card-outline__thumb {
  transition: transform .5s ease;
}

.product-card:hover .product-card__img,
.application-card:hover img,
.card-outline:hover .card-outline__thumb {
  transform: scale(1.07);
}

.btn {
  transition: background-color .2s ease, transform .2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.stat strong {
  transition: none;
}
