/*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */
/* Document
       ========================================================================== */
/**
     * 1. Correct the line height in all browsers.
     * 2. Prevent adjustments of font size after orientation changes in
     *    IE on Windows Phone and in iOS.
     */
html {
  line-height: 1.15;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

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

/**
     * Add the correct display in IE 9-.
     */
article,
aside,
footer,
header,
nav,
section {
  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
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
figcaption,
figure {
  display: block;
}

/**
     * Add the correct margin in IE 8.
     */
figure {
  margin: 1em 40px;
}

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

/**
     * Add the correct display in IE.
     */
main {
  display: block;
}

/**
     * 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 */
}

/* Links
       ========================================================================== */
/**
     * 1. Remove the gray background on active links in IE 10.
     * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
     */
a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */
}

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

/**
     * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
     */
b,
strong {
  font-weight: inherit;
}

/**
     * 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 style in Android 4.3-.
     */
dfn {
  font-style: italic;
}

/**
     * Add the correct background and color in IE 9-.
     */
mark {
  background-color: #ff0;
  color: #000;
}

/**
     * 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
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
audio,
video {
  display: inline-block;
}

/**
     * Add the correct display in iOS 4-7.
     */
audio:not([controls]) {
  display: none;
  height: 0;
}

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

/**
     * Hide the overflow in IE.
     */
svg:not(:root) {
  overflow: hidden;
}

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

/**
     * Show the overflow in IE.
     */
button {
  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;
}

/**
     * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
     *    controls in Android 4.
     * 2. Correct the inability to style clickable types in iOS and Safari.
     */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  /**
       * Remove the inner border and padding in Firefox.
       */
  /**
       * Restore the focus styles unset by the previous rule.
       */
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
     * Show the overflow in Edge.
     */
input {
  overflow: visible;
}

/**
     * 1. Add the correct box sizing in IE 10-.
     * 2. Remove the padding in IE 10-.
     */
[type="checkbox"],
[type="radio"] {
  -webkit-box-sizing: border-box;
          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 and cancel buttons in Chrome and Safari on macOS.
       */
}

[type="search"]::-webkit-search-cancel-button, [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 */
}

/**
     * 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 {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* 1 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  color: inherit;
  /* 2 */
  white-space: normal;
  /* 1 */
}

/**
     * 1. Add the correct display in IE 9-.
     * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
     */
