:root {
  /* 🎨 Основная палитра */
  --brand: #0a84ff;          /* Акцент — кнопки, ссылки */
  --accent: #4ab3ff;         /* Второстепенный акцент, hover */

  /* ⚫ Бэкграунды */
  --bg-page: #111117;        /* Главный фон сайта */
/*  --bg-section: #16171b;      Секции */
  --bg-section: #000000;
  --bg-card: #111117;        /* Карточки, плитки */
  --bg-hover: #25262b;       /* При наведении */
  --blur-bg: rgba(20, 20, 25, 0.4);

  /* 🧱 Границы и тени */
  --border: rgba(255,255,255,0.06);
  --shadow-soft: rgba(0,0,0,0.5);

  /* ⚪ Текст */
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --heading: #ffffff;

  /* 💡 Доп. эффекты */
  --success: #4cd964;
  --error: #ff453a;
}
{box-sizing:border-box;margin:0;padding:0}
body{
  margin:0;
  font-family:"Inter",system-ui,sans-serif;
  background: var(--bg-page);
  /*background-image: linear-gradient(181deg, rgb(0, 0, 0) 7.98%, rgb(255, 255, 255));*/
  color:var(--text);
  overflow-x:hidden;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  /*background: rgba(22, 24, 28, 0.7);*/
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  gap: 40px;
}
header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: -1;
}

.logo {
  font-weight: 800;
  font-size: 24px;
  color: var(--heading);
}

.menu {
  display: flex;
  gap: 30px;
  list-style: none;
  flex: 1;
  justify-content: right;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: 0.3s;
}

.menu a:hover {
  color: var(--heading);
}

.btn-order {
  background: linear-gradient(135deg, #007aff, #4ab3ff);
  color: var(--heading);
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.25);
  white-space: nowrap;
}

.btn-order:hover {
  background: linear-gradient(135deg, #006ae6, #3a9eff);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.35);
}
/* BURGER MENU (hidden on desktop) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 100;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 768px) {
  header {
    padding: 16px 24px;
  }

  .burger {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 22px;
    transition: right 0.3s ease;
  }

  .menu.show {
    right: 0;
  }

  .menu a {
    font-size: 18px;
  }

  .btn-order {
    align-self: stretch;
    text-align: center;
    width: 100%;
  }

  /* Burger animation */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }
}
/* HERO */
.hero {
  position: relative;
  text-align: center;
  padding: 260px 60px 200px;
/*  background: radial-gradient(circle at center, #eaf4ff 0%, #ffffff 80%);*/
  overflow: hidden;
  z-index: 1;
  background-color: black;
  background-image: url("../images/smartphone.png") no-repeat center center / contain
}

.hero h1{
  font-size:54px;
  font-weight:800;
  margin-bottom:20px;
  color: var(--heading);
}
.hero p{
  font-size:20px;
  color: var(--muted)5;
  max-width:800px;
  margin:0 auto;
  line-height:1.6;
}

/* ПЛИТКИ */
.directions {
  padding: 20px 60px;
  background: var(--bg-section);
  backdrop-filter: blur(6px);
/*  margin-top: -10px;*/
  /*border-radius: 20px;*/
  /*margin: 40px 30px;*/
}
.directions h2{
  text-align: center;
  font-size:32px;
  font-weight:800;
  margin-bottom:60px;
  color: var(--bg-heading);
}
.directions-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:50px;
  width:100%;
  margin:0;
  align-items: stretch;
}
.dir-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px 50px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.dir-card:hover{
  transform:translateY(-5px);
  box-shadow:0 12px 25px rgba(0,0,0,0.08);
}
.dir-card h3 {
  font-family: Arial;
  font-size: 2em;
  /*font-weight: 600;*/
  margin-bottom: 1.2em;
  line-height: 1.2;
}
.dir-card.access h3 {
  color: #64c97a;
}

.dir-card.lifts h3 {
  color: #00A7FF;
}

.dir-card.cctv h3 {
  color: #e76a5b;
}
.dir-icon{
  width:70px;height:70px;border-radius:20%;
  margin: 0 10px 30px 0;
}
.dir-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dir-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.dir-card p{
  font-size:1em;
  color: var(--muted);
  line-height:1.6;
  /* width:300px;  <-- лучше убрать */
  /*max-width: 300px;*/
}

