:root {
  --color-white: #fff;
  --color-dark: #2C332F;
  --color-dark-alt: #535755;
  --color-gray: #CCCCCC;
  --color-light-gray: #D3CBD9;
  --color-accent: #3596ED;
  --color-accent-light: #79BAF3;
  --color-accent-dark: #1383EC;
  --color-gradient: linear-gradient(90deg, rgba(73, 169, 255, 0.2) 0%, rgba(252, 124, 217, 0.2) 100%);

  --font-family-base: 'Ubuntu', sans-serif;
  --font-family-accent: 'Oswald', sans-serif;

  --container-width: 1220px;
  --container-padding-x: 16px;

  --border: 1px solid var(--color-gray);

  --transition-duration: 0.2s;
}

body {
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  min-width: 375px;
  font-family: var(--font-family-base);
  font-weight: 400;
  color: var(--color-dark-alt);
  background-color: var(--color-white);
}

main {
  flex-grow: 1;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
  font-family: var(--font-family-accent);
  color: var(--color-dark);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
}

h1, .h1,
h2, .h2 {
  margin-bottom: 40px;
}

h1, .h1 {
  font-size: 62px;
}

h2, .h2 {
  font-size: 48px;
}

h3, .h3 {
  font-size: 36px;
}

h4, .h4 {
  font-size: 24px;
  font-weight: 500;
}

a,
button,
label,
input,
textarea,
select,
svg * {
  transition-duration: var(--transition-duration);
}

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

a:hover {
  color: var(--color-accent);
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 2px dashed var(--color-accent);
  outline-offset: 4px;
  transition-duration: 0s !important;
}

.container {
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  padding-inline: 16px;
  margin: 0 auto;
}

.section {
  padding-block: 40px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 57px;
  padding-inline: 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-accent);
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  color: var(--color-white);
  background-color: var(--color-accent-light);
}

.button:active {
  background-color: var(--color-accent-dark);
}

button.button:disabled {
  background-color: var(--color-accent-light);
}

.logo__image {
  flex-shrink: 0;
}

.decor-wrapper {
  position: relative;
}

.decor-wrapper--top::before,
.decor-wrapper--bottom::after {
  content: '';
  position: absolute;
  width: 528px;
  height: 48px;
  background: url('../icons/decor-icon.svg') no-repeat;
  z-index: -10;
}

.decor-wrapper--top::before {
  top: 100px;
  left: -350px;
}

.decor-wrapper--bottom::after {
  bottom: 100px;
  right: -350px;
}

.header {
  margin-bottom: 40px;
}

.header__inner,
.header__info {
  display: flex;
}

.header__inner {
  justify-content: space-between;
  align-items: center;
  column-gap: 16px;
  padding-block: 30px;
  border-bottom: var(--border);
}

.header__info {
  flex-direction: column;
  align-items: end;
  row-gap: 8px;
}

.header__info-text {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-gray);
  text-transform: uppercase;
}

.header__info-contact {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-dark);
}

.footer {
  margin-top: 80px;
  background: var(--color-gradient);
}

.footer__body,
.footer__menu-list {
  display: flex;
}

.footer__body {
  flex-direction: column;
  align-items: center;
  row-gap: 40px;
  padding-top: 60px;
  padding-bottom: 40px;
}

.footer__menu-list {
  gap: 60px;
}

.footer__menu-link {
  white-space: nowrap;
}

.footer__extra {
  padding-block: 40px;
  border-top: var(--border);
  color: var(--color-gray);
  font-size: 14px;
  text-align: center;
}

@media (width <= 1023px) {
  
  h1, .h1 {
    font-size: 52px;
  }
  
  .button {
    max-width: 270px;
  }
  
  .container {
    max-width: 767px;
  }
  
  .section {
    padding-block: 30px;
  }

  .header {
    margin-bottom: 20px;
  }
  
  .footer {
    margin-top: 40px;
  }
}

@media (width <= 767px) {
  
  h1, .h1,
  h2, .h2 {
    margin-bottom: 30px;
  }

  h1, .h1 {
    font-size: 48px;
  }
  
  h2, .h2 {
    font-size: 42px;
  }

  .decor-wrapper--top::before,
  .decor-wrapper--bottom::after {
    display: none;
  }

  .footer__body {
    padding-top: 50px;
  }
  
  .footer__menu-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .footer__extra {
    padding-block: 30px;
  }
}

@media (width <= 480px) {

  h1, .h1 {
    font-size: 42px;
  }
  
  h2, .h2 {
    font-size: 36px;
  }
}


