@font-face {
  font-family: 'MTS Wide';
  src: url('/fronts/MTSWide-Bold-XQ34CV62.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

.btn.primary, .cta, .btn.outline {
  font-family: 'MTS Wide', -apple-system, sans-serif;
  font-weight: 500; /* Не 600! */
  letter-spacing: 0.025em; /* Ключевое для MTS Wide */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
} 

html {
  scrollbar-gutter: stable;
}

body.lock-scroll {
  position: fixed;
  width: 100%;
}

:root {
  --bg-deep: #05090e;
  --accent: #3db4ff;
  --muted: #f0f2f4;
  --card-bg: #f2f3f4;
  --works-bg: #F1F1F1;
  --mts-wide: 'MTS Wide', sans-serif;
  --font-secondary: 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: #fff;
  background-color: var(--bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
  border: 2px red;
}

/* Обёртка только для header + hero */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: flow-root;
  height: 100vh;
  /* padding: 10px 0; */
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    radial-gradient(ellipse at 5% 8%, #75D2F0 12%, transparent 40%),
    radial-gradient(ellipse 60% 50% at 20% 40%, #2481EB, transparent 70%),
    radial-gradient(circle at 80% 50%, rgba(5, 9, 14, 0) 0%, rgba(5, 9, 14, 0.8) 100%),

    radial-gradient(ellipse 600px 800px at 80% 55%, #75D2F0 10%, transparent 50%),
    radial-gradient(circle 180px at 92% 45%, #2481EB 15%, transparent 60%);

  background-size: 100% 100%;
  filter: blur(90px);
  transform: scale(1.1);
}

.topbar-holder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1400;
  display: block;
  pointer-events: auto;
}

/* Fixed header wrapper — минимально вмешиваемся, не трогаем внутренний flex */
.topbar--fixed {
  position: fixed !important;
  top: 0px; /* как в оригинальном дизайне: если у тебя margin был 10px, оставляем отступ */
  left: 50%;
  transform: translateX(-50%);
  width: 98%;
  z-index: 9999; /* достаточно высоко, но не максимально, чтобы не ломать модалки */
  pointer-events: auto;
  /* Сохраняем остальную визуалку через существующие классы, не перезаписываем паддинги/границы */
}

/* spacer: невидимый блок, удерживает место в потоке */
.topbar-spacer {
  width: 100%;
  height: 0px; /* JS задаст реальную высоту */
  display: block;
}

/* адаптив */
@media (max-width: 1100px) {
  .topbar--fixed {
    top: 0px;
    width: 100%;
    padding-left: 18px; /* если у тебя были другие паддинги на мобилке, подгони */
    padding-right: 18px;
    border-radius: 12px;
  }
}

@media (min-width: 0) {
  .topbar { z-index: 1401; position: relative; } /* сохраняем внутри holder */
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  font-family: var(--font-secondary);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  margin-top: 10px;
}

.logo {
  font-weight: 800;
  font-size: 28px;
  line-height: 0.9;
}

.arrow-icon {
  width: 12px;
}

.logo img {
  width: 100px;
  height: auto;
}

.logo span {
  font-size: 12px;
  display: block;
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  margin: auto;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 18px;
  opacity: 0.95;
  transition: opacity 0.3s;
}

/* Стили для выпадающего меню */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px); /* строго под текстом */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 250px;
  border-radius: 15px;
  padding: 10px 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  transform-origin: top left;
  opacity: 0;
  pointer-events: none; /* отключён, пока не открыт */
  transition: transform .22s ease, opacity .22s ease;
  z-index: 9999; /* дополнительная гарантия */
}

.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateX(-30%) translateY(20px);
   pointer-events: auto;
}

.dropdown.open .dropdown-content {
  transform: translateX(-10%) translateY(0);
}

.dropdown-content a {
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  display: block;
  font-size: 15px;
  transition: all 0.2s ease;
  margin: 0;
  opacity: 0.8;
  font-family: var(--font-secondary);
  font-weight: 500;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
  padding-left: 30px;
  margin-top: 0;
  text-shadow: 0 0 10px rgba(61, 180, 255, 0.5);
}

/* Адаптивность для выпадающего меню */
@media (max-width: 1000px) {
  .dropdown-content {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 90%;
    max-width: 300px;
    margin-top: 15px;
  }

  .dropdown-content::before {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 14px;
  opacity: 0.95;
}

.contact-info p {
  margin: 0;
}

.contact-info .info-time {
    color: #CDCDCD;
}

.cta {
  background: #75D2F0;
  padding: 16px 25px;
  border-radius: 24px;
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 24px;
}

.cta:hover {
  background: #5eb9d6;
  box-shadow: 0 4px 20px rgba(117, 210, 240, 0.4);
  transform: translateY(-2px);
}

.hero {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 60px 80px;
}

.hero-left {
  flex: 1;
}

.hero-left h1 {
  font-family: var(--mts-wide);
  font-size: 96px;
  line-height: 0.95;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -2px;
  text-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.cnpu-color {
  color: #75D2F0
}
.lead {
  font-family: var(--font-secondary);
  font-weight: 500;
  max-width: 550px;
  opacity: 0.95;
  font-size: 20px;
  line-height: 1.5;
}

.hero-right {
  line-height: 0;
}

.hero-right img {
  position: relative;
  width: 520px;
  border-radius: 24px;
}

.btn {
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  font-family: var(--font-secondary);
  font-weight: 500;
  background: linear-gradient(90deg, #5fbfff, #2c99d6);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 0px 50px #2481EB;
}

.btn.primary:hover {
  background: linear-gradient(90deg, #4da8d9, #1f7eb0);
  box-shadow: 0 5px 20px rgba(37, 129, 235, 0.4);
  transform: translateY(-2px);
}

.btn.outline {
  font-family: var(--font-secondary);
  font-weight: 500;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn.outline:hover {
  background: rgba(37, 32, 32, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 70%;
}

.section {
  padding: 60px 80px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.about {
  padding: 60px 20px;
  background: #fff;
}

.about_container {
  margin: 0 auto;
  max-width: 1400px;
}

.about-grid {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 20px;              /* чтобы на очень больших экранах не было слишком больших пустых полей */
  grid-template-columns: minmax(320px, 2.5fr) minmax(220px, 1fr);
  grid-template-rows: auto auto;
  align-items: start;           /* важное: элементы не будут растягиваться по вертикали */
}

.about-bg-card {
  background: #f1f1f1;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  min-height: 100%;
}

.about-image img {
  transition: transform 0.5s ease; /* плавное движение */
  transform: translateY(0); /* изначально в обычном положении */
}

/* при наведении поднимаем картинку */
.about-image:hover img {
  transform: translateY(-5px); /* поднимаем на 10px */
}

.about-bg-overlay {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
}

.about-bg-overlay:hover {
  transform: translateY(-5px);
}

.about-bg-overlay p {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 18px;
  color: #222;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-bg-card {
  background: #f1f1f1;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.about-bg-overlay {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.about-bg-overlay p {
  color: #222;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-text-card {
  background: #f3f3f3;
  padding: 25px;
  border-radius: 20px;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: #383838;
  transition: transform 0.3s ease;
}

.about-text-card:hover {
  transform: translateY(-5px);
}

.mini-about-p {
  margin-top: 50px;
  width: 55%;
}
.about-decor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 600px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .about-decor {
    width: 120px;
    right: -20px;
    bottom: -20px;
  }
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 2.5fr 1fr !important;
    grid-template-rows: 2.5fr 1fr;
    min-height: 420px; /* ВАЖНО */
  }

  .about-bg-card {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .about-image {
    grid-column: 2;
    grid-row: 1;
  }

  .about-text-card {
    grid-column: 2;
    grid-row: 2;
  }
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card.light {
  background: #F0F0F0;
  padding: 30px;
  border: 1px solid #eee;
}

.card.light p {
  font-family: var(--font-secondary);
  font-weight: 520;
  font-style: 20px;
  margin-bottom: 15px;
  color: #444;
  line-height: 1.6;
}

.card.light p:last-child {
  margin-bottom: 0;
}

.card.image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Заполняет весь блок, обрезая лишнее */
  border-radius: 8px;
}

.card.image {
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 0; /* Убираем паддинг, чтобы картинка занимала всё */
  overflow: hidden; /* Скрываем выходящие за границы части */
}

.works h2,
.about h2,
.contact h2,
.ai-content h2,
.advantages h2,
.contacts-section h2 {
  font-family: var(--mts-wide);
  font-weight: bold;
  font-size: 60px;
  color: #497CB1;
  margin: 0 0 30px 0px;
}

/* Секция "Примеры работ" */
.works {
  background-color: white;
  position: relative;
  padding: 60px 20px;
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.slider-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2); /* Темная граница */
  background: rgba(255, 255, 255, 0.9); /* Белый фон */
  color: #2d3748; /* Темный цвет иконки */
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #497CB1;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.slider-btn:hover::before {
  opacity: 1;
}

.slider-btn:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(61, 180, 255, 0.3);
  color: white; /* Белый текст при наведении */
}

.slider-btn span {
  position: relative;
  z-index: 2;
}

.slider-btn.prev span {
  margin-right: -2px;
}

.slider-btn.next span {
  margin-left: -2px;
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-btn:disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.slider-btn:disabled::before {
  opacity: 0;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.work-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: calc(33.333% - 14px);
  background: #ffffff; /* Белый фон карточек */
  color: #333333; /* Темный текст */
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Серая граница */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}

.work-card:hover::before {
  opacity: 1;
}

.work-card img {
  width: 100%;
  height: auto; /* пусть картинка тянется пропорционально */
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: block; /* убираем пробелы снизу */
}

.work-card h3 {
  text-align: center;
  margin: 25px 0px 5px 0px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #2d3748; /* Темно-серый */
  min-height: 50px;
  width: 80%;
}

.work-card p {
  opacity: 0.7;
  font-size: 16px;
  line-height: 1.5;
  /* margin: 0 0 10px 0; */
  padding: 0px 30px;
  min-height: 72px;
  text-align: center;
  width: 100%;
  color: #4a5568;
}

.city {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto; 
  gap: 8px;
  color: #718096;
  font-weight: 600;
  font-size: 14px;
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, #5fbfff, #2c99d6);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.ai_block {
  display: flex;
  flex-direction: row;
}

/* Секция нейросети */
/* Секция нейросети с градиентом как в hero */
.ai-section {
  position: relative;
  background: transparent;
  overflow: hidden;
}

/* Контент поверх градиента */
.ai-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background-image: url('/images/Group 385 (2).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  min-height: 600px; /* Минимальная высота */
}

.ai-content {
  position: relative;
  z-index: 3;
  min-height: 500px;
  margin-left: 50px;
  display: flex;
  flex-direction: column;
}

.ai-content h2 {
  color: #e3edf4;
}

.ai_question {
  font-family: var(--font-secondary);
  font-size: 25px;
  font-weight: 700;
}

.ai-description {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
}

.button_content {
  font-family: var(--font-secondary);
  display: grid;
  grid-template-columns: 0.75fr auto;
  grid-template-rows: auto 1fr; /* Автовысота для контента, кнопка растягивается */
  align-items: start;
  gap: 40px;
  position: relative;
}

/* Стили для шагов */
.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 80%;
  font-family: var(--font-secondary);
}

.ai-step {
  margin: 20px;
}
/* .ai-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
} */

/* .step-number {
  background: linear-gradient(90deg, #5fbfff, #2c99d6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
} */

.step-content h3 {
  font-size: 20px;
  margin: 0 0 10px 0;
  color: #fff;
  font-weight: 600;
}

.step-content p {
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.ai-btn {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(36, 129, 235, 0.4);

  align-self: flex-end; /* Выравнивает по правому краю */
  margin-bottom: 30px;
  margin-right: 0;
  width: auto; /* Ширина по содержимому */
}

.ai-note {
  margin-top: 30px; /* Отступ сверху */
  text-align: left; /* Можно слева для удобства чтения */
  font-size: 14px;
  color: #b7b5b5;
}

.ai-note hr {
  border: none;
  border-top: 1px solid #b7b5b5; /* светлая серая линия */
  margin-bottom: 10px;
}

.ai-note p {
  margin: 0;
  line-height: 1.5;
}

/* Визуальная часть с градиентом и картинкой */
.ai-visual {
  position: relative;
  height: 100%; /* Убираем 500px - теперь растягивается на всю высоту .ai-container */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Обрезаем всё лишнее */
}

.ai-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3; /* Поверх картинки */
  background:
    linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.2) 70%, transparent 100%),
    radial-gradient(ellipse at 20% 20%, rgba(0,0,0,0.6) 0%, transparent 100%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.5) 0%, transparent 60%);
  pointer-events: none; /* Не мешает кликам */
}

.ai-visual img {
  object-fit: cover; /* Заполняет весь контейнер без искажений */
  object-position: center;
}

.advantages {
  padding: 60px 20px;
  background: #ffffff;
}

.advantages-title {
  font-family: 'MTS Wide', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  color: #497CB1;
  margin-bottom: 40px;
}

.adv_container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  margin: 0 auto;
}

.adv-card {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  height: 38vh;
  transition: transform 0.3s ease;
}

.adv-card p {
  font-size: 20px;
  font-family: var(--font-secondary);
  font-weight: 500;
  margin-top: 40px;
}

.adv-card:hover {
  transform: translateY(-5px);
}

/* Цветовые варианты */
.adv-card--light {
  background: #F2F2F2;
  color: #2d3748;
}

.adv-card--accent {
  background: #7FD6F3;
  color: #1f2933;
}

.adv-card--primary {
  background: #4A78B5;
  color: #ffffff;
}

/* Иконка */
.adv-icon {
  width: 48px;
  height: 48px;
}

/* Раскладка как на макете */
.adv-card:nth-child(1) { grid-column: span 7; }
.adv-card:nth-child(2) { grid-column: span 5; }
.adv-card:nth-child(3) { grid-column: span 4; }
.adv-card:nth-child(4) { grid-column: span 4; }
.adv-card:nth-child(5) { grid-column: span 4; }

/* Секция консультации */
.consultation-section {
  position: relative;
  background: transparent;
  overflow: hidden;
}

/* Контейнер с фоновой картинкой */
.consultation-container {
  display: flex;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background-image: url('/images/Group 390 (1).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  min-height: 600px;
}
/* Затемнение фона для лучшей читаемости текста */

/* Контент поверх фона */
.consultation-content {
  position: relative;
  z-index: 3;
  width: 60%;
  color: #fff;
  padding: 40px;
}

/* Заголовок */
.consultation-content h2 {
  font-family: var(--mts-wide);
  font-weight: bold;
  font-size: 48px;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

/* Описание */
.consultation-description {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
}

.consultation-phone {
  display: flex;
  align-items: center;
  gap: 15px;
}

.consultation-phone input {
  width: 260px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 18px;
  background: #F0F0F0;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  letter-spacing: 1px;
}

.consultation-phone input::placeholder {
  font-family: var(--font-secondary);
  color: #727272;
  opacity: 1;
}

/* Кнопка */
.consultation-btn {
  padding: 14px 18px;
  font-size: 20px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(36, 129, 235, 0.4);
  display: inline-block;
  min-width: 300px;
}

/* Чекбокс */
.consultation-checkbox {
  font-family: var(--font-secondary);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.consultation-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.consultation-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  appearance: none;
  position: relative;
}

.consultation-checkbox input[type="checkbox"]:checked {
  background: #75D2F0;
  border-color: #75D2F0;
}

.consultation-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.services-section {
  padding: 60px 60px;
  background-color: var(--works-bg);
}

.services-title {
  font-family: var(--mts-wide);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #4a7fc0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.service-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.05)
  );
  z-index: 1;
}

.service-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.service-content h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  max-width: 90%;
  text-shadow: 0 4px 12px rgba(0,0,0,.6);
}

.contacts-section {
  padding: 100px 5%;
  background: #f7f7f7;
}

.contacts-wrap {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

/* Левая часть */
.contacts-section h2 {
  font-size: 60px;
  font-family: var(--font-secondary);
  font-weight: 600;
  color: #4a7fc0;
  margin-bottom: 30px;

}

.contacts-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.contacts-work {
  color: #05090e;
  font-weight: 600;
  margin-bottom: 25px;
}

.contacts-block {
  margin-bottom: 20px;
}

.contacts-block span {
  display: block;
  color: #4a7fc0;
  font-weight: 600;
  margin-bottom: 5px;
}

.contacts-block a {
  display: block;
  font-size: 18px;
  color: #222;
  text-decoration: none;
  margin-bottom: 5px;
}

/* Правая часть */
.contacts-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  position: relative;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  text-decoration: none;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65), rgba(0,0,0,.1));
  z-index: 1;
}