/* APP FOCUS */
.app-focus{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:60px;
  /*background: var(--bg-section);*/
  border-radius: 20px;
  margin: 40px 30px;
}
.phone-large {
  justify-self: end;
  width: 500px;
  height: 700px;
  border-radius: 0;
  background: url("../images/smartphone.png") no-repeat center center / contain;
  border: none;
  box-shadow: none;
  margin: 0;
  overflow: visible;
  position: relative;
}
.phone-large::before {
  content: none; /* отключаем декоративную верхнюю панель */
}
.phone-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
}

/* Мягкий стиль */
.point {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);

  border: 1px solid rgba(255,255,255,0.08);      /* очень мягкая рамка */
  background: rgba(255,255,255,0.03);            /* почти незаметная заливка */
  border-radius: 12px;

  backdrop-filter: blur(3px);                    /* слабый blur */
  box-shadow: 0 1px 4px rgba(0,0,0,0.20);         /* мягкая маленькая тень */

  transition: all 0.2s ease;
  cursor: pointer;
}

/* ховер — чуть-чуть заметнее, но не ярко */
.point:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

/* активный пункт — тоже мягкий, не яркий */
.point.active {
  background: rgba(0,122,255,0.12);
  border-color: rgba(0,122,255,0.4);
  box-shadow: 0 2px 6px rgba(0,122,255,0.25);
}

/* INTEGRATIONS */
.integration {
  background: var(--bg-section);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 40px 30px;
  padding: 80px 0;
  overflow: hidden;
  position: relative;
  transition: all 0.6s ease;
}

/* Контент */
.integration-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 0 200px;
  position: relative;
  z-index: 1;
  min-height: 600px; /* фиксируем невысокую секцию */
}

/* Текст */
.integration-text {
  flex: 1;
  max-width: 600px;
  color: var(--bg-text);
  font-size: 22px;
  line-height: 1.6;
}
.integration-text h3 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--bg-heading);
}
/*Integration button*/
.integration-more {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #e5e5e5;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all .25s ease;
  backdrop-filter: blur(4px);
}

.integration-more:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
/* Смартфон */
.integration-image {
  flex: 0 0 720px;
  width: 720px;
  height: 1440px;              /* крупный размер */
  background: url("../images/smartphone.png") no-repeat top center / contain;
  position: absolute;           /* ⬅️ теперь позиционируется относительно секции */
  right: 100px;
  top: 0px;                  /* ⬅️ поднимаем вверх — видна верхушка */
  transform: translateY(80px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  z-index: 0;
}

/* Активация */
.integration.visible .integration-image {
  transform: translateY(0);
  opacity: 1;
}

/* 🔁 Шахматность */
.integrations .integration:nth-child(odd) .integration-content {
  flex-direction: row-reverse; /* первая секция — смартфон справа */
}
.integrations .integration:nth-child(even) .integration-content {
  flex-direction: row; /* следующая — смартфон слева */
}

/* Hover эффект */
.integration:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Адаптив */
@media (max-width: 900px) {
  .integration {
    padding: 50px 0;
    margin: 20px 15px;
  }

  .integration-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 30px;
  }

  .integration-image {
    position: static;
    width: 260px;
    height: 520px;
    transform: none;
    opacity: 1;
    margin-top: 30px;
  }
}

/* Убираем отступ между header и первой секцией */
.hero {
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
}

/* FOOTER */
footer {
  /*background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(245,249,255,0.95) 100%);*/
  backdrop-filter: blur(10px);
 /* border-top: 1px solid rgba(0,0,0,0.08);*/
  color: #333;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  /*box-shadow: 0 -2px 8px rgba(0,0,0,0.05);*/
}
.footer-block h4{
  font-size:18px;
  margin-bottom:20px;
  color: var(--text);
  font-weight:700;
}
.footer-block p{
  font-size:15px;
  line-height:1.8;
  color: var(--muted);
}
.footer-block strong{
  color:#007aff;
}
.footer-bottom{
  grid-column:1 / -1;
  text-align:center;
  margin-top:60px;
  font-size:14px;
  color: var(--text);
  border-top:1px solid rgba(0,0,0,0.05);
  padding-top:20px;
}

/* Responsive */
@media(max-width:900px){
  header{padding:20px 30px;}
  .hero{padding:180px 30px 160px;}
  .hero h1{font-size:38px;}
  .directions{padding:80px 20px;}
  .dir-card{padding:30px 20px;}

  /* Integration responsive */
  .integration{padding:80px 30px;}
  .integration-content{
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .integration-image{
    flex: 0 0 260px;
    width: 260px;
    height: 260px;
    margin: 0 auto 10px;
  }
  .integration-text{
    max-width: 100%;
    text-align: center;
  }

  footer{padding:60px 30px;}
}