:root {
  --primary-color: #4D5AE5;
  --navy-blue: #2E2F42;
  --slate: #434455;
  --white: #FFFFFF;
  --cloud: #F4F4FD;
  --ocean: #404BBF;
  --border-color: #E7E9FC;
  --success: #16a34a;
  --error: #dc2626;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--slate);
  line-height: 1.5;
  background: #fff;
}

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

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

/* HEADER */

.header {
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 1px rgba(46,47,66,0.08);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
}

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

.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 76px;
}

.logo-dark {
  color: var(--navy-blue);
}

.nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--navy-blue);
  text-decoration: none;
  padding: 24px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--ocean);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CONTACTS */

.contacts-list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.contact-link {
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--primary-color);
}

/* BURGER */

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

.burger span {
  width: 28px;
  height: 3px;
  background: var(--navy-blue);
  border-radius: 2px;
  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* HERO */

.hero {
  padding: 80px 0;
  background: var(--navy-blue);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-left {
  flex: 0 0 45%;
}

.hero-right {
  flex: 0 0 55%;
  display: flex;
  justify-content: flex-end;
}

.hero-label {
  color: #9ca3af;
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 48px;
  color: #fff;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
  color: #fff;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-btn {
  background: #2563eb;
  color: #fff;
  padding: 14px 34px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.hero-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.hero-link:hover {
  text-decoration: underline;
}

.hero-image {
  max-width: 560px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.05)
  );
}

/* SECTION */

.section {
  padding: 120px 0;
}

.section-title {
  font-size: 38px;
  text-align: center;
  color: var(--navy-blue);
  margin-bottom: 24px;
}

.section-description {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.8;
  font-size: 17px;
}

/* FEATURES */

.features-list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.features-item {
  flex-basis: calc((100% - 72px) / 4);
  background: #fff;
  padding: 40px 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(46,47,66,0.08);
}

.features-icon {
  width: 90px;
  height: 90px;
  background: var(--cloud);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary-color);
}

.features-subtitle {
  font-size: 22px;
  color: var(--navy-blue);
  margin-bottom: 14px;
  font-weight: 700;
}

.features-text {
  font-size: 16px;
  line-height: 1.7;
}

/* TEAM */

.team-section {
  background: var(--cloud);
}

.team-list {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.team-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 10px rgba(46,47,66,0.08);
  flex-basis: calc((100% - 72px) / 4);
}

.team-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
}

.team-content {
  padding: 28px;
  text-align: center;
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-blue);
}

.team-role {
  margin-top: 8px;
  font-size: 15px;
}

/* CONTENT */

.content-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}

.content-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(46,47,66,0.08);
  transition: transform 0.3s;
}

.content-item:hover {
  transform: translateY(-6px);
}

.content-img img {
  height: 240px;
  object-fit: cover;
}

.content-info {
  padding: 24px;
}

.content-title {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--navy-blue);
}

.content-text {
  line-height: 1.7;
}

/* STACK */

.stack-section {
  background: #fff;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
}

.stack-item {
  padding: 32px;
  border-radius: 18px;
  background: var(--cloud);
}

.stack-item h3 {
  margin-bottom: 16px;
  color: var(--navy-blue);
  font-size: 22px;
}

.stack-item p {
  line-height: 1.7;
}

/* AUTOMATION */

.automation-section {
  background: var(--navy-blue);
  position: relative;
  overflow: hidden;
}

.automation-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(77, 90, 229, 0.12);
  border-radius: 50%;
  top: -220px;
  right: -180px;
  filter: blur(40px);
}

.automation-section .section-title {
  color: #fff;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.automation-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 30px;
  color: #fff;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
  backdrop-filter: blur(10px);
}

.automation-card:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 90, 229, 0.6);
  background: rgba(255,255,255,0.11);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.automation-number {
  width: 62px;
  height: 62px;
  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #5b6cff,
    #4D5AE5
  );

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  font-weight: 700;
  color: #fff;

  margin: 0 auto 28px;

  box-shadow:
    0 10px 24px rgba(77, 90, 229, 0.35);
}

.automation-card h3 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.automation-card p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
}

/* TABLET */

@media (max-width: 1150px) {

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

/* MOBILE */

@media (max-width: 768px) {

  .automation-section .section-title {
    margin-bottom: 40px;
  }

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

  .automation-card {
    padding: 30px 24px;
  }

  .automation-card h3 {
    font-size: 24px;
  }

  .automation-card p {
    font-size: 16px;
    line-height: 1.7;
  }
}
/* CLIENTS */

.clients {
  padding: 80px 0;
  background: var(--cloud);
}

.clients-title {
  font-size: 34px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--navy-blue);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.client-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 2px solid #e5e7eb;
  transition: 0.3s;
  color: #8E8F99;
}

.client-card:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.client-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.client-name {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* LEAD */

.lead-section {
  background: #fff;
}

.lead-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.lead-title {
  text-align: left;
}

.lead-text {
  margin-bottom: 28px;
  line-height: 1.8;
  font-size: 17px;
}

.lead-benefits {
  padding-left: 20px;
}

.lead-benefits li {
  margin-bottom: 14px;
  line-height: 1.7;
}

.lead-form {
  background: var(--cloud);
  padding: 36px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}

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

.lead-form-full {
  grid-column: span 2;
}

.lead-btn {
  grid-column: span 2;
  border: none;
  background: var(--primary-color);
  color: #fff;
  border-radius: 10px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.lead-btn:hover {
  background: var(--ocean);
}

.form-status {
  grid-column: span 2;
  font-size: 14px;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

/* FOOTER */

.footer {
  background: var(--navy-blue);
  padding: 100px 0 40px;
  color: #fff;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.logo-footer {
  color: #fff;
  text-decoration: none;
}

.logo-accent {
  color: var(--primary-color);
}

.footer-text {
  margin-top: 16px;
  line-height: 1.7;
}

.footer-subtitle {
  margin-bottom: 16px;
  font-weight: 600;
}

.social-list {
  display: flex;
  gap: 14px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.subscribe-input {
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
}

.subscribe-btn {
  border: none;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
}

.footer-bottom {
  margin-top: 60px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* MODAL */

.js-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.is-hidden {
  display: none;
}

.modal {
  background: #fff;
  width: 90%;
  max-width: 460px;
  border-radius: 18px;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

.modal-title {
  margin-bottom: 24px;
  font-size: 28px;
  color: var(--navy-blue);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-input,
.modal-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
}

.modal-textarea {
  min-height: 120px;
}

.modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.modal-btn {
  border: none;
  background: var(--primary-color);
  color: #fff;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 1150px) {

  .features-list,
  .stack-list,
  .automation-grid,
  .content-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-container {
    grid-template-columns: 1fr;
  }

  .team-item {
    flex-basis: calc((100% - 24px) / 2);
  }

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

@media (max-width: 768px) {

  .burger {
    display: flex;
  }

  .nav-list,
  .contacts-list {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: 0.3s;
  }

  .nav-list.open,
  .contacts-list.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .hero-title {
    font-size: 34px;
  }

  .features-list,
  .stack-list,
  .automation-grid,
  .content-list {
    grid-template-columns: 1fr;
    display: grid;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form-full,
  .lead-btn,
  .form-status {
    grid-column: span 1;
  }

  .team-item {
    flex-basis: 100%;
  }

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

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {

  .hero-title {
    font-size: 28px;
  }

  .hero-text {
    font-size: 15px;
  }

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

  .modal {
    padding: 30px 20px;
  }
}