/* РобоШеф — переопределения навигации, подвалов и контактов */

/* Кнопки: квадратные со скруглением, как на q-robot */
.button-primary,
.secondary-button,
.button-inner-block,
.button,
.btn-white,
.submit-button-2,
.w-button,
.rs-lead-modal .rs-lead-submit,
.rs-contact-submit {
  border-radius: 10px !important;
}

.secondary-button .button-inner-block {
  border-radius: 8px !important;
}

/* Цифры героя: значение голубым, подпись белым со следующей строки */
.hero-feature-wrap .hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 16px;
}

.hero-feature-wrap .feature-text {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

.hero-feature-wrap .feature-text .cyan {
  color: var(--cyan, #2ee6e0);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

/* Линия над «Мы считаем…» */
.bottom-description {
  border-top: none !important;
}

/* Отрасли: заголовок на одном уровне с пунктами */
[data-cms-block="block-6"] > .container > .section-wrap {
  flex-flow: row nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

[data-cms-block="block-6"] .heading-holder.small {
  max-width: 360px;
  margin: 0;
  align-self: flex-start;
}

[data-cms-block="block-6"] .heading-holder.small .h2-heading {
  margin-top: 0;
}

[data-cms-block="block-6"] .links {
  margin-top: 0;
  margin-left: 96px;
  padding-left: 24px;
  align-items: flex-start;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-cms-block="block-6"] .link-item {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

[data-cms-block="block-6"] .link-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(46, 230, 224, 0.55);
}

@media (max-width: 991px) {
  [data-cms-block="block-6"] > .container > .section-wrap {
    flex-flow: column;
  }
}

/* Клиенты: одна строка + стрелки */
.rs-clients-carousel {
  position: relative;
}

.rs-clients-track-wrap {
  overflow: hidden;
}

.rs-clients-track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
}

.rs-clients-track .collection-item,
.rs-clients-track .w-dyn-item {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.rs-clients-track ._3-column-grid {
  display: contents;
}

.rs-clients-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid #d5dbe3;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

.rs-clients-arrow:hover {
  border-color: #111827;
}

.rs-clients-prev { left: -8px; }
.rs-clients-next { right: -8px; }

@media (max-width: 991px) {
  .rs-clients-track .collection-item,
  .rs-clients-track .w-dyn-item {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .rs-clients-track .collection-item,
  .rs-clients-track .w-dyn-item {
    flex-basis: 100%;
  }
  .rs-clients-prev { left: 0; }
  .rs-clients-next { right: 0; }
}

/* Модалка заявки */
.rs-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rs-lead-overlay.is-open {
  display: flex;
}

.rs-lead-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.rs-lead-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  background: #f3f4f6;
  border-radius: 10px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rs-lead-close:hover {
  background: #e5e7eb;
}

.rs-lead-modal h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.rs-lead-modal p {
  margin: 0 0 20px;
  color: #4b5563;
}

.rs-lead-modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}

.rs-lead-modal .rs-lead-field {
  margin-bottom: 14px;
}

.rs-lead-modal input,
.rs-lead-modal textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: #111827;
  background: #fff;
}

.rs-lead-modal textarea {
  min-height: 110px;
  resize: vertical;
}

.rs-lead-submit {
  width: 100%;
  margin-top: 8px;
  background: #111827;
  color: #fff;
  border: 0;
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
}

.rs-lead-submit:hover {
  background: #000;
}

.rs-lead-success {
  display: none;
  text-align: center;
  padding: 24px 8px;
}

.rs-lead-modal.is-success .rs-lead-form,
.rs-lead-modal.is-success .rs-lead-intro {
  display: none;
}

.rs-lead-modal.is-success .rs-lead-success {
  display: block;
}

body.rs-lead-open {
  overflow: hidden;
}

/* Hero с видео на внутренних страницах */
.hero-section.stretch .header-holder,
.hero-section.stretch .header-info {
  position: relative;
  z-index: 2;
}

.hero-section.stretch .h1-heading,
.hero-section.stretch .text-lg {
  color: #fff;
}

/* Меньше затемнение фонового видео */
.hero-section.stretch .hero-bg-video {
  background-image: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.52)) !important;
}

.hero-section.stretch .gradient-image {
  opacity: 0.12 !important;
}

.hero-section.stretch .gradient-image-mobile {
  opacity: 0.15 !important;
}

/* Галерея продуктов под «РобоШеф ОС работает с:» */
[data-cms-block="block-3"] .container-lg {
  width: 100%;
  max-width: 1392px;
  margin-top: 40px;
  margin-bottom: 24px;
  opacity: 1 !important;
  visibility: visible !important;
}

[data-cms-block="block-3"] .icons-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 16px;
  opacity: 1 !important;
  visibility: visible !important;
}

