:root {
  --accent: #4b5563;
  --accent-dark: #374151;
  --gray-text: #4d5157;
  --gray-heading: #4c4e52;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  line-height: 1.6;
  font-size: 16px;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-header__logo img {
  height: 44px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--black);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
}

/* ---------- Hero / Banner ---------- */
.hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  background-image: url("../assets/main_background.jpg");
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  margin-top: 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(51, 51, 51, 0.3), rgba(51, 51, 51, 0.3));
}

.hero__box {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 480px;
  padding: 50px 54px 60px;
  background: rgba(55, 65, 81, 0.85);
  z-index: 1;
  text-align: left;
}

.hero__title {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 22px;
}

.hero__descr {
  font-size: 16px;
  color: var(--white);
}

/* ---------- Page title (inner pages) ---------- */
.page-head {
  margin-top: 72px;
  padding: 72px 0 48px;
  background: var(--white);
  text-align: center;
}

.page-head h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--gray-heading);
}

.page-head p {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 17px;
  color: var(--black);
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}

.section--gray {
  background: var(--gray-bg);
}

.section--white {
  background: var(--white);
}

.section__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--gray-heading);
  text-align: center;
  margin-bottom: 20px;
}

.section__subtitle {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 17px;
  color: var(--black);
}

/* ---------- Two column (about) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

.about-grid h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--gray-text);
}

.about-grid p {
  font-size: 18px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}

.card {
  text-align: center;
}

.card__icon {
  margin: 0 auto 22px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 90px;
  height: 90px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
}

.card p {
  font-size: 16px;
  color: var(--black);
}

/* ---------- Feature list ---------- */
.feature-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.feature-list__icon svg {
  width: 56px;
  height: 56px;
}

.feature-list h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-list p {
  font-size: 15px;
  color: #333;
}

/* ---------- Clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.client {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client__logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.client__logo img {
  max-height: 80px;
  max-width: 180px;
}

.client p {
  font-size: 14px;
  color: var(--black);
}

/* ---------- Timeline ---------- */
.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.timeline__item {
  position: relative;
  padding: 0 0 40px 56px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.3;
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__item h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline__item p {
  font-size: 15px;
  color: #333;
}

/* ---------- Info blocks ---------- */
.info-block {
  margin-bottom: 40px;
}

.info-block h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-heading);
  margin-bottom: 16px;
}

.info-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.info-block p {
  margin-bottom: 12px;
}

.info-block ul,
.info-block ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.info-block li {
  margin-bottom: 8px;
}

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-item {
  margin-bottom: 28px;
}

.contact-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.contact-item a {
  color: var(--accent);
  font-weight: 600;
  font-size: 20px;
}

.contact-item p {
  font-size: 17px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 18px;
}

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

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.checkbox-row input {
  margin-top: 3px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-bg);
  padding: 48px 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__copy {
  font-size: 14px;
  color: var(--gray-text);
}

.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer nav a {
  font-size: 14px;
  color: var(--gray-text);
}

.site-footer nav a:hover {
  color: var(--accent);
}

.back-to-top {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 960px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }

  .site-nav li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-toggle {
    display: flex;
  }

  .hero__box {
    padding: 26px 20px 30px;
  }

  .hero__title {
    font-size: 24px;
    margin-bottom: 17px;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 32px;
  }

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

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

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

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

@media screen and (max-width: 600px) {
  .hero {
    height: 50vh;
    min-height: 320px;
  }

  .hero__box {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    padding: 22px 20px 26px;
  }

  .hero__title {
    font-size: 22px;
  }

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

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

/* ---------- AI Agents page ---------- */
.ai-hero {
  margin-top: 72px;
  padding: 84px 0 72px;
  background: linear-gradient(135deg, #4b5563 0%, #374151 55%, #1f2937 100%);
  color: var(--white);
}

.ai-hero__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}

.ai-hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}

.ai-hero__lead {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--white);
}

.ai-hero__content p {
  font-size: 17px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.95);
}

.ai-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.ai-hero__actions .btn {
  background: var(--white);
  color: var(--accent);
}

.ai-hero__actions .btn:hover {
  background: #e5e7eb;
}

.ai-hero__actions .btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.ai-hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.ai-hero__features {
  list-style: none;
  display: grid;
  gap: 20px;
}

.ai-hero__features li {
  position: relative;
  padding-left: 38px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.ai-hero__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ai-hero__features li::after {
  content: "\2713";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
}

/* ---------- Data table ---------- */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--white);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 16px 20px;
  border: 1px solid #e3e5ea;
  vertical-align: top;
  font-size: 15px;
}

.data-table thead th {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
}

.data-table tbody tr:nth-child(even) {
  background: var(--gray-bg);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  padding: 26px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__item:first-child {
  padding-top: 0;
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__item h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq__item p {
  font-size: 16px;
  color: #333;
}

/* ---------- Promo banner (main page) ---------- */
.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
  border-radius: 12px;
  color: var(--white);
}

.promo__content {
  flex: 1 1 480px;
}

.promo__content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.promo__content p {
  font-size: 17px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.95);
}

.promo .btn {
  background: var(--white);
  color: var(--accent);
}

.promo .btn:hover {
  background: #e5e7eb;
}

/* ---------- CTA ---------- */
.cta {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 18px;
  background: var(--white);
}

@media screen and (max-width: 960px) {
  .ai-hero {
    padding: 56px 0 48px;
  }

  .ai-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-hero h1 {
    font-size: 32px;
  }
}