.contact-card span,
.contact-card .arrow {
  position: relative;
  z-index: 2;
}

.contact-card span {
  font-size: 16px;
  max-width: 80%;
  line-height: 1.3;
}

.arrow {
  margin-left: auto;
  background: #2f80ed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform .3s ease;
}

.contact-card:hover .arrow {
  transform: translateX(6px);
}

.first_footer {
  display: flex;
  flex-direction: row;
}

.contacts-footer {
  margin-top: 40px;
  font-size: 14px;
  color: #555;
}

.contacts-footer hr {
  border: none;
  height: 4px;
  position: relative;
  width: 100%;
  margin: 15px auto;
}

.contacts-footer hr::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(to right,
    #aaa 0px, #aaa 10px,    /* длина штриха 10px */
    transparent 10px, transparent 20px  /* отступ 20px */
  );
}


.contacts-footer p {
  margin: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slogan_footer {
  margin-right: 50px;
}

.contacts-footer svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin: 0 4px 0 0; /* отступ справа от иконки */
  fill: #555;
}

.contacts-info h2 {
  font-family: var(--mts-wide);
}


@media (max-width: 900px) {
  .contacts-wrap {
    grid-template-columns: 1fr;
  }

  .contacts-info h2 {
    font-size: 36px;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }

  .services-title {
    font-size: 34px;
  }
}

