:root {
  --accent: #2f6df6;
  --dark: #111827;
  --text: #253044;
  --muted: #8a95a8;
  --page: #f7f8fa;
  --soft: #eef4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.12);
}

.nav-row {
  min-height: 164px;
  padding: 38px 0 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo cta"
    "nav cta";
  align-items: center;
  align-content: start;
}


.logo,
.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.logo {
  grid-area: logo;
  font-size: 37px;
  line-height: 1;
}

.logo span,
.brand span,
.accent {
  color: var(--accent);
}

.main-nav {
  grid-area: nav;
  display: flex;
  gap: 36px;
  align-items: center;
  margin-top: 30px;
  padding-left: 56px;
}

.main-nav a {
  color: #2f3b4f;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--accent);
}

.cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border-radius: 0;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  align-self: center;
  margin-right: 3px;
}

.hamburger {
  display: none;
}


.hero {
  background: var(--page);
  padding: 110px 0 130px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 38px;
  line-height: 1.12;
  font-weight: 800;
}

.hero h1 .accent {
  display: inline;
}

.lead {
  max-width: 500px;
  margin: 0;
  color: #7b879a;
  font-size: 14px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 31px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 39px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.illustration {
  width: min(380px, 100%);
}

.hero-image,
.feature-image {
  display: block;
  width: 100%;
  height: auto;
}

.dark-section {
  background: var(--dark);
  color: #fff;
  padding: 88px 0 72px;
}

.stats-inner,
.services .container,
.features-inner,
.testimonials .container {
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
}

.dark-section .section-title {
  color: #fff;
}

.section-title .accent {
  display: inline;
}

.subtitle {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.stat-card {
  min-height: 126px;
  padding: 32px 20px 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.stat-num {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.stat-label {
  margin-top: 22px;
  color: #d2d8e3;
  font-size: 13px;
  font-weight: 500;
}

.services {
  background: var(--page);
  padding: 84px 0 78px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
  text-align: left;
}

.service-card {
  min-height: 300px;
  padding: 34px 28px 31px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 18px;
}

.service-card h3 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
}

.service-card p {
  margin: 0 0 24px;
  color: #7b879a;
  font-size: 12px;
  line-height: 1.75;
}

.learn {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.learn i {
  margin-left: 4px;
  font-size: 11px;
}

.features {
  background: #fff;
  padding: 84px 0 78px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 58px;
  text-align: left;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-image {
  max-width: 440px;
}

.feature-list {
  display: grid;
  gap: 33px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  min-height: 54px;
  padding-left: 72px;
  color: #7b879a;
  font-size: 12px;
  line-height: 1.7;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
}

.feature-list li:nth-child(1)::before {
  content: "\f0e7";
}

.feature-list li:nth-child(2)::before {
  content: "\f31e";
}

.feature-list li:nth-child(3)::before {
  content: "\f1de";
}

.feature-list li:nth-child(4)::before {
  content: "\f126";
}

.feature-list strong {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.testimonials {
  background: var(--page);
  padding: 84px 0 76px;
}

.testimonial-cards {
  max-width: 760px;
  margin: 50px auto 0;
}

.testimonial-card {
  display: none;
  position: relative;
  padding: 41px 42px 38px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  text-align: left;
}

.testimonial-card.active {
  display: block;
}

.quote {
  position: relative;
  margin: 0 0 28px;
  color: #526074;
  font-size: 15px;
  line-height: 1.85;
  font-style: italic;
  font-weight: 500;
}

.quote::after {
  content: "\201c";
  position: absolute;
  right: -9px;
  top: -22px;
  color: rgba(47, 109, 246, 0.12);
  font-size: 64px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.author {
  display: flex;
  align-items: center;
  gap: 17px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar i {
  color: white;
  font-size: 24px;
}

.name {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.role {
  margin-top: 7px;
  color: #7b879a;
  font-size: 12px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 28px;
}

.tc-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e4eaf5;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.tc-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d9dee8;
  cursor: pointer;
}

.tc-dot.active {
  background: var(--accent);
}

.site-footer {
  background: var(--dark);
  color: #c4cedd;
  padding-top: 61px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1fr 1.3fr;
  gap: 56px;
  padding-bottom: 60px;
}

.footer-brand .brand {
  font-size: 22px;
  line-height: 1;
}

.footer-desc {
  margin: 36px 0 0;
  color: #b7c1d0;
  font-size: 13px;
  line-height: 1.65;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 25px;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.footer-section h4 {
  margin: 0 0 27px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.footer-section a,
.contact-info p {
  display: block;
  margin: 0 0 17px;
  color: #b7c1d0;
  font-size: 12px;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  width: 16px;
  color: var(--accent);
}

.footer-subscribe {
  display: flex;
  margin-top: 22px;
}

.footer-subscribe input {
  width: 150px;
  height: 34px;
  border: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  color: var(--text);
  font-size: 11px;
  outline: 0;
}

.footer-subscribe button {
  height: 34px;
  border: 0;
  border-radius: 0 4px 4px 0;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom-inner {
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.copyright,
.footer-policies a {
  color: #aeb8c8;
  font-size: 11px;
  text-decoration: none;
}

.footer-policies {
  display: flex;
  gap: 32px;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 720px);
  }

  .nav-row {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "logo cta hamburger";
    min-height: 72px;
    padding: 16px 0;
    gap: 16px;
    align-content: center;
  }

  .hamburger {
    grid-area: hamburger;
    display: flex;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding-left: 0;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transition: max-height 220ms ease;
  }

  .main-nav.open {
    max-height: 360px;
  }

  .main-nav a {
    padding: 14px 24px;
    border-top: 1px solid #eef2f8;
  }

  .hero {
    padding: 70px 0 78px;
  }

  .hero-inner,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-inner {
    text-align: center;
  }

  .lead,
  .hero-actions {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid,
  .cards-grid,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 480px);
  }

  .logo {
    font-size: 19px;
  }

  .cta {
    min-width: 94px;
    height: 34px;
  }

  .hero h1,
  .section-title {
    font-size: 28px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .stats-grid,
  .cards-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .dark-section,
  .services,
  .features,
  .testimonials {
    padding: 64px 0;
  }

  .features-grid {
    margin-top: 42px;
  }

  .feature-list li {
    padding-left: 60px;
  }

  .testimonial-card {
    padding: 28px 24px;
  }

  .footer-bottom-inner,
  .footer-policies {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
