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

:root{
  --bg: #0E0C10;
  --text: rgba(255,255,255,0.94);
  --muted: rgba(255,255,255,0.68);
  --line: rgba(255,255,255,0.08);
  --accent: #6E23BA;
  --accent-2: #8b3dff;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --shadow: 0 18px 42px rgba(0,0,0,0.28);
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

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

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

main{
  overflow: hidden;
}

/* ================================= */
/* HERO                              */
/* ================================= */

.hero{
  position: relative;
  min-height: 100vh;
  height: 100svh;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.95) 0%,
      rgba(0,0,0,0.60) 46%,
      rgba(0,0,0,0.18) 78%,
      rgba(0,0,0,0.06) 100%
    ),
    url("../img/background-main.webp") center center / cover no-repeat;
  display: flex;
  align-items: stretch;
}

.hero::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to top, rgba(14,12,16,1), rgba(14,12,16,0));
  pointer-events: none;
}

.hero_container{
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 170px 80px 42px 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: 'Rubik Mono One', monospace;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.34;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.88);
}

.hero_container h1{
  max-width: 1280px;
}

.case-more {
  position: relative;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

/* последовательная анимация */
.case-card:nth-child(1) .case-more {
  animation: moreGlow 3s infinite;
}

.case-card:nth-child(2) .case-more {
  animation: moreGlow 3s infinite 1s;
}

.case-card:nth-child(3) .case-more {
  animation: moreGlow 3s infinite 2s;
}

@keyframes moreGlow {

  0% {
    color: #ffffff;
    text-shadow: 0 0 0 rgba(162,89,255,0);
  }

  20% {
    color: #a259ff;
    text-shadow:
      0 0 8px rgba(162,89,255,0.8),
      0 0 16px rgba(162,89,255,0.4);
  }

  40% {
    color: #ffffff;
    text-shadow: 0 0 0 rgba(162,89,255,0);
  }

  100% {
    color: #ffffff;
  }

}

/* линия */
.case-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0%;
  height: 2px;

  background: linear-gradient(90deg,#a259ff,#7a3cff);

  transition: width .3s ease;
}

/* hover */
.case-more:hover {

  animation-play-state: paused;
  color: #a259ff;

}

.case-more:hover::after {

  width: 100%;

}

.text-faded{
  color: rgba(255,255,255,0.42);
}

.hl{
  color: #fff;
  padding: 0.05em 0.24em;
  border-radius: 6px;
}

.hl--brown{
  background: linear-gradient(0deg, rgba(179,87,33,0.92), rgba(179,87,33,0.92));
}

.hl--purple{
  background: linear-gradient(0deg, rgba(122,69,255,0.92), rgba(122,69,255,0.92));
}

.hl--green{
  background: linear-gradient(0deg, rgba(57,176,47,0.92), rgba(57,176,47,0.92));
}

.hero_container .btn{
  margin-top: 42px;
  width: fit-content;
  min-width: 320px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(110,35,186,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero_container .btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(110,35,186,0.42);
}

.hero_container .social{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: 8px;
}

.hero_container .social li{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero_container .social a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  opacity: 0.96;
  transition: transform .22s ease, opacity .22s ease;
}

.hero_container .social a:hover{
  transform: translateY(-2px);
  opacity: 1;
}

.hero_container .social img{
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  object-fit: contain;
}

/* ================================= */
/* GENERIC                           */
/* ================================= */

.home-shell{
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
}

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-kicker{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.54);
  margin-bottom: 10px;
}

.section-head h2{
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
}

.section-link{
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  opacity: 0.82;
  transition: opacity .22s ease, transform .22s ease;
}

.section-link:hover{
  opacity: 1;
  transform: translateX(2px);
}

.section-icon{
  width: 48px;
  height: 39px;
  object-fit: contain;
}

/* ================================= */
/* CASE STUDIES                      */
/* ================================= */

.case-studies-home{
  padding: 88px 0 34px;
}

.cases-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.case-card{
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(110,35,186,0.06), rgba(110,35,186,0));
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card:hover{
  transform: translateY(-4px);
  border-color: rgba(143,61,255,0.24);
}

.case-card__image{
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.case-card__image img{
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .35s ease;
}

.case-card:hover .case-card__image img{
  transform: scale(1.04);
}

.case-card__content{
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 172px;
}

.case-card__content h3{
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  min-height: 2.2em;
}

.case-card__content p{
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1em;
}

.case-card__content a{
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  opacity: 0.86;
}


/* ================================= */
/* INDUSTRIES                        */
/* ================================= */

.industries-home{
  padding: 42px 0 96px;
}

.industries-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.industry-card{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(110,35,186,0.06), rgba(110,35,186,0));
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}

.industry-card:hover{
  transform: translateY(-4px);
  border-color: rgba(143,61,255,0.24);
}

.industry-card__image{
  position: relative;
  overflow: hidden;
}

.industry-card__image img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .35s ease;
}

