
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: #000;
  color: #fff;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-text {
  text-align: center;
  padding-top: 100px;
}
.slide.white {
  background: #fff;
  color: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  height: 50px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding-left: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
}
canvas#gridCanvas {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    background: #000;
    padding: 1rem;
    width: 100%;
  }
}

/* Фиксы v11 */
body {
  font-family: 'Manrope', sans-serif;
}
.hero {
  background: url('../img/back.jpg') center center / cover no-repeat;
  height: 100vh;
  position: relative;
}
.logo {
  max-width: 160px;
  height: auto;
}

/* v12 fixes */
body {
  font-family: 'Manrope', sans-serif;
}
.hero {
  background: url('../img/back.jpg') center center / cover no-repeat;
  background-attachment: fixed;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.3s ease;
  background: none;
}
nav.scrolled {
  background: rgba(0, 191, 255, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 30px;
  max-width: 300px;
  padding: 10px 20px;
  top: 10px;
  right: 10px;
  
  position: fixed;
}
.logo {
  width: auto;
  height: auto;
  max-height: 60px;
}
h2 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* v13 updates */

/* Логотип точного размера */
.logo {
  width: 196px;
  height: 38px;
  object-fit: contain;
}

/* Затемнение через ::before */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
}

/* Заголовки h2 без жирности */
h2 {
  font-weight: 300;
  text-transform: uppercase;
}

/* Hamburger меню */
.hamburger {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  width: 46px;
  height: 46px;
  background: #00cfff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
}
.hamburger div {
  width: 20px;
  height: 2px;
  background: #000;
  margin: 4px auto;
}

/* Мобильное меню */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #000;
    position: fixed;
    top: 60px;
    right: 10px;
    padding: 1rem;
    z-index: 1000;
  }
  body.menu-open nav ul {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* v14 правки */

/* Центровка hero текста */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 100%;
}

/* Контакт в шапке */
.header-contact {
  color: white;
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
}
.header-contact a {
  color: #00cfff;
  text-decoration: none;
  font-weight: 500;
}

/* canvas сетка только на header */
#gridCanvas {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

/* Правка второго слайда */
.slide.white {
  padding-top: 120px;
  background: #fff;
  color: #000;
  min-height: 100vh;
}

/* Гамбургер остаётся как был */

/* v15 правки */

/* Компактный контактный блок */
.header-contact {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-size: 14px;
  gap: 2px;
}

/* Исправленный второй слайд */
.slide.white {
  padding: 80px 20px 60px;
  background: #fff;
  color: #000;
}

/* Удаляем flex-выравнивание */
.slide.white {
  display: block;
  min-height: auto;
}

/* Удаляем hamburger */
.hamburger {
  display: none !important;
}

/* Фиксированное меню с фоном при прокрутке */
nav {
  transition: all 0.3s ease;
  background: transparent;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* v16 правки */

/* Блок контактов одной строкой */
.header-contact {
  font-size: 14px;
  white-space: nowrap;
  display: inline-block;
}
.header-contact a {
  color: #00cfff;
  text-decoration: none;
}

/* Удаляем гамбургер */
.hamburger {
  display: none !important;
}

/* Заголовки и текст по левому краю */
section h2, section p {
  text-align: left;
}

/* v17 правки */

/* Улучшенное фиксированное меню */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 9999;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Ограничение canvas только на шапку */
#gridCanvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* v18 правки */

/* Город + телефон в 2 строки, плотно */
.header-contact {
  font-size: 14px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Центрируем содержимое nav */
.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ограничение canvas от tsParticles */
#gridCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* v19 правки */

/* Сетка навигации: логотип — меню — контакт */
.nav-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* Зафиксированное меню с выравниванием */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  transition: all 0.3s ease;
}
/* Заголовки h2 как h1 */
section h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* v20 правки */

/* Центрирование меню между логотипом и телефоном */
.menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Исправленная фиксация навигации */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-sizing: border-box;
  background: transparent;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Подвал */
.footer {
  background: #555555;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

/* v21 правки */

/* nav-wrapper центрирует контент */
.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Центрирование меню внутри колонки */
.menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu li a {
  text-decoration: none;
  color: white;
}

/* nav корректно фиксирован */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* v22 правки */

/* Центровка меню внутри колонки */
.menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-left: 0;
  list-style: none;
  grid-column: 2 / 3;
}

/* nav-wrapper структура при scroll */
.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Надёжная фиксация навигации */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-sizing: border-box;
  background: transparent;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* v23 финальная структура nav */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  z-index: 9999;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding-left: 0;
  margin: 0;
  grid-column: 2 / 3;
}
.menu li a {
  text-decoration: none;
  color: white;
}
.header-contact {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
  font-size: 14px;
  text-align: right;
}
.header-contact a {
  color: #00cfff;
  text-decoration: none;
}

/* v24 правки */

/* Устойчивый контейнер навигации */
.container.nav-wrapper {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  box-sizing: border-box;
}

/* v25 финальные правки */

