:root {
  --blue: #186fbe;
  --yellow: #ffb609;
  --dark: #232323;
  --dark-2: #333;
  --muted: #777;
  --line: #e7e7e7;
  --soft: #f5f5f5;
  --panel: #ecedee;
  --white: #fff;
  --container: 1170px;
  --font-heading: Rajdhani, Arial, sans-serif;
  --font-body: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  background: var(--white);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.mini-icon,
.feature-icon,
.counter-box svg,
.project-hover svg,
.service-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon {
  width: 15px;
  height: 15px;
  margin-right: 10px;
  vertical-align: -2px;
}

.top-header {
  background: var(--blue);
  color: var(--white);
  padding: 12px 0;
}

.top-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-social,
.footer-social,
.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  font-size: 15px;
  text-decoration: none;
  transition: color 250ms ease, background 250ms ease;
}

.header-social a:hover,
.contact-block a:hover {
  color: var(--yellow);
}

.contact-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 22px;
}

.contact-block p {
  margin: 0;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.52px;
  line-height: 28px;
}

.contact-block a {
  color: var(--white);
  text-decoration: none;
  transition: color 250ms ease;
}

.main-nav {
  background: #efefef;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.site-title {
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links a {
  display: block;
  color: #222;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.56px;
  padding: 30px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: var(--yellow);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--dark);
}

.hero {
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background-image: url("assets/images/slider-1.jpg");
  background-position: center center;
  background-size: cover;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.05) 58%, rgba(0, 0, 0, 0.12));
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 402px;
  align-items: center;
  gap: 56px;
  padding: 48px 0;
}

.hero-copy {
  max-width: 540px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 500;
  letter-spacing: 1.92px;
  line-height: 1.25;
}

.hero-copy p {
  margin: 0 0 38px;
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.96px;
}

.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.56px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.button--dark {
  padding: 6px 38px;
  color: var(--white);
  background: #000;
}

.button--dark:hover {
  color: #000;
  background: var(--white);
}

.callback-form {
  width: min(100%, 402px);
  justify-self: end;
  background: var(--panel);
  padding: 25px;
}

.callback-form h2,
.quick-quote h2 {
  margin: 0;
  color: var(--dark-2);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.72px;
  line-height: 28px;
  text-transform: capitalize;
}

.callback-form p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.52px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 39px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  letter-spacing: 0.52px;
  padding: 10px;
}

.contact-form textarea {
  min-height: 52px;
  resize: vertical;
  padding: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 182, 9, 0.55);
}

.contact-form button {
  justify-self: start;
  min-height: 45px;
  padding: 12px 21px;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: var(--white);
}

.contact-form button:hover {
  background: transparent;
  color: var(--yellow);
}

.form-status {
  display: block;
  min-height: 18px;
  color: var(--dark);
  font-size: 13px;
  line-height: 1.4;
}

.section-title {
  background: var(--white);
  padding: 74px 0 18px;
}

.section-header {
  margin-bottom: 45px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 10px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 45px;
  text-transform: uppercase;
}

.section-header p {
  max-width: 720px;
  margin: 10px auto 0;
  color: #666;
  line-height: 28px;
  letter-spacing: 0.56px;
}

.separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 12px;
  position: relative;
}

.separator::before,
.separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 31px;
  height: 2px;
  background: var(--yellow);
}

.separator::before {
  left: 0;
}

.separator::after {
  right: 0;
}

.separator {
  background: radial-gradient(circle at center, var(--blue) 0 4px, transparent 5px);
}

.who-section {
  background: var(--soft);
  padding: 0 0 70px;
}

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: 54px;
  align-items: start;
}

.why-choose-box {
  margin-bottom: 40px;
}

.why-choose-box h3 {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.88px;
  line-height: 28px;
  text-transform: uppercase;
}

.why-choose-box p,
.we-are-box p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.56px;
  line-height: 24px;
}

.we-are-box {
  position: relative;
  min-height: 72px;
  margin-bottom: 30px;
  padding-left: 55px;
}

.feature-icon {
  position: absolute;
  left: 0;
  top: 4px;
  width: 35px;
  height: 35px;
  color: var(--blue);
}

.we-are-box h3 {
  margin: 0 0 7px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.72px;
  line-height: 28px;
  text-transform: uppercase;
}

.quick-quote {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 32px 70px 35px;
  text-align: center;
  background: linear-gradient(rgba(24, 111, 190, 0.88), rgba(24, 111, 190, 0.88)), url("assets/images/slider-1.jpg");
  background-position: center;
  background-size: cover;
}

.quick-quote h2 {
  position: relative;
  margin-bottom: 25px;
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.96px;
  text-align: center;
}

.contact-form--quote input,
.contact-form--quote textarea {
  min-height: 52px;
  padding: 15px 25px;
}

.contact-form--quote button {
  min-height: auto;
  padding: 8px 25px;
  border: 0;
  background: var(--yellow);
  color: var(--white);
  font-size: 13px;
}

.contact-form--quote button:hover {
  background: var(--white);
  color: var(--yellow);
}

.quick-quote .form-status {
  color: var(--white);
  text-align: left;
}

