:root {
  --blue: #00577b;
  --yellow: #d8cb13;
  --yellow-dark: #d3b902;
  --ink: #4b4b4b;
  --pale: #f7f7f7;
  --footer: #042835;
  --footer-bottom: #011218;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow {
  width: min(900px, calc(100% - 40px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  height: 61px;
  color: var(--blue);
  background: var(--yellow-dark);
}

.topbar__inner,
.topbar__left,
.topbar__item {
  display: flex;
  align-items: center;
}

.topbar__inner {
  height: 100%;
  justify-content: space-between;
}

.topbar__left {
  gap: 27px;
}

.topbar__item {
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  transition: opacity .2s ease, color .2s ease;
}

.topbar__item:hover {
  opacity: .86;
}

.contact-icon {
  width: 29px;
  height: 29px;
  display: grid;
  flex: 0 0 29px;
  place-items: center;
  border: 1px solid rgba(0, 87, 123, .42);
  border-radius: 50%;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.contact-icon svg {
  width: 17px;
  height: 17px;
}

.contact-icon--email svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon--whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.topbar__item:hover .contact-icon {
  color: var(--yellow-dark);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.topbar__instagram > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar__instagram > svg .fill {
  fill: currentColor;
  stroke: none;
}

.topbar__instagram {
  flex-direction: row;
  gap: 21px;
}

.hero {
  position: relative;
  height: 757px;
  overflow: hidden;
  background-color: var(--yellow);
  background-image: url("../assets/bg_topo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero__logo {
  position: absolute;
  top: 19px;
  left: 0;
  width: 285px;
}

.hero__content {
  display: grid;
  grid-template-columns: 540px 420px;
  column-gap: 130px;
  align-items: start;
  justify-content: start;
  padding-top: 149px;
}

.hero h1 {
  width: 510px;
  margin: 109px 0 0 30px;
  color: var(--blue);
  font-size: 50px;
  font-weight: 200;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.visit-form {
  position: relative;
  height: 608px;
  min-height: 608px;
  padding: 116px 20px 42px;
  background: var(--blue);
  border-radius: 48px;
}

.visit-form__label {
  position: absolute;
  top: 0;
  left: 50%;
  width: 182px;
  height: 47px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--yellow-dark);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, .28);
  font-size: 16px;
  font-weight: 500;
  transform: translateX(-50%);
}

.visit-form__fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.visit-form input {
  width: 100%;
  height: 59px;
  padding: 7px 20px;
  color: var(--blue);
  background: var(--pale);
  border: 0;
  border-radius: 10px;
  outline: 0;
  font-size: 18px;
  line-height: 1.4;
}

.visit-form input::placeholder {
  color: rgba(0, 87, 123, .62);
  opacity: 1;
}

.visit-form input:focus,
.newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(216, 203, 19, .45);
}

.visit-form input.is-invalid,
.newsletter-form input.is-invalid {
  box-shadow: 0 0 0 3px rgba(208, 58, 58, .45);
}

.button {
  display: inline-flex;
  min-width: 228px;
  min-height: 57px;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  color: var(--blue);
  background: var(--yellow);
  border: 0;
  border-radius: 50px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: scale(1.05);
  box-shadow: 0 13px 26px rgba(0, 0, 0, .26);
}

.button--large {
  align-self: center;
  min-width: 239px;
  margin-top: 1px;
  box-shadow: none;
  text-transform: uppercase;
}

.form-message {
  min-height: 18px;
  margin: -16px 0 0;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.form-message.is-success {
  color: var(--yellow);
}

.visit-form .form-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  margin: 0;
}

.hero__wave {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 132px;
  fill: var(--pale);
}

.section-heading {
  color: var(--blue);
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 35px;
  font-weight: 200;
  line-height: 1;
}

.section-heading h2 strong {
  font-weight: 600;
}

.section-heading > img {
  width: 176px;
  height: 8px;
  margin: 42px auto 0;
}

.about {
  height: 741px;
  padding: 124px 0 60px;
  background: var(--pale);
}

.about__text {
  margin-top: 52px;
  font-size: 18px;
  line-height: 1.5;
}

.about__text p {
  margin: 0 0 20px;
}

.about__text strong {
  color: var(--blue);
  font-weight: 600;
}

.about blockquote {
  margin: 46px -10px 0;
  color: var(--blue);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  text-align: justify;
}

.services {
  min-height: 1741px;
  padding: 67px 0 60px;
  background: #fff url("../assets/bg-2.png") center center / cover no-repeat;
}

.section-heading--services > img,
.section-heading--brands > img {
  width: 224px;
  height: 10px;
  margin-top: 39px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 373px);
  justify-content: center;
  gap: 30px 0;
  margin-top: 53px;
}

.service-card {
  width: 353px;
  min-width: 0;
  justify-self: center;
  padding: 50px 30px 35px;
  background: var(--pale);
  border-radius: 30px;
  box-shadow: 10px 0 30px -8px rgba(0, 0, 0, .5);
}

.service-card:nth-child(-n+3) {
  min-height: 746px;
}

.service-card:nth-child(n+4) {
  min-height: 589px;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 19px;
  object-fit: contain;
}

.service-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.service-card__line {
  width: 117px;
  height: 5px;
  margin: 20px auto 28px;
}

.service-card__content {
  font-size: 16px;
  line-height: 1.08;
}

.service-card__content p {
  margin: 0 0 20px;
}

.service-card__content--center {
  text-align: center;
}

.centered-action {
  display: flex;
  justify-content: center;
  margin-top: 43px;
}

.brands {
  position: relative;
  height: 683px;
  padding: 66px 0 60px;
  overflow: hidden;
  background: var(--pale) url("../assets/bg-2.png") center center / cover no-repeat;
}

.section-heading--brands h2 {
  line-height: 1;
}

.brand-carousel {
  position: relative;
  height: 220px;
  margin-top: 41px;
  overflow: hidden;
}

.brand-carousel__track {
  display: flex;
  width: max-content;
  gap: 23px;
  transition: transform .8s ease;
}

.brand-carousel__track img {
  width: 204px;
  height: 113px;
  flex: 0 0 204px;
  object-fit: contain;
}

.brand-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.brand-carousel__dots span {
  width: 8px;
  height: 8px;
  background: rgba(0, 87, 123, .24);
  border-radius: 50%;
}

.brand-carousel__dots span.is-active {
  background: var(--blue);
}

.brands__action {
  margin-top: 26px;
}

.footer-main {
  height: 283px;
  padding: 30px 0;
  color: var(--yellow);
  background: var(--footer);
}

.footer-main__inner {
  display: grid;
  grid-template-columns: 1fr 408px;
  gap: 50px;
  align-items: center;
  height: 100%;
}

.footer-contact {
  padding-left: 138px;
}

.footer-contact__row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-contact__icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  color: var(--yellow);
  border: 1.5px solid rgba(216, 203, 19, .72);
  border-radius: 50%;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-contact__icon svg {
  width: 22px;
  height: 22px;
}

.footer-contact__icon--email svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact__icon--whatsapp svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.footer-contact__row:hover .footer-contact__icon,
.footer-contact__phone:hover .footer-contact__icon {
  color: var(--footer);
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.05);
}

.footer-contact h3,
.newsletter-form h3 {
  margin: 0;
}

.footer-contact h3 {
  font-size: 18px;
  font-weight: 600;
}

.footer-contact a {
  font-size: 16px;
}

.footer-contact__phone {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.newsletter-form h3 {
  width: 100%;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.newsletter-form input {
  width: 100%;
  height: 47px;
  padding: 6px 16px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 4px;
  outline: none;
  font-size: 16px;
}

.newsletter-form__button {
  min-width: 135px;
  height: 40px;
  margin-top: 0;
  color: var(--blue);
  background: var(--yellow);
  border: 0;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.newsletter-form .form-message {
  margin: 0;
}

.copyright {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #c8c8c8;
  background: var(--footer-bottom);
  font-size: 12px;
  font-weight: 300;
  text-align: center;
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr 390px;
  }

  .hero h1 {
    width: auto;
    margin-left: 0;
    font-size: 40px;
  }

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

  .service-card:nth-child(n) {
    min-height: 560px;
  }

  .services {
    min-height: auto;
  }

  .footer-contact {
    padding-left: 30px;
  }
}

@media (max-width: 767px) {
  .container,
  .container--narrow {
    width: calc(100% - 32px);
  }

  .topbar {
    height: 76px;
  }

  .topbar__inner {
    width: 100%;
    padding: 0 31px;
  }

  .topbar__left {
    gap: 0;
  }

  .topbar__email {
    display: none;
  }

  .topbar__item {
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    line-height: 1;
  }

  .contact-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .contact-icon svg {
    width: 15px;
    height: 15px;
  }

  .contact-icon--whatsapp svg {
    width: 16px;
    height: 16px;
  }

  .topbar__instagram {
    flex-direction: column-reverse;
    gap: 5px;
  }

  .hero {
    height: 843px;
    background-position: 47% center;
  }

  .hero__logo {
    top: 20px;
    left: 50%;
    width: 205px;
    transform: translateX(-50%);
  }

  .hero__content {
    display: block;
    padding-top: 119px;
  }

  .hero h1 {
    width: 100%;
    margin: 0;
    padding: 0 2px;
    font-size: 20px;
    line-height: 1.1;
    text-align: center;
  }

  .visit-form {
    width: calc(100% - 8px);
    height: 588px;
    min-height: 588px;
    margin: 50px auto 0;
    padding: 116px 20px 40px;
    border-radius: 50px;
  }

  .visit-form__label {
    width: 147px;
    height: 49px;
    border-radius: 0 0 18px 18px;
    font-size: 15px;
  }

  .visit-form__fields {
    gap: 30px;
  }

  .visit-form input {
    height: 59px;
    padding-inline: 18px;
    font-size: 16px;
  }

  .button--large {
    min-width: 239px;
    min-height: 57px;
    margin-top: 0;
    font-size: 15px;
  }

  .visit-form .form-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 15px;
    display: block;
    margin: 0;
  }

  .hero__wave {
    height: 65px;
  }

  .about {
    height: 1150px;
    padding: 130px 0 60px;
  }

  .about .container--narrow {
    width: 330px;
  }

  .section-heading h2 {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding-inline: 0;
    font-size: 35px;
    line-height: 1;
  }

  .section-heading > img {
    width: 79px;
    height: 4px;
    margin-top: 39px;
    object-fit: cover;
  }

  .about__text {
    margin-top: 54px;
    font-size: 18px;
    font-weight: 300;
    line-height: 27px;
    text-align: justify;
  }

  .about__text p {
    margin-bottom: 18px;
  }

  .about blockquote {
    margin: 48px -10px 0;
    font-size: 20px;
    line-height: 30px;
  }

  .services {
    min-height: 3153px;
    padding: 70px 0 60px;
    background-size: auto 100%;
  }

  .section-heading--services h2 {
    width: 370px;
    max-width: none;
    margin-left: -6px;
  }

  .section-heading--services > img,
  .section-heading--brands > img {
    width: 79px;
    height: 4px;
    margin-top: 39px;
  }

  .services__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 55px;
  }

  .service-card,
  .service-card:nth-child(n) {
    width: calc(100% - 8px);
    min-height: 0;
    padding: 30px 0 40px;
    border-radius: 30px;
  }

  .service-card--maintenance { height: 676px; }
  .service-card--consulting { height: 444px; }
  .service-card--sales { height: 277px; }
  .service-card--installations { height: 314px; }
  .service-card--modernization { height: 520px; }
  .service-card--support { height: 296px; }

  .service-card:nth-child(4) {
    margin-top: 30px;
  }

  .service-card__icon {
    width: 70px;
    height: 70px;
    margin-bottom: 21px;
  }

  .service-card h3 {
    font-size: 25px;
  }

  .service-card__line {
    width: 140px;
    height: 6px;
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .service-card__content {
    font-size: 16px;
    font-weight: 300;
    line-height: normal;
  }

  .service-card__content p {
    margin-bottom: 16px;
  }

  .centered-action {
    margin-top: 80px;
  }

  .brands {
    height: 1693px;
    padding: 68px 0 60px;
    background-position: 45% center;
    background-size: auto 100%;
  }

  .section-heading--brands h2 {
    width: 370px;
    margin-left: -6px;
    font-size: 35px;
    line-height: 1;
  }

  .section-heading--brands h2 br {
    display: none;
  }

  .brand-carousel {
    height: 1110px;
    margin-top: 42px;
  }

  .brand-carousel__track {
    display: none;
  }

  .brand-carousel__dots {
    top: 815px;
    bottom: auto;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(220, 220, 220, .18);
  }

  .brand-carousel__dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, .7);
  }

  .brands__action {
    margin-top: 127px;
  }

  .footer-main {
    height: 535px;
    padding: 39px 0 30px;
  }

  .footer-main__inner {
    display: block;
    height: auto;
  }

  .footer-contact {
    padding: 0 29px;
  }

  .footer-contact__row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .footer-contact__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .footer-contact__icon svg {
    width: 18px;
    height: 18px;
  }

  .footer-contact h3 {
    font-size: 12px;
  }

  .footer-contact a {
    font-size: 12px;
  }

  .footer-contact__phone {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
  }

  .newsletter-form {
    gap: 8px;
    margin-top: 35px;
  }

  .newsletter-form h3 {
    margin-bottom: 11px;
    font-size: 12px;
    line-height: 1.05;
  }

  .newsletter-form input {
    height: 47px;
  }

  .newsletter-form__button {
    margin-top: 0;
  }

  .newsletter-form .form-message {
    min-height: 14px;
    font-size: 11px;
  }

  .copyright {
    height: 45px;
    padding: 0 16px;
    font-size: 10px;
  }
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 18px;
  }

  .about__text,
  .about blockquote {
    font-size: 15px;
  }

  .service-card__content {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
