@charset "UTF-8";
.portfolio-filter-list, .footer-social-list-link, .footer-subscription-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
     ========================================================================== */
/**
   * Remove the margin in all browsers.
   */
body {
  margin: 0;
}

/**
   * Render the `main` element consistently in IE.
   */
main {
  display: block;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */
/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
     ========================================================================== */
/**
   * Remove the gray background on active links in IE 10.
   */
a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
   * Add the correct font size in all browsers.
   */
small {
  font-size: 80%;
}

/**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
     ========================================================================== */
/**
   * Remove the border on images inside links in IE 10.
   */
img {
  border-style: none;
}

/* Forms
     ========================================================================== */
/**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
   * Correct the inability to style clickable types in iOS and Safari.
   */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
   * Remove the inner border and padding in Firefox.
   */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
   * Restore the focus styles unset by the previous rule.
   */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */
textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
     ========================================================================== */
/*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */
summary {
  display: list-item;
}

/* Misc
     ========================================================================== */
/**
   * Add the correct display in IE 10+.
   */
template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */
[hidden] {
  display: none;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #000000;
}

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

.link {
  text-decoration: none;
}

.list {
  list-style: none;
}

.title {
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.18;
  text-align: center;
  letter-spacing: 0.03em;
  color: #212121;
}

@media screen and (min-width: 1200px) {
  .title {
    margin-bottom: 50px;
    font-size: 36px;
    line-height: 1.16;
  }
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  margin: 0 auto;
}

@media screen and (min-width: 480px) {
  .container {
    width: 480px;
  }
}

@media screen and (min-width: 768px) {
  .container {
    width: 768px;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    width: 1200px;
  }
}

/* общий css для index.html и portfolio.html */
/* Шапка */
.header {
  border-bottom: 1px solid #ececec;
}

.page-header {
  position: relative;
  z-index: 100;
}

.page-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  position: relative;
  z-index: 100;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 24px;
  line-height: 1.17;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #000000;
}

.logo-item {
  position: relative;
  color: #2196f3;
  z-index: 100;
}

.navigation-list-link {
  position: relative;
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #212121;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation-list-link:hover, .navigation-list-link:focus {
  color: #2196f3;
}

.navigation-list-link.current {
  color: #2196f3;
}

.navigation-list-link.current::after {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background-color: #2196f3;
  border-radius: 2px;
}

.contacts-link {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.67;
  letter-spacing: 0.02em;
  color: #757575;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-link:hover, .contacts-link:focus {
  color: #2196f3;
}

