/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Montserrat+Alternates:wght@700;800;900&display=swap');

/* ── VARIABLES ── */
:root {
  /* Primitives */
  --gray-100: #F5F5F5; 
    --gray-200: #E9EAEB;
  --gray-300: #D5D7DA;
  --gray-500: #838383; 
    --gray-600: #525252;
  --gray-700: #2A2A2A;
  --gray-800: #202020;
  --gray-900: #1A1A18;

  --white: #FFFFFF;
--black: #000000;

  --brand-500: #EB5317;
  --brand-400: #FF6B35;
  --brand-600: #C94510;

  --success-500: #22C55E;
  --error-500:   #EF4444;
  --warning-500: #F59E0B;

  /* Semantic */
  --bg-primary:   var(--black);
  --bg-secondary: var(--gray-800);
  --bg-tertiary:  var(--gray-700);

  --text-primary:   #FFFFFF;
   --text-primary-light:  var(--black);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-secondary-light: rgba(0, 0, 0, 0.7);
  --text-muted:     rgba(255, 255, 255, 0.4);

  --border-default: rgba(255, 255, 255, 0.1);

  --accent:   var(--brand-500);
  --success:  var(--success-500);
  --error:    var(--error-500);
  --warning:  var(--warning-500);
  
}

/* ── TYPOGRAPHY ── */

/* Display */
.display-3xl { font-size: clamp(64px, 8vw, 92px); line-height: 1; }
.display-2xl { font-size: 100px; line-height: 80px; }
.display-xl  { font-size: clamp(28px, 5vw, 60px);  line-height: 1.2; }
.display-lg  { font-size: 48px;  line-height: 60px; }
.display-md  { font-size: 36px;  line-height: 44px; }
.display-sm  { font-size: 30px;  line-height: 38px; }

/* Text */
.text-xl  { font-size: 22px; line-height: 30px; }
.text-lg  { font-size: 17px; line-height: 24px; }
.text-md  { font-size: 15px; line-height: 1.6; }
.text-sm  { font-size: 14px; line-height: 20px; }
.text-xs  { font-size: 12px; line-height: 18px; }

/* Caption */
.caption-lg { font-size: 12px; line-height: 16px; }
.caption-md { font-size: 11px; line-height: 16px; }
.caption-sm { font-size: 10px; line-height: 14px; }

/* Weights */
.fw-regular   { font-weight: 400; }
.fw-medium    { font-weight: 500; }
.fw-semibold  { font-weight: 600; }
.fw-bold      { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.fw-black     { font-weight: 900; }



/* ── RESET ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── BASE ── */
body {
  background: var(--gray-200);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
}

.section { 
   display: flex;
  flex-direction: column;
  padding: clamp(64px, 8vw, 100px) 0;
  gap: clamp(48px, 5vw, 64px);
  
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 64px);
}



.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px; 
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
   overflow: hidden;
}

.modal.active {
  display: flex;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(217, 217, 217, 0.01);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
} 

.modal__content {
  position: relative;
  z-index: 1;
  background: var(--gray-700);
  border-radius: 16px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  align-items: center;
  cursor: default;
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.modal__text{
  color: var(--text-secondary);
  margin-top: -8px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text);
}

.modal__icon {
  width: 72px;
  height: 72px;
  background: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success__icon {
  color: #2e7d32;
}

/* ── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
  border: none;
}

.btn:hover {
   opacity: 0.85;
}

.btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Sizes */
.btn--lg {
  height: 60px;
  padding: 20px 24px ;
  font-size: 15px;
}

.btn--md {
  font-size: 14px;
  padding: 16px 32px;
}

.btn--sm {
  display: flex;
   height: 42px;
  font-size: 12px;
  padding: 12px 14px;
}

/* Variants */
.btn--primary {
  background: var(--accent);
  color: var(--text-primary);
}

.btn--secondary {
  background: black;
  color: white;
}

.btn--outline {
   background: rgba(235, 83, 23, 0.2);
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-300);
  border-color: transparent;
}

.about__nav {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  justify-content: center;
}

.about__btn--prev,
.about__btn--next {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--black);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__btn--prev.swiper-button-disabled,
.about__btn--next.swiper-button-disabled {
  background: #d7d7d7;
  color: #AFAFAF;
  cursor: default;
}

/* ── NAV ── */
header {
position: fixed;
  display: flex;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 0;
  transition: transform 0.3s ease;
}

header.header--hidden {
  transform: translateY(-100%);
}

