:root {
  --primary-color: #646464;
  --secondary-color: #e03430;
  --secondary-color-hover: #b42a26;
  --ternary-color: #555;
  --light-color: #ccc;
  --white-color: #FFF;
  --light-secondary-color: #ddd;
  --light-ternary-color: #eee;
  --overlay-color: rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  font-size: 1.1rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  width: 100%;
}

.container {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 2rem;
}

/* navbar */

.navbar {
  font-size: 1.2rem;
  padding: 1.5rem 0;
}

.navbar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.navbar ul {
  display: flex;
  justify-self: flex-end;
  align-items: center;
  justify-content: center;
}

.logo img {
    max-width: 200px;
}

/* showcase section */

.section-showcase {
  margin: 2rem 0;
}

.section-showcase .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.section-showcase h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-weight: 400;
}

.section-showcase p {
  margin: 1rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--secondary-color);
  cursor: pointer;
  font-size: 1rem;
  border-radius: 12px;
}

.btn:hover {
  background: var(--secondary-color-hover);
  border-color: var(--secondary-color-hover);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--secondary-color);
  cursor: pointer;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--white-color);
  border-color: var(--secondary-color);
}

.buttons-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* large text section */

.section-large-text {
  position: relative;
  background: url("platforma-imagine.jpg")
    bottom center/cover no-repeat; bottom center/cover
    no-repeat;
  height: 600px;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--overlay-color);
}

.section-large-text-inner {
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  max-width: 860px;
  padding: 5rem 0;
}

.section-large-text-inner h2 {
  font-size: 4rem;
  margin-top: 1rem;
  font-weight: 400;
}

.section-large-text-inner h3 {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
}

.section-large-text-inner p {
  font-size: 1rem;
  margin-top: 1rem;
}

/* gallery */

.vehicle-type {
    display: flex;
    margin-top: 2rem;
    gap: 30px;
}

.vehicle-type .item {
    border-radius: 50%;
    overflow: hidden;
    width: 200px;
    height: 200px;
    background: #FFF;
    display: flex;
    align-items: center;
}

section.apps {
    margin: 60px 0;
}

section.apps h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

.store-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.section-gallery .gallery img:first-child {
  grid-row: 1/3;
  grid-column: 1/3;
}

.section-gallery .gallery img:nth-child(2) {
  grid-column-start: 3;
  grid-column-end: 5;
}

.section-gallery .gallery img {
  width: 100%;
  height: 100%;
}

/* footer */

.section-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 4rem 0; 
}

.section-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;  
  gap: 1rem;
}

.section-footer h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-footer h3 {
  margin-bottom: 0.7rem;
}

.section-footer a {
  line-height: 1.9;
  color: var(--light-color);
}

.section-footer a > i {
  color: var(--ternary-color);
  margin-right: 0.5rem;
}

.email-form {
  display: inline-block;
  width: 100%;
  background-color: var(--ternary-color);
  position: relative;
  border-radius: 20px;
  line-height: 0;
  margin-top: 1rem;
}

.email-form .form-control {
  display: inline-block;
  width: 100%;
  height: 45px;
  border-radius: 20px;
  border: 0;
  outline: 0;
  font-size: 1rem;
  color: var(--light-secondary-color);
  background-color: transparent;
  font-family: inherit;
  margin: 0;
  padding: 0 3rem 0 1.5rem;
}

.email-form .submit {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background-color: var(--light-ternary-color);
  font-size: 1rem;
  text-align: center;
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  border-radius: 0 20px 20px 0;
  color: var(--primary-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  .section-showcase .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-showcase .container div:first-child {
    order: 2;
  }

  .section-showcase .container div:nth-child(2) {
    order: -1;
  }

  .section-showcase h1 {
    font-size: 2rem;
  }

  .section-showcase img {
    width: 80%;
    margin: auto;
  }

  .section-large-text-inner h2 {
    font-size: 3rem;
  }

  .section-large-text-inner h3 {
    font-size: 1.5rem;
  }

  .section-large-text-inner p {
    font-size: 1.25rem;
  }

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

  .section-gallery .gallery img:first-child {
    grid-row: 1/1;
    grid-column: 1/1;
  }

  .section-gallery .gallery img:nth-child(2) {
    grid-row: 2/2;
    grid-column: 2/4;
  }

  .section-gallery .gallery img:last-child {
    display: none;
  }

  .section-footer {
    padding: 2rem 0;
  }

  .section-footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-footer div:nth-child(2),
  .section-footer div:nth-child(3) {
    display: none;
  }
}
