:root {
  --blue-primary: #2798f5;
  --blue-dark: #123a63;
  --blue-darker: #0b223b;
  --text-light: #eef6ff;
  --text-main: #183049;
  --surface: #ffffff;
  --surface-soft: #f4f9ff;
  --shadow: 0 10px 30px rgba(10, 35, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--surface-soft);
  scroll-behavior: smooth;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(11, 34, 59, 0.12);
  box-shadow: 0 6px 18px rgba(10, 35, 61, 0.07);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.logo {
  width: 160px;
  max-width: 100%;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
}

.main-nav a {
  color: var(--blue-darker);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
}

.main-nav a:hover {
  color: var(--blue-primary);
}

.hero {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-dark) 55%, var(--blue-primary) 100%);
  color: var(--text-light);
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.14;
}

.hero p {
  max-width: 55ch;
  line-height: 1.6;
}

.btn-primary {
  margin-top: 1.2rem;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: var(--blue-darker);
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #d8ecff;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.2rem;
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  padding-left: 1.1rem;
  margin: 0;
  line-height: 1.65;
}

.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--blue-darker);
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
}

.benefit-grid,
.service-grid {
  display: grid;
  gap: 1rem;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-grid article,
.service-card,
.contact-wrap {
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.benefit-grid article {
  padding: 1.2rem;
  border-top: 4px solid var(--blue-primary);
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card span {
  font-size: 1.7rem;
  display: inline-block;
  margin-bottom: 0.55rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1rem;
}

.contact-wrap {
  padding: 1.3rem 1.5rem;
  text-align: center;
}

.contact-wrap a {
  color: var(--blue-dark);
  font-weight: 600;
}

.site-footer {
  background: var(--blue-darker);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
}

.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 60;
}

.chat-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: end;
  background: rgba(8, 18, 30, 0.58);
  z-index: 70;
  padding: 1rem;
}

.chat-modal.open {
  display: grid;
}

.chat-dialog {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-header {
  background: var(--blue-darker);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
}

.chat-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-loading,
.chat-fallback {
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-loading {
  color: var(--blue-darker);
  background: #f4f9ff;
}

.chat-fallback {
  color: #7a1d1d;
  background: #fff4f4;
  border-top: 1px solid #ffd3d3;
}

.chat-fallback a {
  color: #8f1a1a;
  font-weight: 600;
}

.chat-fallback-static {
  min-height: 220px;
}

.chat-dialog iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: none;
}

.chat-dialog iframe.chat-ready {
  display: block;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .logo {
    width: 124px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

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