:root {
  /* Font */
  --main-font: 'Roboto', sans-serif;
  --secondary-font: 'Raleway', sans-serif;

  /* Text colors */
  --dark-text-cl: #2e2f42;
  --body-text-cl: #434455;
  --subtitle-text-cl: #8e8f99;
  --primary-brand-txt-cl: #4d5ae5;
  --white-txt-cl: #ffffff;

  /* Background colors */

  --pressed-state-bg-cl: #404bbf;
  --success-bg-cl: #31d0aa;
  --accent-bg-cl: #e7e9fc;
  --light-bg-cl: #f4f4fd;
  --modal-overlay-bg-cl: #2e2f42;
  --hero-bg-cl: #2e2f42;

  /* Others */
}

/* Base styles */
body {
  font-family: var(--main-font);
  font-size: 16px;
  color: var(--body-text-cl);
  background-color: var(--white-txt-cl);
  letter-spacing: 0.02em;
}
.container {
  width: 1158px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;

  /* outline: 2px solid violet;
  outline-offset: -2px; */
}
.section {
  padding-top: 120px;
  padding-bottom: 120px;
}
.logo {
  font-family: var(--secondary-font);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary-brand-txt-cl);
}
.title {
  text-transform: capitalize;
  color: var(--dark-text-cl);
}
.btn {
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: calc(24 / 16);
  border-radius: 4px;
  border: none;
}
.current {
  color: var(--pressed-state-bg-cl);
}

/* reset start  */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
/* reset end  */

/* Header section */
.header {
  border-bottom: 1px solid var(--accent-bg-cl);
}
.header-container {
  display: flex;
}
.header-nav {
  margin-right: auto;
}
.header-list {
  display: flex;
  gap: 40px;
}
.header-logo {
  display: block;
  padding-top: 24px;
  padding-bottom: 24px;
  margin-right: 76px;

  line-height: calc(24 / 18);
}
.span-header-logo {
  color: var(--dark-text-cl);
}
.header-link {
  display: block;
  padding-top: 24px;
  padding-bottom: 24px;

  line-height: calc(24 / 16);
  font-weight: 500;
}
.header-link:hover,
.header-link:focus {
  color: var(--pressed-state-bg-cl);
}
.header-contact {
  display: block;
  padding-top: 24px;
  padding-bottom: 24px;

  line-height: calc(24 / 16);
}
.header-contact:hover,
.header-contact:focus {
  color: var(--pressed-state-bg-cl);
}

/* Hero section */
.hero {
  padding-top: 188px;
  padding-bottom: 188px;

  text-align: center;
  background-color: var(--hero-bg-cl);
}
.hero-main-title {
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  max-width: 494px;
  font-size: 56px;
  line-height: calc(60 / 56);
  color: var(--white-txt-cl);
}
.hero-btn {
  padding: 16px 32px;

  color: var(--white-txt-cl);
  background-color: var(--primary-brand-txt-cl);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
}
.hero-btn:hover,
.hero.btn:focus {
  background-color: var(--pressed-state-bg-cl);
}

/* About section */
.about-list {
  display: flex;
  flex-wrap: wrap;
}
.about-item {
  flex-basis: calc((100% - 72px) / 4);
  margin-right: 24px;
}
.about-item:nth-child(4n) {
  margin-right: 0;
}
.about-item-title {
  margin-bottom: 8px;

  font-weight: 500;
  font-size: 20px;
  line-height: calc(24 / 20);
}
.about-text {
  line-height: calc(24 / 16);
}

/* Our service section  */
.service {
  padding-top: 0;
}
.service-title {
  margin-bottom: 72px;
  text-align: center;
  font-size: 36px;
  line-height: calc(40 / 36);
}
.service-list {
  display: flex;
  flex-wrap: wrap;
}
.service-item {
  flex-basis: calc((100% - 48px) / 3);
  margin-right: 24px;

  border: 1px solid var(--accent-bg-cl);
}
.service-item:nth-child(3n) {
  margin-right: 0;
}

/* Our team section */
.team {
  background-color: var(--accent-bg-cl);
}
.team-title {
  margin-bottom: 72px;

  text-align: center;
  font-size: 36px;
  line-height: calc(40 / 36);
}
.team-list {
  display: flex;
  flex-wrap: wrap;
}
.team-item {
  flex-basis: calc((100% - 72px) / 4);
  margin-right: 24px;
  text-align: center;
  background-color: var(--white-txt-cl);
  box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
  border-radius: 0px 0px 4px 4px;
}
.team-item:nth-child(4n) {
  margin-right: 0;
}
.team-item-content {
  padding: 32px 16px;
}
.team-item-title {
  margin-bottom: 8px;

  font-weight: 500;
  font-size: 20px;
  line-height: calc(24 / 20);
}
.team-text {
  line-height: calc(24 / 16);
}

/* Footer section */
.footer {
  padding-bottom: 100px;
  padding-top: 100px;
  background-color: var(--dark-text-cl);
}
.footer-logo {
  margin-bottom: 16px;

  line-height: calc(21 / 18);
}
.span-footer-logo {
  color: var(--light-bg-cl);
}
.footer-text {
  max-width: 264px;
  line-height: calc(24 / 16);
  color: var(--accent-bg-cl);
}

/* Portfolio */
/* Projects section  */
.projects {
  padding-top: 96px;
}

.filters-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 24px;
  margin-bottom: 72px;
}
.filters-btn {
  padding: 11px 23px;

  color: var(--primary-brand-txt-cl);
  background-color: var(--light-bg-cl);
  border: 1px solid var(--accent-bg-cl);
}
.filters-btn:hover,
.filters-btn:focus {
  border-color: var(--pressed-state-bg-cl);
  color: var(--white-txt-cl);
  background-color: var(--pressed-state-bg-cl);
  box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08),
    0px 2px 2px rgba(0, 0, 0, 0.12);
}
.projects-list {
  display: flex;
  flex-wrap: wrap;
}
.projects-item {
  flex-basis: calc((100% - 48px) / 3);
  margin-right: 24px;
  margin-bottom: 48px;
  border: 1px solid var(--accent-bg-cl);
  border-top: none;
}
.projects-item:nth-child(3n) {
  margin-right: 0;
}
.projects-item:nth-last-child(-n + 3) {
  margin-bottom: 0;
}

.project-card-content {
  padding-top: 32px;
  padding-bottom: 32px;
  padding-left: 16px;
}

.projects-item-title {
  margin-bottom: 8px;

  font-weight: 500;
  font-size: 20px;
  line-height: calc(24 / 20);
}
.projects-text {
  line-height: calc(24 / 16);
}