/* Жёсткая фиксация навигации без left:auto */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Центровка содержимого внутри навигации */
.container.nav-wrapper {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  box-sizing: border-box;
}

/* v27 правки */

/* nav при прокрутке — фон + тень */
/* контейнер остаётся отцентрированным всегда */
.container.nav-wrapper {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  box-sizing: border-box;
}

/* телефон отображается только через JS */
.phone {
  unicode-bidi: plaintext;
  font-size: 14px;
  color: #00cfff;
  font-weight: 500;
  text-align: right;
}

/* v28 правки */

/* Город — uppercase */
.header-contact span {
  text-transform: uppercase;
}

/* Телефон — белый и больше */
.phone {
  font-size: 16px;
  color: white;
  font-weight: 500;
  text-align: right;
}

/* Гамбургер */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #ccc;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10000;
}
.hamburger div {
  width: 20px;
  height: 2px;
  background: #000;
  margin: 3px 0;
}

/* Вертикальное меню */
.mobile-menu {
  position: fixed;
  top: 80px;
  right: -250px;
  width: 200px;
  background: rgba(0,0,0,0.9);
  color: #fff;
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 1rem;
}
.mobile-menu.open {
  right: 20px;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu li {
  margin: 1rem 0;
}
.mobile-menu a {
  color: #fff;
  text-decoration: none;
}

/* v29 правки */

/* Устойчивое поведение контейнера навигации */
nav .container.nav-wrapper {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Гамбургер: серый круг с тенью */
.hamburger {
  background-color: #ccc !important;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

/* Скрытие mobile menu по умолчанию */
.mobile-menu {
  right: -250px;
  position: fixed;
  top: 80px;
  width: 200px;
  background: rgba(0,0,0,0.9);
  color: #fff;
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 1rem;
}
.mobile-menu.open {
  right: 20px;
}

/* v30 правки */

/* hamburger — точно видим */
.hamburger {
  position: fixed;
  top: 30px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #ccc;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10001;
}
.hamburger div {
  width: 20px;
  height: 2px;
  background: #000;
  margin: 3px 0;
}

/* фиксированный отступ сверху у навигации */
.container.nav-wrapper {
  margin: 20px auto 0;
}

/* v31: mobile-menu через class вместо id */

.mobile-menu {
  position: fixed;
  top: 80px;
  right: -250px;
  width: 200px;
  background: rgba(0,0,0,0.9);
  color: #fff;
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 1rem;
  display: block;
}
.mobile-menu.open {
  right: 20px;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu li {
  margin: 1rem 0;
}
.mobile-menu a {
  color: #fff;
  text-decoration: none;
}






/* v34 — сохранённый отступ */
nav .container.nav-wrapper { margin: 20px auto 0; }
/* v35: секция "Проектируем" */

.section {
  padding: 100px 20px;
  background-color: #fff;
}
.section h2 {
  font-size: 2.2rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.section .lead {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.feature {
  flex: 1 1 250px;
  min-width: 260px;
}
.feature h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 1rem;
  line-height: 1.5;
}

/* v36 правки */

/* Цвет текста в белых секциях */
.section {
  color: #000;
}

/* Фиксированный nav с белым фоном и тенью */
nav {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.menu a {
  color: #000;
}

/* v37 правки */

/* Чёрный фон у навигации */
nav {
  background: #000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Белые ссылки в меню */
.menu a {
  color: #fff;
}

/* v38 правка — нижний отступ у меню */
nav {
  padding-bottom: 10px;
}

/* v40: добавим иконки к .feature */
.feature {
  position: relative;
  padding-left: 60px;
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.feature:nth-child(1)::before {
  background-image: url('../img/icon-analysis.png');
}
.feature:nth-child(2)::before {
  background-image: url('../img/icon-architecture.png');
}
.feature:nth-child(3)::before {
  background-image: url('../img/icon-docs.png');
}

/* v41 правки */

.section .lead {
  font-size: 1rem;
}

.section.gray {
  background-color: #f5f5f5;
}

.feature h3 i {
  margin-right: 8px;
  color: #00cfff;
}

/* v42 правки */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.col.left {
  flex: 1 1 60%;
}
.col.right {
  flex: 1 1 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.infographic {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.services-table {
  margin-top: 2rem;
}
.services-table ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}
.services-table li {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-weight: 500;
}
.section.gray .services-table li {
  background: #f0f0f0;
}

.services-table li i {
  margin-right: 8px;
  color: #00cfff;
}


/* v48: стилизация карточек услуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.service-item {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section.gray .service-item {
  background: #f0f0f0;
}
.service-item i {
  color: #00cfff;
  font-size: 1.2rem;
}


/* v49: блок преимущества и доп. секции */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.benefit {
  background: #f8f8f8;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.benefit i {
  color: #00cfff;
  font-size: 1.2rem;
}

/* вертикальная карусель */
.carousel-container {
  overflow: hidden;
  max-height: 300px;
  position: relative;
}
.carousel-vertical {
  display: flex;
  flex-direction: column;
  animation: scroll-vertical 12s linear infinite;
}
.carousel-vertical img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

@keyframes scroll-vertical {
  0% { transform: translateY(0); }
  33% { transform: translateY(-100%); }
  66% { transform: translateY(-200%); }
  100% { transform: translateY(0); }
}

/* форма расчета */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.calc-form input,
.calc-form textarea {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.calc-form button {
  padding: 0.8rem 1rem;
  background: #00cfff;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}
.calc-form button:hover {
  background: #009ecf;
}

.map-placeholder {
  margin-top: 2rem;
  background: #eee;
  height: 200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
}


/* v50: калькулятор услуг и подвал */
.pricing-calc {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-calc label {
  font-weight: 500;
  background: #f9f9f9;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
.calc-result {
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: #009ecf;
}

.footer {
  background: #333;
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 4rem;
}


/* v51: подробный список преимуществ */
.benefits-full {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.benefits-full li {
  background: #f9f9f9;
  border-left: 4px solid #00cfff;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
}
.benefits-full strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}


/* v53: вкладки калькулятора */
.tab-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.tab-btn.active {
  background: #00cfff;
  color: white;
}
.tab-content .tab-pane {
  display: none;
}
.tab-content .tab-pane.active {
  display: block;
}


/* v54: проектный калькулятор */
fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}
fieldset legend {
  font-weight: bold;
  padding: 0 0.5rem;
}
label.nested {
  margin-left: 2rem;
  display: block;
}
.tooltip {
  display: inline-block;
  margin-left: 6px;
  background: #999;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  cursor: help;
}


/* v55: вкладки и аккуратные поля */
.tab-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.tab-btn.active {
  background: #00cfff;
  color: white;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.calc-form.grid-form .field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.tooltip {
  display: inline-block;
  margin-left: 5px;
  background: #999;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  cursor: help;
}


/* v56: кнопка отправки и улучшенная сетка */
.send-button {
  margin-top: 2rem;
  background: #00cfff;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}
.send-button:hover {
  background: #00b0d9;
}

.calc-form.grid-form .field-group label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}
.calc-form.grid-form input,
.calc-form.grid-form select {
  width: 100%;
  margin-top: 0.4rem;
}


/* v57: правки визуала */
.calc-form input,
.calc-form select {
  height: 30px;
  font-size: 14px;
}

.calc-form input[type="number"] {
  max-width: 80px;
}

.field-group input[type="checkbox"] {
  margin-right: 6px;
}

fieldset .field-group label {
  align-items: flex-start;
}

/* Перенос кнопки в правый нижний угол */
.calc-form .calc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.send-button {
  margin-top: 0;
  margin-left: auto;
}


/* v58: улучшенная сетка, карточки услуг, структурирование */

.calc-form fieldset {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
}
.calc-form fieldset:first-of-type {
  border-top: none;
  padding-top: 0;
}
.calc-form fieldset legend {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
}

.field-group label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 14px;
  font-weight: 500;
}

.field-group input[type="number"],
.field-group select {
  height: 32px;
  font-size: 14px;
  padding: 0 0.5rem;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.field-group input[type="checkbox"] {
  margin-right: 6px;
}

fieldset.services {
  margin-top: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.service-card {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: #fafafa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}
.service-card input[type="checkbox"] {
  margin-right: 10px;
}
.service-card:hover {
  border-color: #00cfff;
  background: #f0faff;
}
.send-button {
  margin-top: 2rem;
  background: #00cfff;
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  float: right;
}


/* v59: фиксированная сетка, стилизованные секции и карточки */
.calc-form fieldset {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #fff;
}
.calc-form legend {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
  color: #333;
}

.field-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) {
  .field-group {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .field-group {
    grid-template-columns: 1fr;
  }
}

.field-group label {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
}
.field-group input,
.field-group select {
  height: 32px;
  padding: 0 0.5rem;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
.field-group input[type="number"] {
  max-width: 100%;
}

/* Услуги в виде карточек */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.service-card {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
  cursor: pointer;
}
.service-card input[type="checkbox"] {
  margin-right: 10px;
}
.service-card:hover {
  border-color: #00cfff;
  background: #f0faff;
}

/* Кнопка отправки */
.send-button {
  margin-top: 2rem;
  background: #00cfff;
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  float: right;
}


/* v60: белый фон для select + улучшения отображения чекбоксов */
.calc-form select {
  background: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.tooltip {
  display: inline-block;
  margin-left: 6px;
  background: #999;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  cursor: help;
}

/* Перенастройка карточек услуг — текст справа от чекбокса */
.service-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}


/* v66: сетка для информационных систем */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.checkbox-grid div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.checkbox-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.checkbox-grid label {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}


/* v67: уменьшение отступа legend и выравнивание результата */
fieldset legend {
  margin-bottom: 0.5rem;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.calc-result-row .calc-result {
  font-size: 1.1rem;
  font-weight: 600;
}


/* v68: минимальный отступ под заголовками секций с чекбоксами */
.checkbox-grid {
  margin-top: 0.4rem;
}