.industry-card:hover .industry-card__image img{
  transform: scale(1.04);
}

.industry-card__overlay{
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.05));
}

.industry-card__overlay h3{
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}

/* ================================= */
/* RESPONSIVE                        */
/* ================================= */

@media (max-width: 1600px){
  .hero_container .btn{
    min-width: 260px;
    height: 50px;
  }
}

@media (min-width: 1600px){

  .hero_container .btn{
    min-width: 10px;
    height: 12px;
  }
  .hero_container{
    padding-left: 150px;
    padding-right: 80px;
  }

  .hero_container h1{
    max-width: 1280px;
  }
}

@media (max-width: 1440px){
  .hero_container{
    padding-left: 84px;
    padding-right: 48px;
    padding-top: 160px;
  }

  .home-shell{
    width: min(1240px, calc(100% - 48px));
  }

  .case-card__image img{
    height: 235px;
  }

  .case-card__content{
    min-height: 176px;
  }

  .industry-card__image img{
    height: 330px;
  }
}
@media (max-width: 1024px){
  .hero{
    min-height: 100vh;
    height: 100svh;
  }


  .hero_container{
    padding-top: 132px;
    padding-left: 56px;
    padding-right: 28px;
    font-size: 18px;
    line-height: 1.32;
  }

  .hero_container h1{
    max-width: 860px;
  }

  .hero_container .btn{
    min-width: 250px;
    font-size: 18px;
  }

  .hero_container .social{
    gap: 12px;
    padding-bottom: 4px;
  }

  .hero_container .social a,
  .hero_container .social img{
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  .home-shell{
    width: calc(100% - 32px);
  }

  /* CASES */
  .case-studies-home{
    padding-top: 64px;
  }

  .section-head{
    margin-bottom: 22px;
  }

  .case-card{
    border-radius: 20px;
  }

  /* делаем 3 в ряд, но компактнее */
  .cases-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }

  .cases-grid .case-card:last-child{
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
    width: 100%;
  }

  .case-card__image img{
    height: 180px;
  }

  .case-card__content{
    min-height: 145px;
    padding: 14px;
  }

  .case-card__content h3{
    font-size: 19px;
    min-height: 2.1em;
  }

  .case-card__content p{
    font-size: 13px;
    line-height: 1.45;
    min-height: 2.8em;
    -webkit-line-clamp: 2;
  }

  .case-card__content a{
    font-size: 14px;
  }

  /* INDUSTRIES */
  .industries-home{
    padding-top: 36px;
    padding-bottom: 72px;
  }

  .industries-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .industry-card{
    border-radius: 20px;
  }

  .industry-card__image{
    position: relative;
    overflow: hidden;
  }

  .industry-card__image img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
  }

  .industry-card__overlay{
    padding: 14px;
  }

  .industry-card__overlay h3{
    font-size: 22px;
  }
}