.services-section {
  background: var(--white);
  padding: 92px 0 72px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  min-height: 286px;
  background: #fafafa;
  padding: 32px 48px;
  text-align: center;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.service-icon svg {
  width: 25px;
  height: 25px;
}

.service-card h3 {
  margin: 0 0 9px;
  color: var(--dark-2);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 32px;
}

.service-card p {
  margin: 0 0 6px;
  color: var(--muted);
  letter-spacing: 0.56px;
  line-height: 24px;
}

.service-card a {
  display: inline-block;
  margin-top: 3px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.56px;
  line-height: 26px;
  text-decoration: none;
  text-transform: uppercase;
}

.service-card a:hover {
  color: var(--dark-2);
}

.gallery-section {
  background: var(--soft);
  padding: 92px 0 82px;
}

.portfolio-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 55px;
}

.portfolio-categories button {
  min-height: 48px;
  border: 3px solid #afafaf;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  padding: 7px 24px;
  text-transform: capitalize;
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}

.portfolio-categories button:hover,
.portfolio-categories button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px 20px;
}

.project-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  background: #ddd;
}

.project-tile--wide {
  grid-column: span 2;
}

.project-tile img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

.project-tile::before,
.project-tile::after {
  content: "";
  position: absolute;
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms ease;
}

.project-tile::before {
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.project-tile::after {
  inset: 15px;
  border: 1px solid var(--white);
  background: rgba(0, 0, 0, 0);
  transform: scale(0);
}

.project-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 6px;
  padding: 15px;
  text-align: center;
  opacity: 0;
  transition: opacity 250ms ease;
}

.project-hover a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
}

.project-hover a:hover {
  border-color: var(--yellow);
}

.project-hover svg {
  width: 18px;
  height: 18px;
}

.project-hover h3 {
  flex-basis: 100%;
  margin: 5px 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.72px;
  line-height: 26px;
}

.project-tile:hover::before,
.project-tile:hover::after,
.project-tile:hover .project-hover {
  opacity: 1;
}

.project-tile:hover::after {
  transform: scale(1);
}

.project-tile.is-hidden {
  display: none;
}

.counter-section {
  position: relative;
  padding: 100px 0 70px;
  background: linear-gradient(rgba(24, 111, 190, 0.89), rgba(24, 111, 190, 0.89)), url("assets/images/slider-1.jpg");
  background-position: center;
  background-size: cover;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.counter-box {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 26px;
  margin-bottom: 30px;
  color: var(--white);
}

.counter-box svg {
  width: 60px;
  height: 60px;
  margin-top: 4px;
}

.counter-box strong {
  display: inline-block;
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 20px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1.44px;
  line-height: 28px;
}

.counter-box strong::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 49px;
  height: 3px;
  background: #ffb300;
}

.counter-box p {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.footer-main {
  background: var(--dark);
  padding: 80px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-widget h2 {
  position: relative;
  margin: 0 0 10px;
  padding-bottom: 10px;
  color: #e9e7e7;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.72px;
  line-height: 34px;
  text-transform: uppercase;
}

.footer-widget h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  background: #ffb617;
}

.footer-widget p {
  margin: 0 0 13px;
  color: #ddd;
  font-size: 13px;
  letter-spacing: 0.52px;
  line-height: 24px;
}

.footer-widget span,
.footer-widget .mini-icon {
  color: var(--white);
}

.footer-widget a {
  color: #ddd;
  text-decoration: none;
}

.footer-widget a:hover {
  color: #ffb617;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 50px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  line-height: 25px;
  text-transform: uppercase;
  transition: background-color 250ms ease, color 250ms ease;
}

.footer-social a:hover {
  background: var(--white);
  color: #000;
}

.copyright-section {
  background: var(--dark-2);
  padding: 10px 0;
  text-align: center;
}

.copyright-section p {
  margin: 0;
  color: #ddd;
  font-size: 13px;
  letter-spacing: 0.52px;
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr 370px;
  }

  .quick-quote {
    padding-left: 38px;
    padding-right: 38px;
  }

  .service-card {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 900px) {
  .top-header__inner,
  .contact-block {
    justify-content: center;
  }

  .top-header__inner {
    flex-direction: column;
    gap: 8px;
  }

  .nav-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #efefef;
    border-top: 1px solid #ddd;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
  }

  .hero,
  .hero__inner {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 72px 0;
  }

  .callback-form {
    justify-self: start;
  }

  .who-grid,
  .service-grid,
  .counter-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project-tile--wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .contact-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .site-title {
    max-width: calc(100% - 62px);
  }

  .hero-copy h1 {
    letter-spacing: 0.4px;
  }

  .callback-form,
  .quick-quote {
    width: 100%;
    padding: 24px;
  }

  .section-title {
    padding-top: 54px;
  }

  .services-section,
  .gallery-section {
    padding-top: 64px;
    padding-bottom: 58px;
  }

  .who-grid,
  .service-grid,
  .counter-grid,
  .footer-grid,
  .portfolio-list {
    grid-template-columns: 1fr;
  }

  .project-tile--wide {
    grid-column: span 1;
  }

  .portfolio-categories {
    align-items: stretch;
    flex-direction: column;
  }

  .portfolio-categories button {
    width: 100%;
  }

  .counter-section {
    padding: 70px 0 40px;
  }

  .counter-box {
    grid-template-columns: 64px 1fr;
  }

  .footer-main {
    padding: 60px 0;
  }

  .footer-widget--empty {
    display: none;
  }
}
