:root {
  --dark: #061f33;
  --dark-2: #031522;
  --blue: #0b6fa4;
  --blue-light: #0f8bc7;
  --text: #1d2b36;
  --muted: #65737f;
  --bg: #f5f8fb;
  --white: #ffffff;
  --border: #dfe8ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  text-decoration: none;
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 10;
  padding: 24px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 62px;
  width: auto;
  display: block;
}

.header-phone {
  color: var(--white);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(5px);
}

/* Hero */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-image: url("bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 31, 51, 0.12) 0%,
      rgba(6, 31, 51, 0.48) 42%,
      rgba(6, 31, 51, 0.88) 100%
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding: 130px 7% 90px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.24);
  font-size: 16px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 800;
}

.hero p {
  margin: 0 0 34px;
  max-width: 640px;
  font-size: 21px;
  line-height: 1.85;
  color: rgba(255,255,255,0.93);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 28px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--blue-light);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.11);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.20);
}

/* General sections */

.section {
  padding: 78px 7%;
}

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

.section-title {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.25;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

/* Cards */

.cards {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: #f8fbfd;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 12px 32px rgba(6,31,51,0.06);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(15,139,199,0.13);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 21px;
}

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

/* Trust line */

.trust-line {
  background: var(--dark);
  color: var(--white);
  padding: 34px 7%;
  text-align: center;
}

.trust-line p {
  margin: 0;
  font-size: 22px;
}

.trust-line strong {
  color: #7bd2ff;
}

/* Chat */

.chat-section {
  background:
    linear-gradient(135deg, #f5f8fb 0%, #ffffff 100%);
}

.chat-wrapper {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(6,31,51,0.08);
  overflow: hidden;
}

.chat-text {
  padding: 44px;
  background: var(--dark);
  color: var(--white);
}

.chat-text h2 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.25;
}

.chat-text p {
  margin: 0;
  font-size: 18px;
  color: rgba(255,255,255,0.86);
}

.chat-demo {
  padding: 38px;
  background: var(--white);
}

.chat-message {
  background: #f8fbfd;
  border: 1px solid var(--border);
  border-radius: 18px 18px 4px 18px;
  padding: 18px;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(6,31,51,0.06);
  margin-bottom: 18px;
  font-size: 16px;
}

.chat-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.chat-options button {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 12px;
  font-size: 15px;
  color: var(--dark);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.chat-options button:hover {
  border-color: var(--blue-light);
  color: var(--blue);
  background: #f2f9fd;
}

.chat-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Footer */

.site-footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.76);
  padding: 34px 7%;
  text-align: center;
  font-size: 15px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--white);
}

/* Responsive */

@media (max-width: 900px) {
  .site-header {
    padding: 18px 24px;
  }

  .logo img {
    max-height: 48px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: 86vh;
    background-position: center center;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(6, 31, 51, 0.28) 0%,
        rgba(6, 31, 51, 0.62) 45%,
        rgba(6, 31, 51, 0.90) 100%
      );
  }

  .hero-content {
    padding: 110px 24px 70px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 58px 24px;
  }

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

  .chat-text,
  .chat-demo {
    padding: 28px 22px;
  }

  .chat-options {
    grid-template-columns: 1fr;
  }

  .trust-line p {
    font-size: 18px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}