[data-cms-block="block-3"] .icon-item {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 7.5%;
  min-width: 56px;
  margin-bottom: 24px;
  opacity: 1 !important;
}

[data-cms-block="block-3"] .icon-s {
  height: 70px;
  width: auto;
  max-width: 100%;
  display: block !important;
  opacity: 1 !important;
}

@media (max-width: 991px) {
  [data-cms-block="block-3"] .icon-item {
    width: 12%;
  }
  [data-cms-block="block-3"] .icon-s {
    height: 48px;
  }
}

@media (max-width: 479px) {
  [data-cms-block="block-3"] .icon-item {
    width: 18%;
  }
  [data-cms-block="block-3"] .icon-s {
    height: 40px;
  }
}

/* Картинка моделей сотрудничества в блоке RaaS */
.rs-raas-models {
  width: 100%;
  margin-top: 32px;
  opacity: 1 !important;
  visibility: visible !important;
}

.rs-raas-models-img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

/* RaaS-блок на белом фоне: тёмный текст */
[data-cms-block="block-17"].bg-white,
[data-cms-block="block-17"].bg-white .h3-heading,
[data-cms-block="block-17"].bg-white .text-md,
[data-cms-block="block-17"].bg-white .cap-title {
  color: #1a1a1f;
}

[data-cms-block="block-17"].bg-white .cap-title {
  opacity: 0.7;
}

/* О нас: текст на всю ширину без разделителя */
.rs-about-story {
  display: block;
  width: 100%;
}

.rs-about-story-inner,
.rs-about-story .div-block {
  width: 100%;
  max-width: 920px;
}

.rs-about-story p {
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 0 1.1em;
  opacity: 1 !important;
}

.rs-about-story h2 {
  opacity: 1 !important;
}

/* Цифры с q-robot.ru */
.rs-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  width: 100%;
  text-align: center;
}

.rs-stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan, #2ee6e0);
  margin-bottom: 10px;
}

.rs-stat-label {
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
  opacity: 0.9;
}

/* Наши преимущества */
.rs-advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  margin-top: 40px;
}

.rs-advantage-card {
  padding: 28px 24px;
  background: #f6f8fb;
  border-radius: 12px;
}

.rs-advantage-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1f;
}

.rs-advantage-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #3a4250;
}

/* Блок «ИИ развивается каждый день» всегда видим */
[data-cms-block="block-3"] .advantages,
[data-cms-block="block-3"] .adv-item,
[data-cms-block="block-3"] .heading-holder {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 991px) {
  .rs-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-advantages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rs-stats-grid {
    grid-template-columns: 1fr;
  }
}

[data-cms-hidden],
section[hidden][data-cms-block] {
  display: none !important;
}

/* Выпадающие меню: непрозрачный фон */
.navbar .dropdown-list.w-dropdown-list,
.navbar .dropdown-list.company.w-dropdown-list {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
  opacity: 1 !important;
}

.navbar .dropdown-links-items {
  background: #ffffff !important;
  border-radius: 12px;
}

.navbar .dropdown-list .blur-b {
  display: none !important;
}

.navbar .dropdown-link,
.navbar .dropdown-link div {
  color: #1b2430 !important;
}

.navbar .dropdown-link:hover,
.navbar .dropdown-link:hover div {
  color: #0d6e6e !important;
}