.nav {
  margin: 0 auto;
  height: 56px;
  width: fit-content;
  display: flex;
  align-items: center;
gap: 32px;
  background: rgba(0, 0, 0, 0.6);
box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 8px 8px 8px 24px;
  backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px); /* Safari */
}

.nav a{
  text-decoration: none;
}

.nav__logo {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -2%;
  color: var(--accent);
 cursor: pointer;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
 color: var(--text-primary);
  opacity: 1;
  transition: opacity 0.2s;
}

.nav__links a:hover {
  opacity: 0.85;
}

/* скрыть бургер на десктопе */
.nav__burger {
  display: none;
}



/* ── HERO ── */
.hero {
 background-color: black;
padding-top: clamp(136px, 12vw, 172px);
 position: relative;
height: auto;  
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .container {
  position: relative;

}

.hero__inner {
  grid-column: 2 / span 10;
  grid-row: 1;       
  position: relative;
  display: flex;
  flex-direction: column;
gap: clamp(48px, 5vw, 64px);
}


.hero__title {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);  
  z-index: 1;
 
  overflow-wrap: break-word;
 
 
}

.hero__title span {
  color: var(--gray-500);  
  z-index: 1;
}


.hero__text {
  color:var(--gray-300);
  width: 50%;
    z-index: 1;
}

.hero__btns {
  display: flex;
  align-items: center;
  gap: 24px; z-index: 1;
}

.hero__visual {
  position: absolute;
  right: -8%;
  top: 50%;
  margin-top: -25%;      /* = половина высоты: высота = 50% ширины = 25% ширины */
  pointer-events: none;
  width: 50%;
  aspect-ratio: 1 / 1;   /* всегда квадрат */
  height: auto;          /* высоту считает aspect-ratio, не задаём вручную */
  /* background-color: blue; */
}

.hero__glove {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;     /* пропорции не искажаются */
  object-position: center; /* по центру квадрата */
}

.hero__gradient {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 160%;
  height: auto;

  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin-top: -80px;   
    margin-bottom: 100px;
    margin-inline: auto;  /* центр по горизонтали */
    width: 100%;
    max-width: 80vh;      /* чтобы квадрат не разрастался на широких экранах */
    aspect-ratio: 1 / 1;
    height: auto;         /* вместо height: 80vh — иначе блок не квадратный */
  }
}

/* ── ABOUT ── */

.about {
  padding-top: 64px; 
}

.about__swiper {
  width: 100%;   
}

.about__slide {
  width: 70vw;
  max-width: 700px;
  aspect-ratio: 1008 / 568;
   overflow: hidden;
}

.about__slide--first img {
  object-position: center 65%;
}

.about__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.about__pagination {
  display: none;
 
}




.about__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: rotate(-15deg);
 padding: 20px; 
 height: 172px;
 width: 172px;
 right: 80px;
 bottom: 0;
}

