html { scroll-behavior: smooth; }

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

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;

  line-height: 1.4;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  background: rgba(243,245,247,.92);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}



.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.logo{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
@media (min-width: 900px){
  .logo{ font-size: 20px; }
}

.nav {
  display: none;
  font-size: 16px;
  font-weight: 700;
  gap: 14px;
  margin-left: auto;
  color: #333;
}

.header__actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.btn--ghost {
  background: transparent;
  color: #111;
}

/* Hero */
.hero__grid{
  display: grid;
  gap: 18px;
}

@media (min-width: 900px){
  .hero__grid{
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
  }
}

.hero { padding: 140px 0; }

.h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.lead { margin: 0 0 16px; color: #333; }

.h1{ font-weight: 780; }
@media (min-width: 900px){
  .h1{ font-size: 45px; }
}

.lead{
  max-width: 560px;
  color:#2b2b2b;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.chips li {
  padding: 8px 10px;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  color: #333;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.hero__media {
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.hero__placeholder { color: #666; }

/* Desktop */
@media (min-width: 900px) {
  .nav { display: flex; }
  .header__actions { margin-left: 0; }
  .header__inner { justify-content: space-between; }

  .hero__grid {
    grid-template-columns: 1.1fr .9fr;
  }

  .hero__media { min-height: 360px; }
}

/* About */
.about{
  display: grid;
  gap: 16px;
}

.about__text .text{
  font-size: 18px;
  line-height: 1.7;
  color:#111;
  max-width: 700px;
}

.text--strong{
  font-weight: 600;
  margin: 18px 0;
}

.about__facts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fact{
  padding: 14px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
}

.fact b{
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.fact span{
  color: #333;
  font-size: 15px;
  line-height: 1.5;
}

/* Desktop */
@media (min-width: 900px){
  .about{
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
  }
}
.h2{
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 20px;
  margin-bottom:30px;

}

.section {
  padding: 80px 0;
}


/* Services */
.services {
  display: grid;
  gap: 12px;
}

.service-card {
  padding: 16px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

#services .text{
  font-size:18px;
  line-height:1.65;
}

.service-card h3{
  font-size:17px;
  margin-bottom:10px;
}

.service-card p{
  font-size:15px;
  line-height:1.6;
}

/* PROCESS */
.process--vertical {
  display: grid;
  gap: 150px;
  justify-content: center;
  margin-bottom: 40px;
}


/* мобильные */
.process--vertical {
  grid-template-columns: 1fr;
  justify-items: center;
}

/* планшет */
@media (min-width: 700px) {
  .process--vertical {
    grid-template-columns: repeat(2, minmax(220px, 280px));
  }
}

/* десктоп */
@media (min-width: 900px) {
  .process--vertical {
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: start;
  }
}

.video--vertical {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video--vertical video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Портфолио */
.case{
  display: grid;
  gap: 16px;
}

.case__title{
  margin: 0 0 8px;
  font-size: 18px;
}

.case__facts{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #333;
}

.case__facts b{
  color: #111;
}

.case__gallery{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.case__gallery img{
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}

/* ===== ПОРТФОЛИО — шрифты ===== */
#portfolio .h2{
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

#portfolio .text{
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  max-width: 520px;
}

#portfolio .case__facts{
  font-size: 18px;
  line-height: 1.7;
}

#portfolio .case__facts b{
  font-weight: 600;
}

/* Desktop */
@media (min-width: 900px){
  .case{
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .case__gallery{
    grid-template-columns: repeat(3, 1fr);
  }

  .case__gallery img{
    height: 180px;
  }
}


.case__gallery img{
  transition: transform .2s ease, box-shadow .2s ease;
}

.case__gallery img:hover{
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
/* Trust + Steps  Почему нам доверяют*/
.trust-grid{
  display: grid;
  gap: 20px;
  margin-top: 12px;
}

.trust-card{
  padding: 16px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
}

.trust-card h3{
  margin: 0 0 10px;
  font-size: 18px;
}

.trust-list{
  margin: 0;
  padding-left: 18px;
  color: #333;
  display: grid;
  gap: 8px;
}

.steps-list{
  margin: 0;
  padding-left: 18px;
  color: #333;
  display: grid;
  gap: 10px;
}

.steps-list li b{
  display: block;
  color: #111;
  margin-bottom: 4px;
}

.steps-list li span{
  display: block;
  font-size: 14px;
  color: #333;
}

/* Desktop */
@media (min-width: 900px){
  .trust-grid{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
section { scroll-margin-top: 80px; }
/* Contacts */
.contacts-section{
  text-align: center;
}

.contacts-wrapper{
  display: flex;
  justify-content: center;
}

.contacts-content{
  max-width: 500px;
}

.contacts-subtitle{
  color: #111;
  margin-bottom: 10px;
}

.contacts-info{
  margin-bottom: 14px;
  color: #111;
  display: grid;
  gap: 4px;
}

.contacts-info a{
  color: #111;
  font-weight: 500;
}

.btn-large{
  padding: 12px 22px;
  font-size: 15px;
}

#contacts .h2{
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.contacts-subtitle{
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.contacts-info{
  font-size: 18px;
  line-height: 1.6;
  gap: 6px;
  margin-bottom: 10px;
}

/* Все сетки/контент блоков начинаются одинаково */
.about,
.services,
.process,
.case,
.trust-grid {
  margin-top: 0;
}

/* Сетки — одинаковые отступы и старт */
.case__gallery { margin-top: 18px; }


.trust-list{
  list-style: none;
  padding: 0;
}
#trust .trust-list{
  font-size: 18px;
  line-height: 1.77;
  gap: 10px;
}

#trust .h2{
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 30px;
}

.trust-list li{
  position: relative;
  padding-left: 24px;
}

.trust-list li:before{
  content: "✓";
  position: absolute;
  left: 0;
  color: #111;
  font-weight: bold;
}
/* Trust layout with image */
.trust-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.trust-image {
  max-height: 420px;
  overflow: hidden;
  border-radius: 16px;
}

.trust-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Desktop */
@media (min-width: 900px) {
  .trust-layout {
    grid-template-columns: 1fr 1fr;
  }
}
#trust .h2{ margin-bottom: 16px; }

@media (min-width: 900px){
  .case{ align-items: start; }
}
@media (min-width: 900px){
  .trust-layout{ align-items: start; }
}

.section-split{
  display: grid;
  gap: 20px;
}

.section-split__left .text{ margin: 0; }

@media (min-width: 900px){
  .section-split{
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
}

.text{
  margin: 0 0 12px;
  color: #111;
}

#contacts.section {
  padding: 60px 0;
}
body {
  background: #f9fafb;
}


.service-card,
.fact,
.trust-card,
.case__gallery img {
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.service-card,
.fact,
.trust-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover,
.fact:hover,
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Плашки белые серые */
.section{
  background: transparent;
}

.section--muted{
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.hero__media{ position: relative; }
.hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.00));
  pointer-events:none;
}
#services .service-card{
  background: #f6f7f9;      /* мягкий светло-серый */
  border: 1px solid rgba(0,0,0,0.05);
}
.service-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}

.marker{
  width:10px;
  height:10px;
  border-radius:2px;
  background:#111;
  opacity:.6;
}

.case__gallery img{ height: 210px; }
@media (min-width: 900px){
  .case__gallery img{ height: 230px; }
}
.case__gallery{ gap: 14px; }

.h1, .h2{ letter-spacing: -0.02em; }
.lead{ font-size: 18px; line-height: 1.65; }

/* Ticker */
.ticker{
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  overflow: hidden;
}

.ticker__track{
  display: flex;
  width: max-content;
  gap: 26px;
  padding: 12px 0;
  will-change: transform;
  animation: tickerMove var(--tickerDur, 26s) linear infinite;
}

.ticker__row{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 20px;
}

.ticker__item{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #111;
  white-space: nowrap;
  opacity: 0.95;
}

.ticker__dot{
  font-size: 12px;
  opacity: 0.35;
  user-select: none;
}

/* пауза при наведении (на десктопе) */
@media (hover:hover){
  .ticker:hover .ticker__track{ animation-play-state: paused; }
}

/* уважение к reduce motion */
@media (prefers-reduced-motion: reduce){
  .ticker__track{ animation: none; }
}

@keyframes tickerMove{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

.ticker__item{
  font-size: 13px;
  font-weight: 700;
}
.hero__proof{
  margin: 30px 0 16px;
  font-size: 15px;
  color:#333;
  opacity:.9;

}

/* About with video */
.about__facts-row{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill{
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.pill b{
  display:block;
  font-size: 15px;
  margin-bottom: 4px;
}

.pill span{
  display:block;
  font-size: 14px;
  color:#333;
  line-height: 1.5;
}

.about__media{
  display: grid;
  align-content: start;
  justify-items: end;
}

.about__video{
  position: relative;
  width: 100%;
  max-width: 400px;          /* <-- уменьшаем реально */
  aspect-ratio: 3 / 4;       /* портретнее (влезает компактнее) */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: #000;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

@media (max-width: 899px){
  .about__media{ justify-items: stretch; }
  .about__video{
    max-width: 100%;
    aspect-ratio: 16 / 9;    /* на мобиле как “видео-блок” */
  }
}

.about__video-el{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__video-el{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* кнопка звука */
.about__sound{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

/* Desktop */
@media (min-width: 900px){
  .about__facts-row{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about__video{ aspect-ratio: 4 / 5; } /* “солиднее” вертикальнее, как портрет */
}

/* Portfolio grid 3x2 centered */
.portfolio-block{
  display: grid;
  gap: 18px;
}

.portfolio-text{
  max-width: 760px;
}

.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  justify-content: center;
}

.portfolio-grid img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
   box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-grid img:hover{
  transform: scale(1.02);
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

/* Tablet+ */
@media (min-width: 700px){
  .portfolio-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}