/* Подвал в стиле q-robot.ru */
.footer-s.rs-footer {
  background: #111827;
  color: #d1d5db;
  padding: 56px 0 32px;
}

.footer-s.rs-footer .container {
  max-width: 1200px;
}

.rs-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
}

.rs-footer-col-brand .rs-footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.rs-footer-title {
  margin-top: 16px;
  margin-bottom: 20px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.rs-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.rs-footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 6px;
}

.rs-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.rs-footer-link {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color 0.15s ease;
  margin: 0;
}

.rs-footer-link:hover {
  color: #fff;
}

.rs-footer-link.w--current {
  color: #5eead4;
}

.rs-footer-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #d1d5db;
}

.rs-footer-cta {
  margin-top: 10px;
  display: inline-block;
}

.rs-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rs-footer-bottom .copyright-text {
  color: #9ca3af;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Сброс старой вёрстки подвала, чтобы не «плыл» */
.footer-s.rs-footer .footer-wrap,
.footer-s.rs-footer .footer-list,
.footer-s.rs-footer .footer-item,
.footer-s.rs-footer .footer-down {
  display: contents;
}

/* Отрасли: блоки на хабе */
.rs-industry-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  gap: 64px;
  width: 100%;
}

.rs-industry-stack > .rs-industry-video,
.rs-industry-stack > .video-holder.rs-industry-video {
  margin-top: 8px;
}

@media (max-width: 991px) {
  .rs-industry-stack {
    gap: 48px;
  }
}


.rs-industry-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px 48px;
  align-items: start;
  width: 100%;
}

.rs-industry-copy {
  width: 100%;
}

.rs-industry-copy .h2-heading {
  margin: 0 0 12px;
}

.rs-industry-copy .text-md {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  max-width: 640px;
}

.rs-industry-side .list-w {
  margin-top: 0 !important;
}

.rs-industry-video {
  width: 100%;
  max-width: 960px;
  margin: 0 auto !important;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
  aspect-ratio: 16 / 10;
}

.rs-industry-video .hack-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.rs-industry-video .background-video-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rs-industry-video .w-background-video > video,
.rs-industry-video video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

.section-w.rs-ind-bg-light {
  background: #ffffff;
  color: #111827;
}

.section-w.rs-ind-bg-dark {
  background: #111827;
  color: #f9fafb;
}

.section-w.rs-ind-bg-dark .h2-heading {
  color: #f9fafb;
}

.section-w.rs-ind-bg-dark .text-md {
  color: rgba(249, 250, 251, 0.78);
}

.section-w.rs-ind-bg-dark .list-item,
.section-w.rs-ind-bg-dark .list-item-white {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991px) {
  .rs-industry-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Сетка видео на главной (block-2): без полосок — spacer PNG часто 404 */
.lightbox-grid {
  align-items: stretch;
}

.lightbox-grid .vid-w,
.lightbox-grid-inner .vid-w {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  min-height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
}

.lightbox-grid .hack-img,
.lightbox-grid-inner .hack-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none;
}

.lightbox-grid .bg--video,
.lightbox-grid-inner .bg--video,
.lightbox-grid .w-background-video,
.lightbox-grid-inner .w-background-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px;
}

.lightbox-grid .w-background-video > video,
.lightbox-grid-inner .w-background-video > video,
.lightbox-grid .bg--video video,
.lightbox-grid-inner .bg--video video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

.lightbox-grid .bg--video.w-background-video,
.lightbox-grid-inner .bg--video.w-background-video {
  z-index: 1 !important;
}

@media (max-width: 991px) {
  [data-cms-block="block-6"] .links {
    margin-left: 0;
    padding-left: 0;
  }
}

/* Навигация: без capitalize/uppercase — «Роботы с ИИ», «Робот как услуга» */
.navbar .nav-link,
.navbar .dr-toggle,
.navbar .dropdown-link-block,
.navbar .dropdown-link,
.navbar .dropdown-link div {
  text-transform: none !important;
}

/* Видео: стабильная высота сразу (без «полосок» до загрузки) */
.rs-product-video,
.rs-industry-video,
.video-holder.rs-product-video,
.video-holder.rs-industry-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
}

