/* ============================= */
/* GLOBAL */
/* ============================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --background: #ffffff;
  --foreground: #171717;
}

body {
  background: var(--background);
  color: var(--foreground);
}

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

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}


/* ============================= */
/* GLOBAL COMPONENTS */
/* ============================= */

.card {
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;

  width: 100%;
  min-width: 0;
}

.icon {
  width: 40px;
  flex-shrink: 0;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-size: 18px;
  color: #222;
}

.card-text {
  font-size: 15px;
  color: #666;
}

.button {
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: linear-gradient(90deg,#20c997,#2b5cff);
}


/* ============================= */
/* HEADER */
/* ============================= */

.header-wrapper {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  background-color: white;
}

.header-wrapper .container {
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  justify-self: center;
  display: flex;
  align-items: center;
}

.logo img {
  height: 35px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: end;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
}


/* ============================= */
/* TOP BLOCK */
/* ============================= */

.top-block {
  width: 100%;
  padding: 80px 0;
  background-color: white;
}

.top-block .container {
  padding: 0 60px;
  display: grid;
  grid-template-columns: 520px auto;
  align-items: center;
}

.top-block .title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #222;
}

.top-block .subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555;
}

.top-block .list {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-block .list-item {
  font-size: 17px;
  color: #333;
}

.top-block .right {
  display: flex;
  justify-content: center;
}

.top-block .image-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


/* ============================= */
/* MIDDLE BLOCK */
/* ============================= */

.middle-block {
  width: 100%;
  padding: 100px 0;
  background: #f7f9fc;
}

.middle-block .container {
  padding: 0 20px;
}

.middle-block .header {
  text-align: center;
  margin-bottom: 60px;
}

.middle-block .title {
  font-size: 36px;
  color: #222;
}

.middle-block .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.middle-block .card {
  background: white;
  border-radius: 14px;
  padding: 28px;

  display: flex;
  gap: 16px;
  align-items: flex-start;

  box-shadow: 0 8px 20px rgba(0,0,0,0.05);

  width: 100%;
}

/* ============================= */
/* BOTTOM BLOCK */
/* ============================= */

.bottom-block {
  width: 100%;
  padding: 100px 0;
  background: white;
}

.bottom-block .container {
  padding: 0 20px;
}

.bottom-block .header {
  text-align: center;
  margin-bottom: 60px;
}

.bottom-block .title {
  font-size: 36px;
  color: #222;
}

.bottom-block .subtitle {
  font-size: 18px;
  color: #777;
}

.bottom-block .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.bottom-block .card {
  background: #f7f9fc;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
}

.bottom-block .button-wrapper {
  display: flex;
  justify-content: center;
}


/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  width: 100%;
  padding: 40px 0;
  background: #f7f9fc;
}

.footer .container {
  padding: 0 20px;
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: #777;
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1085px) {

  .top-block .container {
    grid-template-columns: 1fr;
    padding: 0 30px;
  }

  .top-block .left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .top-block .right {
    display: none;
  }

}

@media (max-width: 900px) {

  .top-block {
    padding: 40px 0;
  }

  .top-block .title {
    font-size: 32px;
  }

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

}

@media (max-width: 600px) {

  .top-block,
  .middle-block,
  .bottom-block {
    padding: 60px 0;
  }

  .top-block .title,
  .middle-block .title,
  .bottom-block .title {
    font-size: 28px;
  }

  .card {
    padding: 22px;
  }

  .icon {
    width: 32px;
  }

  .bottom-block .grid {
    grid-template-columns: 1fr;
  }

}