progress {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

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

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

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

/*
     * Add the correct display in IE 9-.
     */
menu {
  display: block;
}

/* Scripting
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
canvas {
  display: inline-block;
}

/**
     * Add the correct display in IE.
     */
template {
  display: none;
}

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

/* ul */
/* xl */
/* lg */
/* md */
/* sm */
/* xs */
/* xx */
.header-menu__container, .header-content__container, .about__container, .contact-form__container, .posts__container, .footer__container {
  max-width: 1340px;
  margin: auto;
  padding-right: 20px;
  padding-left: 20px;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  overflow-y: scroll;
  letter-spacing: 0.1em;
  color: #637588;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: #ffffff;
}

h1 {
  letter-spacing: 0.08em;
  font-family: "Roboto Slab", serif;
  font-weight: 300;
  line-height: 1.2;
}

h2 {
  letter-spacing: 0.1em;
  color: #2d3651;
  font-family: "Roboto Slab", serif;
  font-weight: 900;
  line-height: 1.2em;
}

.invisible {
  display: none;
}

h3 {
  letter-spacing: 0.1em;
  color: #2d3651;
  line-height: 1.2em;
}

.btn,
.btn-accent {
  display: block;
  -webkit-transition: background-color 0.5s;
  -o-transition: background-color 0.5s;
  transition: background-color 0.5s;
  text-align: center;
  letter-spacing: 0.1em;
  font-size: 1.125rem;
}

.btn:hover, .btn:focus,
.btn-accent:hover,
.btn-accent:focus {
  background-color: #d66926;
}

.btn {
  border: 2px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-accent {
  min-width: 350px;
  height: 60px;
  padding: 18px 20px;
  border: 2px solid #2d3651;
  background-color: rgba(45, 54, 81, 0.8);
}

.header {
  position: relative;
  display: grid;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 100vh;
  padding: 100px 20px;
  color: #ffffff;
  background-position: 50% 50%;
  background-size: cover;
}

.header-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.header-menu {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.header-menu__container {
  position: relative;
  display: grid;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-right: 0;
  padding-bottom: 20px;
  padding-left: 0;
  grid-template-columns: auto 1fr;
}

.header-logo {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.header-logo__link {
  display: block;
  padding: 20px 20px 0;
}

.header-logo__accent {
  display: inline-block;
  margin-right: 4px;
  padding: 14px 1px 13px 5px;
  border: 3px solid #d53d27;
}

.header-navbar__btn {
  position: relative;
  width: 30px;
  height: 22.5px;
  margin: 20px 20px 0 0;
  cursor: pointer;
  -webkit-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  -webkit-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
          transform: rotate(0deg);
}

.header-navbar__btn-row {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 3px;
  -webkit-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
  -webkit-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
          transform: rotate(0deg);
  opacity: 1;
  border-radius: 3px;
  background: #ffffff;
}

.header-navbar__btn-row:nth-child(1) {
  top: 0;
}

.header-navbar__btn-row:nth-child(2) {
  top: 9px;
}

.header-navbar__btn-row:nth-child(3) {
  top: 18px;
}

.header-navbar__btn--active span:nth-child(1) {
  top: 9px;
  -webkit-transform: rotate(135deg);
      -ms-transform: rotate(135deg);
          transform: rotate(135deg);
}

.header-navbar__btn--active span:nth-child(2) {
  left: -30px;
  opacity: 0;
}

.header-navbar__btn--active span:nth-child(3) {
  top: 9px;
  -webkit-transform: rotate(-135deg);
      -ms-transform: rotate(-135deg);
          transform: rotate(-135deg);
}

.header-navbar__list {
  margin: 0 0 -20px 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  z-index: 1;
}

.header-navbar__list--active {
  display: block !important;
}

.header-navbar__item {
  padding: 20px;
}

.header-navbar__link {
  -webkit-transition: color 0.5s;
  -o-transition: color 0.5s;
  transition: color 0.5s;
}

.header-navbar__link:hover {
  color: #d66926;
}

.header-content {
  position: relative;
  -webkit-transition: margin-top 0.5s;
  -o-transition: margin-top 0.5s;
  transition: margin-top 0.5s;
}

.header-content__title {
  text-align: center;
  text-transform: uppercase;
}

.header-content__buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.skills {
  padding: 10px 10px 40px;
}

.skills__container {
  display: grid;
}

.skills__button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding-top: 20px;
}

.skill-item {
  position: relative;
  overflow: hidden;
  background-color: #2d3651;
}

.skill-item__overlay {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-transition: opacity 0.5s ease-in-out;
  -o-transition: opacity 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out;
}

.skill-item__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
  background-position: 50% 50%;
  background-size: cover;
}

.skill-item:hover .skill-item__overlay {
  opacity: 0.95 !important;
}

.skill-item:hover .skill-item__image {
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}

.skill-item:hover .skill-item__link {
  color: #d66926;
}

.skill-item__title {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  -webkit-transition: color 0.5s ease-in-out;
  -o-transition: color 0.5s ease-in-out;
  transition: color 0.5s ease-in-out;
}

.skill-item__link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  letter-spacing: 0.1em;
  font-size: 1.25rem;
}

.skill-item:nth-of-type(1) {
  grid-area: a1;
}

.skill-item:nth-of-type(2) {
  grid-area: a2;
}

.skill-item:nth-of-type(3) {
  grid-area: a3;
}

.skill-item:nth-of-type(4) {
  grid-area: a4;
}

.skill-item:nth-of-type(5) {
  grid-area: a5;
}

.skill-item:nth-of-type(6) {
  grid-area: a6;
}

.skill-item:nth-of-type(7) {
  grid-area: a7;
}

.skill-item:nth-of-type(8) {
  grid-area: a8;
}

.skill-item:nth-of-type(9) {
  grid-area: a9;
}

.about {
  padding: 100px 0;
  letter-spacing: 0.055em;
  background-color: #e5e5e5;
}

.about h2 {
  margin-top: 0;
}

.about__container {
  display: grid;
  grid-gap: 100px;
  grid-template-columns: 1fr 271px;
  justify-items: center;
}

.about__content p:first-of-type {
  position: relative;
  margin-top: -5px;
}

.about__content p:first-of-type::after {
  position: absolute;
  top: 0;
  width: 2px;
  height: 200px;
  content: "";
  background-color: rgba(112, 112, 112, 0.1);
}

.about__content p:last-of-type {
  margin: 0;
}

.about__title {
  display: block;
}

.about__img {
  display: grid;
  -ms-flex-line-pack: center;
      align-content: center;
  margin-top: 1px;
  justify-items: center;
}

.about__img img {
  max-width: 100%;
  max-height: 480px;
}

.contact-form {
  padding: 30px 0;
  letter-spacing: 0.055em;
  color: #ffffff;
  background-color: #2d3651;
}

.contact-form__container {
  display: grid;
  grid-gap: 20px;
  grid-template-areas: "f1 f2 f3";
  grid-template-columns: repeat(3, 1fr);
}

.contact-form input {
  width: 100%;
  height: 60px;
  padding: 0 30px;
  -webkit-transition: background-color 0.5s, border-color 0.5s;
  -o-transition: background-color 0.5s, border-color 0.5s;
  transition: background-color 0.5s, border-color 0.5s;
  letter-spacing: 0.15em;
  letter-spacing: 0.15em;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 1.125rem;
}

.contact-form input:focus, .contact-form input:hover {
  border-bottom: 2px solid #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.16);
}

.contact-form input::-webkit-input-placeholder {
  color: #637588;
}

.contact-form input::-moz-placeholder {
  color: #637588;
}

.contact-form input:-ms-input-placeholder {
  color: #637588;
}

.contact-form input::-ms-input-placeholder {
  color: #637588;
}

.contact-form input::placeholder {
  color: #637588;
}

.contact-form__btn-subscribe {
  width: 100%;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form__btn-subscribe:focus, .contact-form__btn-subscribe:hover {
  border: 2px solid #ffffff;
}

.contact-form__item:nth-of-type(1) {
  grid-area: f1;
}

.contact-form__item:nth-of-type(2) {
  grid-area: f2;
}

.contact-form__item:nth-of-type(3) {
  grid-area: f3;
}

.posts__container {
  padding: 67px 20px 100px;
  letter-spacing: 0.055em;
}

.posts__button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding-top: 20px;
}

.post-container {
  display: grid;
  grid-gap: 20px;
  grid-template-areas: "p1 p1 p2 p3" "p4 p5 p6 p6";
  grid-template-columns: repeat(4, 1fr);
}

.post-item {
  overflow: hidden;
  padding: 0 0 30px;
  -webkit-transition: background-color 0.5s, color 0.5s;
  -o-transition: background-color 0.5s, color 0.5s;
  transition: background-color 0.5s, color 0.5s;
  background-color: rgba(238, 238, 238, 0.8);
}

.post-item:hover img {
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}

.post-item:hover {
  background-color: #d8d8d8;
}

.post-item:hover h3,
.post-item:hover p {
  color: #2d3651;
}

.post-item__image {
  overflow: hidden;
}

.post-item__image img {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  -ms-flex-line-pack: center;
      align-content: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 300px;
  margin: 0;
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
  background-color: #2d3651;
  -o-object-fit: cover;
     object-fit: cover;
}

.post-item__link {
  display: grid;
  overflow: hidden;
  height: 100%;
  text-align: center;
  color: #637588;
  grid-template-rows: 300px 1fr;
}

.post-item__title {
  padding-top: 12px;
}

.post-item__text {
  display: grid;
  -ms-flex-line-pack: center;
      align-content: center;
  margin-bottom: -10px;
  padding: 26px 20px 3px;
}

.post-item__text h3 {
  margin: 0;
  font-family: "Roboto Slab", serif;
  letter-spacing: 0.05em;
  color: #637588;
}

.post-item__text p {
  padding: 18px 0 0;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
  line-height: 1.14;
}

.post-item:nth-of-type(1) {
  grid-area: p1;
}

.post-item:nth-of-type(2) {
  grid-area: p2;
}

.post-item:nth-of-type(3) {
  grid-area: p3;
}

.post-item:nth-of-type(4) {
  grid-area: p4;
}

.post-item:nth-of-type(5) {
  grid-area: p5;
}

.post-item:nth-of-type(6) {
  grid-area: p6;
}

.footer {
  padding: 50px 20px 72px;
  color: #ffffff;
  background-color: #2d3651;
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}

.footer__title {
  display: block;
  margin-right: -0.5em;
  text-align: center;
  letter-spacing: 0.33em;
  text-transform: uppercase;
  color: #637588;
  font-weight: 100;
}

.footer__title--accent {
  display: block;
  margin-left: -16px;
  letter-spacing: 0.05em;
  color: #e5e5e5;
  font-weight: 700;
}

.footer__social {
  display: grid;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 10px 0 14px 20px;
  grid-template-columns: repeat(5, 3.215rem);
}

.footer__social .fab {
  font-size: 2.25rem;
  -webkit-transition: color 0.5s;
  -o-transition: color 0.5s;
  transition: color 0.5s;
}

.footer__social .fab:hover {
  color: #d66926;
}

hr {
  width: 75px;
  height: 2px;
  margin: 14px auto 19px;
  color: rgba(99, 117, 136, 0.4);
  border: none;
  background-color: rgba(99, 117, 136, 0.4);
}

@media (min-width: 576px) {
  .header-content__buttons .btn:first-of-type {
    margin-right: 20px;
  }
}

@media (min-height: 691px) {
  .skill-item {
    min-height: calc(33.333vh - 13.333px);
  }
}

@media (min-width: 768px) {
  .header-navbar__btn {
    display: none;
  }
  .header-navbar__list {
    display: grid;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: end;
    grid-template-columns: repeat(auto-fit, minmax(50px, -webkit-max-content));
    grid-template-columns: repeat(auto-fit, minmax(50px, max-content));
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 3.75rem;
  }
  h2 {
    margin-bottom: 56px;
    font-size: 2.5rem;
  }
  h3 {
    margin-bottom: 30px;
    font-size: 1.125rem;
  }
  p {
    font-size: 1.125rem;
  }
  .btn {
    min-width: 250px;
    height: 60px;
    padding: 18px 20px;
  }
  .header-content__title {
    margin: 0 0 53px;
  }
  .skills__container {
    grid-gap: 10px;
    grid-template-areas: "a1 a1 a2 a3" "a4 a5 a5 a6" "a7 a8 a9 a6";
    grid-template-columns: repeat(4, 1fr);
  }
  .about__container {
    grid-template-columns: 1fr 271px;
  }
  .about__content p:first-of-type::after {
    right: -50px;
  }
}

@media (max-width: 991.8px) and (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    margin-bottom: 42px;
    font-size: 2rem;
  }
  h3 {
    margin-bottom: 30px;
    font-size: 1.125rem;
  }
  .btn {
    min-width: 200px;
    height: 50px;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .header-content__title {
    margin: 0 0 43px;
  }
  .skills__container {
    grid-gap: 10px;
    grid-template-areas: "a1 a1 a2" "a3 a4 a4" "a5 a5 a6" "a7 a8 a6" "a7 a9 a9";
    grid-template-columns: repeat(3, 1fr);
  }
  .about {
    padding: 80px 0;
  }
  .about__container {
    grid-gap: 40px;
    grid-template-columns: 1fr 271px;
  }
  .about__content p:first-of-type::after {
    right: -20px;
  }
  .about__img {
    margin-top: -1px;
  }
  .contact-form__btn-subscribe {
    height: 60px;
    font-size: 1.125rem;
  }
  .posts__container {
    padding: 53px 20px 80px;
  }
  .post-container {
    grid-template-areas: "p1 p1 p2" "p3 p4 p4" "p5 p5 p6";
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.8px) {
  h1 {
    font-size: 1.875rem;
  }
  .btn {
    min-width: 170px;
    height: 40px;
    padding: 10px 20px;
    letter-spacing: 0.05em;
    font-size: 1rem;
  }
  .header-menu {
    background-color: rgba(68, 89, 110, 0.25);
  }
  .header-navbar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
  }
  .header-navbar__btn {
    display: block;
  }
  .header-navbar__list {
    position: absolute;
    top: 100%;
    right: 20px;
    display: none;
    text-align: right;
    background-color: rgba(68, 89, 110, 0.9);
  }
  .header-content__title {
    margin: 0 0 33px;
  }
}

@media (max-width: 767.8px) and (min-width: 576px) {
  h2 {
    margin-bottom: 36px;
    font-size: 1.5rem;
  }
  h3 {
    margin-bottom: 30px;
    font-size: 1.125rem;
  }
  .skills__container {
    font-size: 1.125rem;
    grid-gap: 10px;
    grid-template-areas: "a1 a2" "a3 a2" "a4 a4" "a5 a6" "a5 a7" "a8 a9";
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-item__link {
    font-size: 1.125rem;
  }
  .about {
    padding: 60px 0;
  }
  .about__container {
    grid-gap: 20px;
    grid-template-columns: 1fr 236px;
  }
  .about__content p:first-of-type::after {
    right: -10px;
  }
  .about__img {
    margin-top: 0;
  }
  .contact-form__container {
    grid-template-areas: "f1 f1" "f2 f3";
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-form__btn-subscribe {
    height: 60px;
    letter-spacing: 0.1em;
    font-size: 1.125rem;
  }
  .posts__container {
    padding: 40px 20px 60px;
  }
  .post-container {
    grid-template-areas: "p1 p2" "p3 p4" "p5 p6";
    grid-template-columns: repeat(2, 1fr);
  }
  .post-item__text {
    font-size: 0.984rem;
  }
  .post-item__text h3 {
    line-height: 1.15;
  }
  .post-item__text p {
    line-height: 1.15;
  }
}

@media (max-height: 690.8px) {
  .skill-item {
    min-height: calc(230px - 20px * 0.66);
  }
}

@media (max-width: 575.8px) {
  .btn-accent {
    width: 100%;
    min-width: auto;
  }
  .header-content__buttons {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .header-content__buttons .btn:first-of-type {
    margin-bottom: 20px;
  }
  .skills {
    padding: 20px;
  }
  .skills__container {
    font-size: 1.125rem;
    grid-gap: 20px;
    grid-template-areas: "a1" "a2" "a3" "a4" "a5" "a6" "a7" "a8" "a9";
    grid-template-columns: 1fr;
  }
  .skill-item__link {
    font-size: 1.125rem;
  }
  .about {
    padding: 60px 0;
  }
  .about h2 {
    text-align: center;
  }
  .about__container {
    grid-gap: 20px;
    grid-template-columns: 1fr;
  }
  .about__content p:first-of-type {
    margin-top: 30px;
  }
  .about__content p:first-of-type::after {
    display: none;
  }
  .contact-form__container {
    grid-template-areas: "f1" "f2" "f3";
    grid-template-columns: 1fr;
  }
  .contact-form__btn-subscribe {
    height: 60px;
    letter-spacing: 0.1em;
    font-size: 1.125rem;
  }
  .posts__container {
    padding: 40px 20px 60px;
  }
  .posts__container h2 {
    margin-bottom: 36px;
    text-align: center;
  }
  .post-container {
    grid-template-areas: "p1" "p2" "p3" "p4" "p5" "p6";
    grid-template-columns: 1fr;
  }
  .post-item__text {
    font-size: 0.984rem;
  }
  .post-item__text h3 {
    font-size: 1.125rem;
  }
  .post-item__text p {
    padding: 17px 0 0;
  }
}