.rs-product-video .hack-img,
.rs-industry-video .hack-img,
.video-holder.rs-product-video .hack-img,
.video-holder.rs-industry-video .hack-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none;
}

.rs-product-video .w-background-video,
.rs-industry-video .w-background-video,
.rs-product-video .background-video-2,
.rs-industry-video .background-video-2 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.rs-product-video .w-background-video > video,
.rs-industry-video .w-background-video > video,
.rs-product-video video,
.rs-industry-video video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

/* Отрасли: якоря с учётом фиксированного меню */
#Frozen-Prepared-Meals,
#Fresh-Prepared-Meals,
#Salad-Bowl-Assembly,
#Sandwich-Assembly,
#Portioning,
#Airline-Catering {
  scroll-margin-top: 96px;
}

.section-w.rs-ind-bg-light .list-item,
.section-w.rs-ind-bg-light .rs-industry-checks .list-item div {
  color: #1f2937 !important;
}

.section-w.rs-ind-bg-light .check-icon,
.section-w.rs-ind-bg-light .rs-check-dark {
  opacity: 1 !important;
  filter: none !important;
  /* Frame-иконка тёмная — видна на белом */
}

.section-w.rs-ind-bg-dark .check-icon,
.section-w.rs-ind-bg-dark .rs-check-light {
  opacity: 1 !important;
  filter: none !important;
}

/* Тёмное меню на светлых страницах */
body.rs-nav-on-light .navbar.w-nav {
  background: #111827 !important;
  background-color: #111827 !important;
}

body.rs-nav-on-light .nav-link,
body.rs-nav-on-light .dr-toggle,
body.rs-nav-on-light .dropdown-link-block,
body.rs-nav-on-light .dropdown-link,
body.rs-nav-on-light .dropdown-link div {
  color: #f9fafb !important;
}

body.rs-nav-on-light .brand img {
  filter: none;
}

/* Контакты: без градиентной линии под пунктами меню, белая CTA */
body.rs-nav-on-light .nav-items-hover-line {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

body.rs-nav-on-light .nav-button,
body.rs-nav-on-light .button-primary.nav-button,
body.rs-nav-on-light .nav-button.w--current {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid rgba(17, 24, 39, 0.12) !important;
}

body.rs-nav-on-light .nav-button .text-block,
body.rs-nav-on-light .button-primary.nav-button .text-block {
  color: #111827 !important;
}

/* Согласие под формой */
.rs-consent-note {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.rs-consent-note a {
  color: #0aa3a9;
  text-decoration: underline;
}

.rs-lead-consent {
  margin: 4px 0 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.rs-lead-consent a {
  color: #0aa3a9;
}

.rs-legal {
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;
  gap: 16px;
}

.rs-legal-content {
  color: #374151;
  line-height: 1.65;
}

.rs-legal-content p {
  margin: 0 0 14px;
}

.rs-no-case-link {
  pointer-events: none;
  cursor: default;
}

/* Контакты */
.rs-contact-hero {
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
  gap: 12px;
}

.rs-contact-hero .h1-heading {
  margin: 0;
}

.rs-contact-hero .text-lg {
  margin: 0;
  color: #4b5563;
}

.rs-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 40px 56px;
  align-items: start;
}

.rs-contact-form-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #111827;
}

.rs-contact-form-lead {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 1.55;
}

.rs-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rs-contact-field {
  margin-bottom: 14px;
}

.rs-contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111827;
}

.rs-contact-field input,
.rs-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: #111827;
  background: #fff;
}

.rs-contact-field textarea {
  min-height: 120px;
  resize: vertical;
}

.rs-contact-submit {
  width: auto;
  min-width: 180px;
  margin-top: 8px;
  background: #111827;
  color: #fff;
  border: 0;
  padding: 14px 24px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.rs-contact-submit:hover {
  background: #000;
}

.rs-contact-info-card {
  padding: 28px 28px 32px;
  background: #f4f7fb;
  border-radius: 16px;
}

.rs-contact-info-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 16px;
}

.rs-contact-info-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.35;
}