.contacts-list-icon {
  margin-right: 8px;
  fill: #757575;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-link:hover .contacts-list-icon,
.contacts-link:focus .contacts-list-icon {
  fill: #2196f3;
}

@media screen and (max-width: 767px) {
  .menu-btn {
    position: relative;
    padding: 0;
    background-color: transparent;
    border: none;
    z-index: 100;
    outline: none;
  }
  .menu-btn:hover {
    cursor: pointer;
  }
  .menu-btn.is-open .icon-burger {
    display: none;
  }
  .menu-btn.is-open .icon-close {
    display: block;
  }
  .menu-btn.is-open .header {
    border-bottom: 1px solid #ececec;
  }
}

@media screen and (max-width: 767px) {
  .icon-burger,
  .icon-close {
    fill: #000000;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .menu-btn:hover .icon-burger,
  .menu-btn:focus .icon-burger, .menu-btn:hover
  .icon-close,
  .menu-btn:focus
  .icon-close {
    fill: #2196f3;
  }
  .icon-close {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .menu-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateY(-100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 2px 4px rgba(0, 0, 0, 0.08), 0px 1px 3px rgba(0, 0, 0, 0.16);
  }
  .menu-wrapper.is-open {
    transform: translateY(0);
  }
  .main-navigation {
    margin-bottom: 60px;
  }
  .navigation-list-item:not(:last-child) {
    margin-bottom: 40px;
  }
  .navigation-list-link {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.67;
  }
  .contacts-list-item:not(:last-child) {
    margin-bottom: 16px;
  }
  .navigation-list-link.current::after {
    top: 0;
    left: 0;
    margin-top: 33px;
  }
  .contacts-list-item:not(:last-child) {
    margin-bottom: 16px;
  }
  .contacts-link {
    font-size: 18px;
    line-height: 1.67;
  }
}

@media screen and (min-width: 768px) {
  .logo {
    margin-right: 81px;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .main-navigation {
    margin-right: 84px;
  }
  .navigation-list {
    display: flex;
    align-items: center;
  }
  .navigation-list-item:not(:last-child) {
    margin-right: 50px;
  }
  .menu-btn {
    display: none;
  }
  .menu-wrapper {
    display: flex;
    align-items: center;
  }
  .navigation-list-link {
    padding-top: 32px;
    padding-bottom: 32px;
    font-size: 14px;
    line-height: 1.14;
  }
  .navigation-list-link.current::after {
    bottom: 0;
    left: 0;
  }
  .contacts-list-item {
    display: block;
  }
  .contacts-list-item:not(:last-child) {
    margin-bottom: 10px;
  }
  .contacts-link {
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.17;
  }
}

@media screen and (min-width: 1200px) {
  .logo {
    margin-right: 93px;
    padding-top: 25px;
    padding-bottom: 25px;
    font-size: 26px;
    line-height: 1.19;
  }
  .contacts-list {
    display: flex;
  }
  .contacts-list-item:not(:last-child) {
    margin-bottom: 0;
    margin-right: 30px;
  }
  .contacts-list-icon {
    margin-right: 10px;
  }
}

/* css для portfolio.html */
.portfolio-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Фильтр портфолио */
.portfolio-filter-list {
  padding-bottom: 30px;
}

.portfolio-filter-item {
  text-align: center;
}

.portfolio-filter-item:not(:last-child) {
  margin-right: 8px;
}

.portfolio-filter-btn {
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 22px;
  padding-right: 22px;
  background-color: #f5f4fa;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.62;
  text-align: center;
  letter-spacing: 0.03em;
  color: #212121;
  border: none;
  border-radius: 4px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-filter-btn:hover, .portfolio-filter-btn:focus {
  background-color: #2196f3;
  color: #ffffff;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 3px 1px rgba(0, 0, 0, 0.1);
}

/* Портфолио */
.portfolio-list {
  display: flex;
  flex-wrap: wrap;
}

.portfolio-item {
  max-width: 450px;
  height: auto;
  border: 1px solid #eeeeee;
  background-color: #ffffff;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px;
}

.portfolio-item:hover, .portfolio-item:focus {
  box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.16), 0px 4px 4px rgba(0, 0, 0, 0.06), 0px 1px 1px rgba(0, 0, 0, 0.12);
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
}

.portfolio-img {
  height: auto;
}

.portfolio-name-list {
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 24px;
  padding-left: 24px;
}

.portfolio-name {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #212121;
}

.portfolio-name-item {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.87;
  letter-spacing: 0.03em;
  color: #757575;
}

.portfolio-item-description {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding-top: 63px;
  padding-bottom: 63px;
  padding-left: 24px;
  padding-right: 24px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55em;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: rgba(33, 150, 243, 0.9);
  opacity: 0;
  transform: translateY(100%);
  transition: transform 1000ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-item-description {
  transform: translateY(0);
  opacity: 1;
  top: 0%;
}

@media screen and (max-width: 767px) {
  .portfolio-filter-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 40px;
  }
  .portfolio-filter-item {
    margin-bottom: 15px;
  }
  .portfolio-list {
    display: block;
    margin: 0 auto;
  }
}

@media screen and (min-width: 768px) {
  .portfolio-filter-list {
    padding-bottom: 40px;
  }
  .portfolio-img {
    height: 294px;
  }
  .portfolio-item {
    height: 404px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .portfolio-item {
    max-width: 354px;
  }
  .portfolio-item:not(:nth-last-child(-n + 2)) {
    margin-bottom: 30px;
  }
  .portfolio-item:not(:nth-child(2n)) {
    margin-right: 30px;
  }
  .portfolio-item {
    height: auto;
  }
}

@media screen and (min-width: 1200px) {
  .portfolio-section {
    padding-top: 94px;
    padding-bottom: 94px;
  }
  .portfolio-filter-list {
    padding-bottom: 50px;
  }
  .portfolio-item {
    max-width: 370px;
  }
  .portfolio-item:not(:nth-last-child(-n + 3)) {
    margin-bottom: 30px;
  }
  .portfolio-item:not(:nth-last-child(3n + 1)) {
    margin-right: 30px;
  }
}

/* общий css для index.html и portfolio.html */
/* Футер */
.footer {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #2f303a;
}

.footer .footer.container {
  display: block;
}

.footer-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.footer-logo-item {
  color: #2196f3;
}

.address {
  font-style: inherit;
}

.footer-address {
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.71;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.footer-mail {
  margin-bottom: 8px;
}

.footer-contacts-link {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.71;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contacts-title {
  display: block;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-social-links-list {
  display: inline-flex;
  justify-content: space-around;
}

.footer-social-links-list-item:not(:last-child) {
  margin-right: 10px;
}

.footer-social-list-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-list-link:hover,
.footer-social-list-link:focus {
  background-color: #2196f3;
}

.footer-social-list-icon {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.footer-submit-button {
  display: block;
  text-align: center;
}

.footer-submit-button-container {
  display: block;
  text-align: center;
}

.footer-submit-mail {
  display: block;
  width: auto;
  margin: 0 auto;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: #2f303a;
  font-family: "Roboto", sans-serif;
  font-weight: normal;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 16px;
  padding-right: 16px;
}

.footer-submit-mail:focus {
  outline: none;
}

.footer-subscription-btn {
  margin: 0 auto;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 200px;
  height: 50px;
  text-decoration: none;
  border: 1px solid #2196f3;
  background-color: #2196f3;
  border-radius: 4px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
}

.footer-subscription-btn-desc {
  display: flex;
  margin-right: 10px;
  width: 109px;
  height: 30px;
  align-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.87;
  letter-spacing: 0.06em;
  color: #ffffff;
  background-color: #2196f3;
}

.footer-btn-icon {
  fill: #ffffff;
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  .footer.container {
    display: block;
  }
  .footer-submit-mail {
    width: 450px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: baseline;
  }
  .footer-submit-mail {
    width: 450px;
  }
}

@media screen and (max-width: 1199px) {
  .footer-contacts,
  .footer-join-us {
    margin-bottom: 60px;
    text-align: center;
  }
  .footer-submit-button-container {
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 1200px) {
  .footer .container {
    display: flex;
    align-items: baseline;
  }
  .footer-contacts {
    margin-right: 69px;
  }
  .footer-logo {
    font-size: 26px;
    line-height: 1.19;
  }
  .footer-address,
  .footer-mail {
    margin-bottom: 9px;
  }
  .footer-join-us {
    margin-right: 94px;
  }
  .footer-submit-button {
    display: flex;
    align-items: flex-end;
  }
  .footer-submit-button-container {
    display: flex;
    flex-direction: column;
  }
  .footer-submit-mail {
    margin-right: 12px;
    width: 358px;
  }
}
/*# sourceMappingURL=portfolio.css.map */