.about__badge img {
  display: block;
   animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about__badge span {
  font-family: Montserrat Alternates;
  font-size: 18px;
  line-height: 20px;
  position: absolute;
  text-align: center;
  color: #fff;
  font-weight: 700;
}

.about__content {
 grid-column: 2 / span 7;
  grid-row: 1;       
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__title {
  color: var(--black);
  text-transform: uppercase;
 overflow-wrap: break-word;

}

.about__title span {
  color: var(--color-accent);
  text-transform: uppercase;
}

.about__text {
  color:var(--text-secondary-light);

}

/* ── ADVANTAGES ── */

.advantages{
  background-color: var(--black);
}



.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.advantages__card {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.advantages__icon {
  width: 72px;
  height: 72px;
  background: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantages__icon img {
  color: white;
}

.advantages__card-body{
    display: flex;
  flex-direction: column;
  gap: 12px;
}

.advantages__card-text{  
  color:var(--text-secondary);
}

/* ── VIDEO ── */

.video__title {
  color: var(--text-primary-light);
  overflow-wrap: break-word;
}

.video__video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video__video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video__video-label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ── CLIENTS ── */

.clients{
  background-color: var(--black);
}


.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.clients__card--wide {
  grid-column: span 2;
}

.clients__card {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
   padding: 24px;
   gap: 20px;
}

.clients__card-img {
  width: 100%;
  height: 228px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}


.clients__card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clients__card-text{
 color:var(--text-secondary);
}

/* ── CERTIFICATES ── */

.certificates__title {
  color: var(--text-primary-light);
  text-transform: uppercase;
   overflow-wrap: break-word;
}

.certificates__grid--desktop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.certificates__mobile--wrapper{
  display: none; 
}




.certificates__item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.certificates__item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}

.certificates__item:hover img {
  transform: scale(1.03);
}

.cert-modal {
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px 20px;
  cursor: pointer;
}


.cert-modal__img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 60vw;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
}


/* ── CONTACT ── */

.contact{
  background-color: var(--black);
  overflow: hidden;
}

.contact .container {
  position: relative;
}

.contact__card {
  position: relative;
  background: var(--gray-800);
  border-radius: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.contact__header {
  grid-column: 2 / span 10;
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__subtitle {
  color: var(--text-secondary)
}

/* Form */
.contact__form {
  grid-column: 2 / span 10;
  display: flex;
  flex-direction: column;
  gap: 48px; 
}

.form__fields{
   display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__row {
  display: grid;
  gap: 24px;
}

.form__row--2 {
  grid-template-columns: 1fr 1fr;
}

.form__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.form__input {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  transition: box-shadow 0.2s;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--gray-600);
}

.form__input:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.form__input::placeholder {
  color: var(--text-muted);
}

.form__input:focus {
  border-color: var(--color-accent);
}

.contact__submit {
  width: 100%;
}

.form__legal {
  text-align: center;
  font-size: 12px;
  color:var(--text-muted);
  margin-top: -16px;
}

/* Pepper image */
.contact__image {
  position: absolute;
  right: 8px;
  bottom: -120px;
  pointer-events: none;
}


/* FOOTER */

.footer {
  background: var(--gray-900);
  padding: 32px 0;
}

.footer a {
  text-decoration: none;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.footer__number{
  color: var(--text-secondary);
}

.footer__copy {
  color: var(--text-muted);
}


@media (max-width: 1100px) {
  .form__row--3 {
    grid-template-columns: 1fr 1fr;
  }
}


  @media (max-width: 768px) {




/* ── BASE ── */
.section {
  padding: 64px 0;

  gap: 48px;
}

.container {

  padding: 0 16px;


}

.grid-12 {
  display: flex;
  flex-direction: column;
}


/* ── NAV ── */

 header {
    padding: 10px 16px; 
    height: 88px;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    padding: 8px 16px;
    justify-content: space-between;
    position: relative;
  }

  .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    background: rgba(0, 0, 0, 0.9);
    border-radius: 16px;
    padding: 16px;
    gap: 16px;

    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav__links.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
  }

  .nav__cta {
    display: none;
  }


  .nav__burger {
  display: block;
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  color: white;
  background: none;
  border: none;  font-size: 20px;
    cursor: pointer;
}

/* ── HERO ── */
.hero {
height: auto;
padding-bottom: 0px;
 padding-top: 136px;
}  

.hero__inner{
   display: flex;
    flex-direction: column;
}

.hero__title {
text-align: center;
}



.hero__text {
text-align: center;  width: 100%;
}



.hero__btns {
  width: 100%;
  flex-direction: column; 


}

  .hero__btns .btn {
    width: 100%;
  }




/* ── ABOUT ── */

    .about__nav {
    display: none;
  }

  .about__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}



.about__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 1;
  border-radius: 50%;
}

.about__pagination .swiper-pagination-bullet-active {
  background: var(--gray-900);
}


.about__badge {
  display: none;
}
/* ── ADVANTAGES ── */

.advantages__title{
  overflow-wrap: break-word;
}

.advantages__grid {
  grid-template-columns: repeat(1, 1fr);
}

.advantages__card {

  padding: 20px;

  gap: 24px;
}

/* ── CLIENTS ── */

.clients__title{
    overflow-wrap: break-word;
}

.clients__grid {
  grid-template-columns: repeat(1, 1fr);
}

.clients__card--wide {
  grid-column: span 1;
}

.clients__card { 
   padding: 20px;

}

/* ── CERTIFICATES ── */

 .certificates__grid--desktop {
    display: none;
  }

  .certificates__mobile--wrapper{
   display: block;
}

  .certificates__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}



.certificates__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 1;
  border-radius: 50%;
}

.certificates__pagination .swiper-pagination-bullet-active {
  background: var(--gray-900);
}


 .cert-modal {
    align-items: center;
  
  }

  .cert-modal__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
  }

/* ── CONTACT ── */

.contact__image {
display: none;
}

/* Form */
.contact__card{
  background: none;
  width: 100%;
  height: 100%;
  padding-top: 0px;
  padding-bottom: 0px;
}

  .form__row--2,
  .form__row--3 {
    grid-template-columns: 1fr;
  }

/* FOOTER */
.footer {
   padding:  48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}



  }