.rs-contact-info-link:hover {
  color: #0aa3a9;
}

.rs-contact-info-link-sm {
  font-size: 1.25rem;
  font-weight: 600;
}

.rs-contact-info-text {
  margin: 18px 0 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 1rem;
}

.rs-contact-requisites {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.rs-contact-company {
  margin-top: 8px !important;
  font-weight: 600;
  color: #111827 !important;
}

.rs-contact-req-line {
  margin-top: 4px !important;
}

.rs-contact-project {
  margin-top: 14px !important;
}

.rs-contact-project a {
  color: #0aa3a9;
  text-decoration: underline;
}

.rs-footer-tagline {
  margin: 14px 0 0;
  max-width: 260px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.rs-dishes-collage-wrap {
  width: 100%;
  max-width: 1392px;
  margin: 32px auto 8px;
  padding: 0 16px;
}

.rs-dishes-collage {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.rs-dishes-collage-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.rs-3d-legend {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f3f4f6;
}

.rs-3d-legend-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #111827;
}

.rs-3d-legend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-3d-legend-list li {
  position: relative;
  padding-left: 14px;
  color: #374151;
  font-size: 14px;
  line-height: 1.4;
}

.rs-3d-legend-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ee6e0;
}

@media (max-width: 767px) {
  .rs-3d-legend-list {
    grid-template-columns: 1fr 1fr;
  }
}

.padd-top-0 {
  padding-top: 0 !important;
}

.rs-contact-done {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 10px;
}

.w-form.is-success #contact-form {
  display: none;
}

.w-form.is-success .rs-contact-done {
  display: block;
}

@media (max-width: 991px) {
  .rs-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rs-contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

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

@media (max-width: 767px) {
  .rs-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rs-footer-bottom {
    flex-direction: column;
  }
}

.rs-product-video { margin-top: 28px !important; }


/* RaaS: карточки преимуществ с заголовком + текстом */
.rs-adv-card {
  align-items: flex-start !important;
  gap: 16px !important;
}

.rs-adv-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rs-adv-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}

.rs-adv-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.78;
}

/* Таблица моделей сотрудничества */
.rs-models-heading {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111827;
}

.rs-models-heading span {
  color: #2b6cff;
}

.rs-models-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rs-models-table {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #cfd4dc;
  border-radius: 14px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
}

.rs-models-table thead th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  color: #111827;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.rs-models-table thead th + th,
.rs-models-table tbody td + td,
.rs-models-table tbody th + td {
  border-left: 1px solid #e5e7eb;
}