/* ================================= */
/* HOME RESPONSIVE — FROM 768 DOWN   */
/* ================================= */

@media (max-width: 768px){
  .hero{
    min-height: 100vh;
    height: 100svh;
  }

  .hero_container{
    padding-top: 118px;
    padding-left: 28px;
    padding-right: 22px;
    font-size: 15px;
    line-height: 1.36;
  }

  .hero_container h1{
    max-width: 100%;
  }

  .hero_container .btn{
    margin-top: 28px;
    width: 200px;
    height: 45px;
    font-size: 16px;
    border-radius: 12px;
  }

  .hero_container .social{
    gap: 11px;
    padding-top: 18px;
  }

  .hero_container .social a,
  .hero_container .social img{
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }

  .hl{
    border-radius: 5px;
    padding: 0.03em 0.18em;
  }

  .home-shell{
    width: calc(100% - 24px);
  }

  .section-head{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-head h2{
    font-size: 28px;
    line-height: 1.1;
    max-width: 82%;
  }

  .section-kicker{
    font-size: 12px;
    margin-bottom: 8px;
  }

  .section-link{
    font-size: 14px;
    white-space: nowrap;
  }

  .section-icon{
    width: 26px;
    height: 22px;
    min-width: 26px;
    min-height: 22px;
    flex-shrink: 0;
    margin-top: 6px;
  }

  /* CASES */
  .case-studies-home{
    padding-top: 52px;
    padding-bottom: 18px;
  }

  .cases-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cases-grid .case-card:last-child{
    grid-column: auto;
    max-width: none;
  }

  .case-card{
    border-radius: 18px;
  }

  .case-card__image img{
    height: 235px;
  }

  .case-card__content{
    min-height: auto;
    padding: 16px;
  }

  .case-card__content h3{
    font-size: 21px;
    min-height: auto;
  }

  .case-card__content p{
    font-size: 14px;
    min-height: auto;
    -webkit-line-clamp: 3;
    line-height: 1.5;
  }

  .case-card__content a{
    font-size: 14px;
  }

  /* INDUSTRIES */
  .industries-home{
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .industries-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .industry-card{
    border-radius: 18px;
  }

  .industry-card__image img{
    height: 250px;
  }

  .industry-card__overlay{
    padding: 12px 10px 10px;
  }

  .industry-card__overlay h3{
    font-size: 18px;
    line-height: 1.05;
  }
}

/* ================================= */
/* FIX: industries from 560 and down */
/* ================================= */
@media (max-width: 560px){

  .hero_container .social{
    margin-top: 210px;
  }


  .industries-home{
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .industries-home .home-shell{
    width: calc(100% - 20px);
  }

  .industries-home .section-head{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }

  .industries-home .section-kicker{
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .industries-home .section-head h2{
    font-size: 18px;
    line-height: 1.08;
    max-width: 100%;
  }

  .industries-home .section-icon{
    width: 22px;
    height: 18px;
    min-width: 22px;
    min-height: 18px;
    margin-top: 0;
  }

  .industries-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .industry-card{
    border-radius: 16px;
  }

  .industry-card__image img{
    width: 100%;
    height: 165px;
    object-fit: cover;
    border-radius: 16px;
  }

  .industry-card__overlay{
    padding: 12px 10px 10px;
  }

  .industry-card__overlay h3{
    font-size: 18px;
    line-height: 1;
  }
}

@media (max-width: 390px){

  .industries-home .home-shell{
    width: calc(100% - 16px);
  }

  .industries-home .section-head h2{
    font-size: 17px;
  }

  .industries-home .section-icon{
    width: 20px;
    height: 16px;
    min-width: 20px;
    min-height: 16px;
  }

  .industry-card{
    border-radius: 14px;
  }

  .industry-card__image img{
    height: 150px;
    border-radius: 14px;
  }

  .industry-card__overlay{
    padding: 10px 10px 9px;
  }

  .industry-card__overlay h3{
    font-size: 17px;
  }
}
