*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

:root {
  --primary: #f6be4a;
  --primary-darken: #e5a830;
  --b24-primary-color: #f6be4a;
  --b24-primary-text-color: #fff;
  --b24-primary-color-hover: #e5a830;
  --b24-primary-color-light: rgba(246, 190, 74, 0.2);
}

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1 0 0%;
  padding: 0 15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 0.3s, background 0.3s;
  padding: 16px 0;
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.95);
  padding: 10px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  max-width: 180px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 0.786rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: #f6be4a;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: 0.3s;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: #222;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text-block {
  background: #f6be4a;
  padding: 40px 50px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.hero h1 {
  color: #fff;
  font-size: 2.357rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.429rem;
  max-width: 645px;
  margin: 0 auto 35px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.857rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-darken);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(246,190,74,0.4);
}

/* Section common */
.section {
  padding: 30px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 20px;
  padding-bottom: 15px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #f6be4a;
  margin-top: 15px;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
}

/* Section title variant */
.section-title-centered {
  text-align: center;
}

.section-title-centered::after {
  margin: 15px auto 0;
}

/* Headings with underline accent */
.heading-accent {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.heading-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #f6be4a;
}

/* Steps (Audit / Setup / Training) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.step-card {
  text-align: center;
  padding: 40px 30px;
  border: 1px solid #eee;
  border-left: none;
  transition: all 0.3s;
}

.step-card:hover {
  border-bottom: 2px solid #f6be4a;
}

.step-card:first-child {
  border-left: 1px solid #eee;
}

.step-icon {
  font-size: 2.857rem;
  color: #f6be4a;
  margin-bottom: 15px;
  display: block;
}

.step-card h3 {
  font-size: 1.429rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 1rem;
  color: #000;
}

.step-divider {
  width: 40px;
  height: 2px;
  background: #f6be4a;
  margin: 15px auto;
}

/* Advantages grid 2x3 */
.advantage-item {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.advantage-icon {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  margin-top: 25px;
}

.advantage-icon i {
  font-size: 3.429rem;
  color: #f6be4a;
  line-height: 1;
}

.advantage-body {
  flex: 1;
}

.advantage-body h4 {
  font-size: 1.143rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.advantage-body p,
.advantage-body div {
  font-size: 1rem;
  color: #000;
}

/* Solutions grid 2x2 */
.solution-item {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.solution-icon {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  margin-top: 25px;
}

.solution-icon i {
  font-size: 3.429rem;
  color: #f6be4a;
  line-height: 1;
}

.solution-body {
  flex: 1;
}

.solution-body h4 {
  font-size: 1.286rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.solution-body p {
  font-size: 1rem;
  color: #000;
}

/* AI tools */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.ai-item {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.ai-icon {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  margin-top: 25px;
}

.ai-icon i {
  font-size: 3.429rem;
  color: #f6be4a;
  line-height: 1;
}

.ai-body {
  flex: 1;
}

.ai-body h4 {
  font-size: 1.286rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.ai-body p {
  font-size: 1rem;
  color: #000;
}

/* Slider */
.slider {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-slide {
  min-width: 100%;
  padding: 0;
}

.slider-slide img {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  color: #f6be4a;
}

.slider-btn--prev {
  left: 10px;
}

.slider-btn--next {
  right: 10px;
}

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

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.slider-dot.active {
  background: #f6be4a;
}

/* Checklist (Info-Expert) */
.checklist-item {
  display: flex;
  margin-bottom: 10px;
}

.checklist-icon {
  flex: 0 0 8.333%;
  max-width: 8.333%;
  padding: 0 15px;
  text-align: right;
  font-size: 1.571rem;
  color: #f6be4a;
}

.checklist-body {
  flex: 0 0 91.667%;
  max-width: 91.667%;
  padding: 0 15px;
}

.checklist-body h4 {
  font-size: 1.286rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.checklist-body p,
.checklist-body div {
  font-size: 1rem;
  color: #000;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  cursor: pointer;
  position: relative;
  gap: 40px;
}

.faq-question h3 {
  font-size: 1.786rem;
  color: #000;
  font-weight: 400;
  flex: 1;
  padding-right: 50px;
}

.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #f6be4a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: 0.3s;
  position: absolute;
  right: 30px;
  top: 30px;
}

.faq-toggle i {
  color: #fff;
  font-size: 0.9rem;
  transition: 0.3s;
}

.faq-toggle .fa-times {
  display: none;
}

.faq-item.open .faq-toggle .fa-chevron-down {
  display: none;
}

.faq-item.open .faq-toggle .fa-times {
  display: inline;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 30px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 30px 30px;
}

.faq-answer p,
.faq-answer div {
  font-size: 1rem;
  color: #000;
}

/* Form section */
.form-section {
  padding: 100px 0;
  background: transparent;
}

.form-section .container {
  max-width: 800px;
}

.form-placeholder {
  border: 2px dashed #ccc;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  color: #999;
  font-size: 1.2rem;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.contact-card {
  text-align: center;
  padding: 30px 15px;
  margin-bottom: 15px;
  position: relative;
}

.contact-card + .contact-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: #f6be4a;
}

.contact-icon {
  font-size: 3.571rem;
  color: #f6be4a;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.contact-label {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.contact-value {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.contact-card a {
  transition: color 0.2s;
}

.contact-card a:hover {
  color: #f6be4a;
}

/* Hide Bitrix24 branding in form */
.b24-form-sign,
.bitrix-footer,
.bitrix24-form-footer,
.b24-form .b24-form-sign {
  display: none !important;
}

/* Style Bitrix24 form to match site theme */
.b24-form {
  --b24-primary-color: var(--primary);
  --b24-primary-text-color: #fff;
}

.b24-form .b24-form-btn {
  background-color: var(--primary) !important;
  border-radius: 50px !important;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 15px;
  font-size: 0.857rem;
  color: #666;
  border-top: 1px solid #eee;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: flex;
  }

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

  .step-card {
    border-left: 1px solid #eee;
    margin-bottom: 15px;
  }

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

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

  .contact-card + .contact-card::before {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

@media (max-width: 768px) {
  .advantage-item {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  .advantage-icon {
    margin-top: 0;
    width: auto;
    text-align: center;
  }

  .solution-item {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  .solution-icon {
    margin-top: 0;
    width: auto;
    text-align: center;
  }

  .ai-item {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  .ai-icon {
    margin-top: 0;
    width: auto;
    text-align: center;
  }

  .checklist-icon {
    flex: 0 0 15%;
    max-width: 15%;
    text-align: left;
  }

  .checklist-body {
    flex: 0 0 85%;
    max-width: 85%;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question h3 {
    font-size: 1.3rem;
  }

  .faq-toggle {
    right: 20px;
    top: 20px;
  }

  .faq-item.open .faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .slider-slide img {
    min-height: auto;
    object-fit: contain;
  }
}