.rs-models-table tbody th {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  width: 26%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.rs-models-table tbody th .rs-models-chip {
  display: inline-block;
  background: #2b6cff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.rs-models-table tbody td {
  padding: 16px 18px;
  color: #111827;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
}

.rs-models-table tbody tr:last-child th,
.rs-models-table tbody tr:last-child td {
  border-bottom: none;
}

.rs-models-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* AI: заголовок перед коллажем блюд — больше воздуха после текста */
[data-cms-block="block-1"] .heading-wrap-sm .text-md.fw-600 {
  margin-top: 40px;
}

@media (max-width: 767px) {
  [data-cms-block="block-1"] .heading-wrap-sm .text-md.fw-600 {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .rs-models-table {
    font-size: 13px;
  }
  .rs-models-table thead th,
  .rs-models-table tbody td {
    padding: 12px 10px;
  }
  .rs-models-table tbody th .rs-models-chip {
    padding: 6px 10px;
    white-space: normal;
  }
}

/* Video recipe on homepage */
.vid-w.rs-recipe-video,
.dark-bg-v2 .vid-w,
.section-w.dark-bg-v2 .vid-w {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  opacity: 1 !important;
}

.vid-w.rs-recipe-video .hack-img,
.dark-bg-v2 .vid-w .hack-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none;
}

.vid-w.rs-recipe-video .w-background-video,
.vid-w.rs-recipe-video .bg--video,
.dark-bg-v2 .vid-w .w-background-video,
.dark-bg-v2 .vid-w .bg--video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.vid-w.rs-recipe-video video,
.dark-bg-v2 .vid-w video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

/* Homepage: снять opacity:0 от Webflow IX */
[data-cms-block="block-6"] .heading-holder,
[data-cms-block="block-7"] .grid-layout-left,
[data-cms-block="block-7"] .grid-layout-right,
[data-cms-block="block-7"] .steps,
[data-cms-block="block-7"] .div-block-38,
[data-cms-block="block-8"] .grid-layout-left,
[data-cms-block="block-8"] .grid-layout-right,
[data-cms-block="block-8"] .steps,
[data-cms-block="block-8"] .div-block-38,
.dark-bg-v2 .content-right {
  opacity: 1 !important;
}

/* RaaS homepage: PNG-иконки того же размера, что SVG */
[data-cms-block="block-7"] .step-icon {
  display: block;
  width: 41px;
  height: 41px;
  object-fit: contain;
}

/* Страница «Робот как услуга»: белая иконка робота в тёмных карточках */
.step-card.dark .step-icon[src*="raas-robot-white"] {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* RaaS: финальный CTA на тёмном фоне, чтобы не сливался с предыдущим блоком */
.rs-raas-cta-dark .bottom-cta-title {
  color: #fff;
}

.rs-raas-cta-dark .button-primary {
  background: #fff !important;
  color: #111 !important;
  border-color: #fff !important;
}

.rs-raas-cta-dark .button-primary div,
.rs-raas-cta-dark .button-primary .btn-arrow,
.rs-raas-cta-dark .button-primary svg,
.rs-raas-cta-dark .button-primary path {
  color: #111 !important;
  fill: #111 !important;
}

.rs-raas-cta-dark .button-primary:hover {
  background: #f3f4f6 !important;
  color: #111 !important;
}

/* Отрасли: затемнение героя как на «Роботы с ИИ» */
section.header .video-header {
  position: absolute;
  inset: 0;
}

section.header .background-video {
  background-image: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.52)) !important;
}

section.header .video-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.52));
}

section.header .header-holder,
section.header .container {
  position: relative;
  z-index: 2;
}

/* Отрасли: чёрные галочки на белых блоках (та же форма, что белые на тёмных) */
.section-w.rs-ind-bg-light .check-icon {
  opacity: 1 !important;
  filter: none !important;
}

/* RaaS преимущества: сетка 2×2 */
[data-cms-block="block-3"] .advantages.rs-adv-grid-2x2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