/* Адаптивность для консультации */
@media (max-width: 1024px) {
  .consultation-content h2 {
    font-size: 40px;
  }

  .consultation-phone {
    font-size: 32px;
  }

  .consultation-content {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .consultation-content h2 {
    font-size: 32px;
  }

  .consultation-description {
    font-size: 18px;
  }

  .consultation-phone {
    font-size: 28px;
    flex-direction: column;
  }

  .consultation-btn {
    padding: 18px 30px;
    font-size: 18px;
    min-width: 250px;
  }

  .consultation-checkbox {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .consultation-content h2 {
    font-size: 28px;
  }

  .consultation-phone {
    font-size: 24px;
  }

  .consultation-btn {
    width: 100%;
    min-width: auto;
  }

  .consultation-checkbox {
    font-size: 13px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .adv-card {
    grid-column: span 6;
  }
}

/* Мобилки */
@media (max-width: 600px) {
  .advantages {
    padding: 50px 16px;
  }

  .advantages-title {
    text-align: center;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .adv-card {
    grid-column: span 1;
    padding: 22px;
  }
}

/* Адаптивность */
@media (max-width: 1200px) {
  .ai-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .ai-visual {
    height: 500px;
    order: -1;
  }

  .ai-image {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .ai-section {
    padding: 60px 20px;
  }

  .ai-content h2 {
    font-size: 36px;
  }

  .ai-description {
    font-size: 16px;
  }

  .ai-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-visual {
    height: 400px;
  }

  .ai-gradient {
    transform: translate(-50%, -50%) scale(2);
  }

  .ai-image {
    max-width: 100%;
    transform: none;
  }

  .ai-image:hover {
    transform: scale(1.05);
  }

  .ai-btn {
    width: 100%;
    padding: 20px;
  }
}

/* Адаптивность для слайдера */
@media (max-width: 1200px) {
  .work-card {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .works h2 {
    font-size: 36px;
  }

  .slider-controls {
    align-self: flex-end;
  }

  .work-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .work-card h3 {
    font-size: 18px;
    min-height: auto;
  }

  .work-card p {
    font-size: 14px;
    min-height: auto;
  }

  .slider-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .works {
    padding: 40px 20px;
  }

  .works h2 {
    font-size: 32px;
  }

  .slider-controls {
    gap: 8px;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }
}

input,
textarea {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: inherit;
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

input:focus, textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.full {
  width: 100%;
  margin-top: 12px;
}

.status {
  margin-top: 12px;
  color: #fff;
  opacity: 0.9;
  text-align: center;
}

@media(max-width: 1000px) {
  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 48px;
  }

  .hero-cta {
    justify-content: center;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 14px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .contact-info {
    margin-left: 0;
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .cta {
    margin-left: 0;
  }

  .hero-right img {
    width: 100%;
    max-width: 400px;
  }
}


.about-toggle {
  display: none;
  margin-top: 15px;
  background: none;
  border: none;
  color: #4770ba;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 500px) {
  .about-more {
    display: none;
  }

  .about-bg-overlay.is-open .about-more {
    display: block;
  }

  .about-toggle {
    display: inline-block;
  }
}


/* ================== CONTACT BUBBLE ONLY ================== */

.contact-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;

  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  border: none;
  border-radius: 12px;

  background: linear-gradient(180deg, #ffffff 0%, #e8f4ff 100%);
  box-shadow: 0 8px 20px rgba(10, 117, 216, 0.12);

  cursor: pointer;
  z-index: 1200;

  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-bubble:hover {
  box-shadow: 0 10px 26px rgba(10, 117, 216, 0.18);
}

.contact-overlay[hidden]{ 
  display: none; 
}

/* ================== Compact contact modal (blue/white) ================== */

/* overlay (легкое затемнение, но не слишком сильное) */
.contact-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start; /* используем абсолютное позиционирование модалки */
  justify-content: flex-start;
  background: rgba(7, 18, 34, 0.12);
  z-index: 1400;
  padding: 12px; /* пространство по краям для карточки */
  -webkit-tap-highlight-color: transparent;
}

/* скрытие по атрибуту hidden */
.contact-overlay[hidden] { display: none; }

/* карточка-модалка (компактная) */
.contact-modal {
  position: absolute;
  left: var(--modal-left, 80%);   /* ставится из JS: px или % */
  top:  var(--modal-top, 58%);    /* ставится из JS: px или % */
  transform: translate(-50%, var(--modal-transform-y, -50%)); /* easy: центр или поднять выше точки клика */
  min-width: 300px;
  max-width: 380px;
  width: min(92vw, 360px);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(7,18,34,0.18), 0 6px 18px rgba(10,117,216,0.06);
  border: 1px solid rgba(10,117,216,0.06);
  color: #05243b;
  pointer-events: auto;
  transition: transform .22s cubic-bezier(.2,.9,.2,1), opacity .18s;
  opacity: 1;
  will-change: transform;
  overflow: hidden;
}

/* маленькая стрелка (указатель на точку клика) */
.contact-modal::after {
  content: "";
  position: absolute;
  left: var(--modal-arrow-left, 50%);
  top: calc(100% - 6px); /* стрелка снизу карточки */
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: inherit; /* тот же градиент/цвет, смотрится как продолжение */
  border-left: 1px solid rgba(10,117,216,0.06);
  border-bottom: 1px solid rgba(10,117,216,0.06);
  box-shadow: 0 8px 18px rgba(7,18,34,0.08);
  z-index: -1;
  filter: drop-shadow(0 6px 12px rgba(7,18,34,0.06));
}

/* если нужно показывать карточку под точкой клика (стрелка сверху) —
   можно переключать data-атрибут overlay: data-placement="bottom" (JS) */
.contact-overlay[data-placement="bottom"] .contact-modal::after {
  top: -8px;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 -6px 12px rgba(7,18,34,0.06);
}

/* Заголовок */
.contact-title {
  margin: 50px 0 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #073b66;
  line-height: 1.12;
}

/* Формат полей */
.contact-form { display: grid; gap: 10px; }
.contact-form .form-row { display:flex; flex-direction:column; gap:6px; }
.contact-form label { font-size: 13px; color: #123a55; font-weight:600; }

/* inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form .fake-select {
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(10,117,216,0.12);
  background: #fff;
  font-size: 14px;
  color: #042a40;
  box-shadow: inset 0 1px 0 rgba(6,24,48,0.02);
}

/* textarea чуть выше */
.contact-form textarea { min-height: 20px; resize:vertical; }

/* checkbox row */
.contact-form .checkbox-row { display:flex; gap:8px; align-items:center; font-size:13px; color:#0b3b5a; }
.contact-form .checkbox-row input[type="checkbox"] { width:16px; height:16px; }

/* кнопка отправить (акцент) */
.contact-form .btn-send {
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0a75d8 0%, #0a59b8 100%);
  color: white;
  font-weight:700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10,117,216,0.12);
}

/* статус-ряд (сообщение) */
.cf-status { font-size:13px; color:#076; margin-left:6px; }

/* компактный вид — если хочется ещё меньше (добавь класс .compact на .contact-modal) */
.contact-modal.compact { padding: 12px; border-radius: 10px; width: min(86vw, 340px); }
.contact-modal.compact .contact-title { font-size:15px; margin-bottom:10px; }

/* скролл внутри карточки (если много полей) */
.contact-modal .modal-body {
  max-height: calc(80vh - 80px);
  overflow: auto;
  padding-right: 6px;
}

/* стиль для полей при фокусе */
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(10,117,216,0.07);
  border-color: #0a75d8;
}

/* MOBILE: на узких экранах — fullscreen снизу */
@media (max-width: 850px) {
  .contact-modal {
    position: fixed;
    left: 0 !important;
    right: 0;
    top: auto !important;
    bottom: 0;
    transform: translateY(0) !important;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    padding: 16px;
    box-shadow: 0 -24px 60px rgba(7,18,34,0.28);
    margin: 0;
  }
  .contact-modal::after { display: none; }
  .contact-overlay { align-items: flex-end; padding: 0; background: rgba(7,18,34,0.18); }
}

.contact-bubble:active {
  transform: scale(0.96);
}

.contact-bubble:focus {
  outline: 3px solid rgba(10, 117, 216, 0.18);
  outline-offset: 2px;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 32px;
  height: 32px;

  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.popup-close::before,
.popup-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background-color: #1e6be3;
  border-radius: 2px;
}

.popup-close::before {
  transform: rotate(45deg);
}

.popup-close::after {
  transform: rotate(-45deg);
}

.popup-close:hover {
  background: #1e6be3;
  transform: scale(1.05);
}

.popup-close:hover::before,
.popup-close:hover::after {
  background-color: #fff;
}

.popup-close:active {
  transform: scale(0.95);
}


/* Mobile */
@media (max-width: 768px) {
  .contact-bubble {
    right: 16px;
    bottom: 16px;
    width: 64px;
    height: 64px;
  }
}

#mobile-burger {
  display: none;
}


/* =================== Полноэкранное мобильное меню =================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 8, 20); /* dark glass */
  color: #fff;
  padding: 24px;
}

/* скрываем через атрибут hidden (по-умолчанию скрыто) */
.mobile-menu[hidden] { display: none; }

.mobile-menu-inner {
  width: min(920px, 96%);
  max-width: 920px;
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  position: relative;
  overflow: auto;
}

/* Close button */
.mobile-menu-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}

/* Nav list */
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  display: grid;
  gap: 12px;
}

.mobile-nav a {
  display: block;
  text-decoration: none;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 10px;
  transition: background .18s ease, transform .12s ease;
}

.mobile-nav a:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(6px);
}

/* contact block */
.mobile-contact-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.mobile-contact-block a {
  color: #9fe6ff;
  text-decoration: none;
  font-weight: 700;
}

.mobile-contact-cta .btn.primary {
  background: linear-gradient(180deg,#0a75d8 0%, #0a59b8 100%);
  padding: 10px 16px;
  border-radius: 10px;
  margin-top: 6px;
}

@media (max-width: 420px) {
  .mobile-menu-inner { padding: 18px; width: 96%; }
  .mobile-nav a { font-size: 18px; padding: 12px 14px; }
  .mobile-menu-close { font-size: 28px; right: 8px; top: 8px; }
}

/* прячем бургер, когда меню открыто */
body.menu-open #mobile-burger {
  display: none !important;
}

/* стили для страницы соглашения */

/* Основные стили для страницы */
.agreement-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    color: #005bb5;
}

.agreement-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 800px;
}

/* Заголовок */
.agreement-title {
  color: #005bb5;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Подзаголовки */
.agreement-subtitle {
  color: #005bb5;
  font-size: 18px;
  font-weight: 600;
  margin-top: 15px;
}

/* Текст и абзацы */
.agreement-text {
  color: #005bb5;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.agreement-link {
    color: #1a73e8;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

/* Списки */
.agreement-list {
    margin-left: 20px;
    list-style-type: disc;
}

.agreement-list li {
    margin-bottom: 10px;
}

/* Ссылка "Вернуться на сайт" */
.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #1a73e8;
    color: white;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    background-color: #005bb5;
}