@media (max-width: 767px) {
  [data-cms-block="block-3"] .advantages.rs-adv-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* Главная: два абзаца в блоке «Разные блюда» */
[data-cms-block="block-2"] .left-content .text-m + .text-m,
[data-cms-block="block-2"] .left-content .rs-dish-types + .text-m {
  margin-top: 16px;
}

/* Список типов блюд */
.rs-dish-types {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rs-dish-types li {
  padding-left: 0;
  font-size: inherit;
  line-height: 1.55;
  color: inherit;
}

.rs-dish-types strong {
  font-weight: 700;
}

/* Мобиле: основной текст блока слева, заголовок по центру */
@media (max-width: 767px) {
  [data-cms-block="block-2"] .left-content .h2-heading {
    text-align: center;
  }

  [data-cms-block="block-2"] .left-content .text-m,
  [data-cms-block="block-2"] .left-content .rs-dish-types {
    text-align: left;
    justify-items: start;
  }
}

/* Коллаж блюд: на мобиле — один увеличенный кадр (4 ряда) */
.rs-dishes-collage-split {
  display: none;
}

@media (max-width: 991px) {
  .rs-dishes-collage-wrap {
    margin-top: 20px;
    padding: 0 12px;
  }

  .rs-dishes-collage .rs-dishes-full {
    display: none !important;
  }

  .rs-dishes-collage-split {
    display: block !important;
  }

  .rs-dishes-panel {
    width: 100%;
    border-radius: 14px;
    overflow: visible;
    background: #fff;
  }

  .rs-dishes-panel img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
  }
}

/* Мобильное меню: отрасли как вложенный раскрывающийся список */
@media (max-width: 991px) {
  .navbar .dropdown.w-dropdown {
    width: 100%;
  }

  .navbar .dropdown .dr-toggle {
    width: 100%;
  }

  .navbar .dropdown-list.w-dropdown-list,
  .navbar .dropdown-list.company.w-dropdown-list {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    display: none;
  }

  .navbar .dropdown.w-dropdown.w--open > .dropdown-list.w-dropdown-list,
  .navbar .dropdown.w-dropdown.w--open > .dropdown-list.company.w-dropdown-list {
    display: block !important;
  }

  .navbar .dropdown-links-items {
    background: transparent !important;
    border-radius: 0 !important;
    margin: 4px 0 10px 18px;
    padding: 4px 0 4px 14px;
    border-left: 2px solid rgba(46, 230, 224, 0.35);
    display: grid;
    gap: 2px;
  }

  .navbar .dropdown-list .blur-b {
    display: none !important;
  }

  .navbar .dropdown-link {
    display: block !important;
    width: 100%;
    padding: 8px 0 !important;
  }

  .navbar .dropdown-link,
  .navbar .dropdown-link div,
  body.rs-nav-on-light .navbar .dropdown-link,
  body.rs-nav-on-light .navbar .dropdown-link div {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
  }

  .navbar .dropdown-link:hover div,
  body.rs-nav-on-light .navbar .dropdown-link:hover div {
    color: #2ee6e0 !important;
  }

  .navbar .dropdown .dropdown-link-block {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  /* Спрятать штатную стрелку Webflow (угол 90°) */
  .navbar .dropdown .w-icon-dropdown-toggle,
  .navbar .dropdown .dropdown-arrow {
    display: none !important;
  }

  /* Одна галочка справа от «Отрасли» */
  .navbar .dropdown .dropdown-link-block::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 0 2px 2px;
    border: solid rgba(255, 255, 255, 0.9);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .navbar .dropdown.w-dropdown.w--open .dropdown-link-block::after {
    transform: rotate(-135deg);
    margin-bottom: -2px;
  }

  /* Убрать градиентную линию под пунктом */
  .navbar .dropdown .nav-items-hover-line,
  .navbar .dropdown.w-dropdown.w--open .nav-items-hover-line,
  .navbar .dropdown .dr-toggle .nav-items-hover-line {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
    height: 0 !important;
  }
}

/* Мобильное меню: убрать «РобоШеф» + соцсети внизу */
.mobile-menu-footer-block {
  display: none !important;
}

/* О нас: блок о проекте Q-Robot */
.section.white:has(+ .rs-qrobot-project) {
  padding-bottom: 40px;
}

.rs-qrobot-project {
  background: #fff;
  color: #111827;
  padding-top: 40px;
}

.rs-qrobot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 56px;
  align-items: center;
  width: 100%;
}

.rs-qrobot-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.rs-qrobot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rs-qrobot-copy {
  width: 100%;
  max-width: 560px;
}

.rs-qrobot-eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.rs-qrobot-project .h2-heading {
  margin: 0 0 14px;
  color: #111827;
}

.rs-qrobot-text {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 1.125rem;
  line-height: 1.65;
}

.rs-qrobot-link {
  display: inline-flex !important;
  background: #111827 !important;
  color: #fff !important;
  border-color: #111827 !important;
}

.rs-qrobot-link div,
.rs-qrobot-link .btn-arrow,
.rs-qrobot-link svg,
.rs-qrobot-link path {
  color: #fff !important;
  fill: #fff !important;
}

.rs-qrobot-link:hover {
  background: #000 !important;
  color: #fff !important;
}

@media (max-width: 991px) {
  .section.white:has(+ .rs-qrobot-project) {
    padding-bottom: 28px;
  }

  .rs-qrobot-project {
    padding-top: 28px;
  }

  .rs-qrobot-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rs-qrobot-copy {
    max-width: none;
  }

  .rs-qrobot-img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 479px) {
  .rs-qrobot-inner {
    gap: 20px;
  }

  .rs-qrobot-text {
    margin-bottom: 20px;
  }
}
