:root {
  --bg-color: #FFEDDC;
  --text-color: #F2994A;
  --header-color: #EB5757;

  --a-color: #EB5757;
  --a-hover-color: #FF9393;
  --a-active-color: #DF4949;
  --a-decoration: none;
  --a-decoration-hover: none;

  --btn-text-color: #FFF;
  --btn-bg-color: #EB5757;
  --btn-bg-hover-color: #FC6363;
  --btn-bg-active-color: #E45151;
  --btn-border-radius: 8px;

  --eye-shadow-color: #FFD2A8;
}

.eye-opened {
  display: none;
}
.eye-closed {
  display: block;
}

body {
  background-color: var(--bg-color);
  font: 500 24px/1.3 'Red Hat Text', sans-serif;
  color: var(--text-color);
}

a {
  color: var(--a-color);
  text-decoration: var(--a-decoration);
}
a:hover {
  color: var(--a-hover-color);
  text-decoration: var(--a-decoration-hover);
}
a:active {
  color: var(--a-active-color);
  text-decoration: none;
}

h1, h2 {
  font: 900 52px/1.23 'Rubik', sans-serif;
  color: var(--header-color);
  margin-bottom: 40px;
}

h2 {
  font-size: 32px;
}

p {
  margin-bottom: 40px;
}

.btn {
  color: var(--btn-text-color);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.8em 1.5em;
  background-color: var(--btn-bg-color);
  border-radius: var(--btn-border-radius);
}
.btn:hover {
  color: var(--btn-text-color);
  background-color: var(--btn-bg-hover-color);
}
.btn:active {
  color: var(--btn-text-color);
  background-color: var(--btn-bg-active-color);
}

.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 10px;
  margin-right: auto;
  margin-left: auto;
  position: relative;
}

.top {
  display: flex;
  align-items: center;
  margin-bottom: 34px;
}
.top > svg {
  width: 313px;
  height: 160px;
  margin-top: -17px;
  display: inline-block;
}
.top .link {
  margin-right: 3em;
}
.top .link svg {
  vertical-align: -1px;
}
.top .link__cv {
  margin-left: auto;
}
.top .link__back {
  text-decoration: none;
}

.mobile-eyes {
  display: none;
}

.text {
  width: 65%;
}
.text .small {
  font-size: 18px;
}

.main-right-eye {
  width: 400px;
  height: 212px;
  display: inline-block;
  position: absolute;
  top: 415px;
  right: 0;
}

.section {
  margin: 2em 0;
}
.section > section {
  width: 65%;
}

.section-block {
  display: flex;
}
.section-block section {
  width: 65%;
}
.section-block aside {
  width: 30%;
  margin-left: auto;
}
.section-block aside svg {
  max-width: 100%;
  height: 220px;
}

.img {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 40px;
}
.img img {
  max-width: 100%;
  border: 1px solid #000;
  margin-bottom: 20px;
}
.img small {
  flex-basis: 100%;
  font: 400 12px/1.175 'Rubik', sans-serif;
}
.img__80p {
  width: 80%;
}
.img__gif img {
  border: none;
}
.img__diptych img {
  width: 50%;
  margin-left: -1px;
}
.img__triptych img {
  width: 33%;
  margin-left: -1px;
}
.img__diptych.img__gif img:first-of-type {
  width: calc(50% - 1em);
  margin-right: 1em;
}

.img-group {
  display: flex;
  align-items: flex-start;
  margin: 0 -10px;
}
.img-group .img {
  margin-left: 10px;
  margin-right: 10px;
}
.img-group .img img {
  width: 100%;
}

.case-nav {
  width: 65%;
  font: 400 12px/1.23 'Rubik', sans-serif;
  margin: 60px 0 40px;
  display: flex;
  flex-wrap: wrap;
}
.case-nav a {
  flex-grow: 1;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.085rem 0.85rem 0.1rem;
  border: 1px solid #000;
  margin: -1px 0 0 -1px;
}
.case-nav a:hover, a.active {
  color: #fff;
  background-color: #000;
}
.case-nav a:active {
  color: #000;
  background-color: #fff;
}

.footer h2 {
  margin-bottom: 14px;
}

.contacts {
  color: var(--a-color);
  position: relative;
}
.contacts svg {
  position: absolute;
  top: 50%;
  left: 390px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.mobile-eye br {
  display: none;
}
.mobile-eye svg {
  display: none;
}

.links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.links a {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.hidden {
  display: none;
}


@media (max-width: 998px) {
  .links a {
    flex: 0 0 33.3333%;
    margin-bottom: 1em;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 20px;
  }

  h1, h2 {
    font-size: 30px;
  }

  .btn {
    font-size: 16px;
    padding: 0.7em 1.6em;
  }

  .top {
    justify-content: space-between;
    padding-top: 18px;
    margin-bottom: 24px;
  }
  .top > svg {
    display: none;
  }
  .top .link {
    margin: 0;
  }

  .mobile-eyes {
    height: 130px;
    margin: 0 -10px;
    display: block;
    position: relative;
    overflow: hidden;
  }
  .mobile-eyes svg {
    position: absolute;
  }
  .mobile-eyes svg:first-of-type {
    width: 137px;
    height: 140px;
    top: -30px;
    left: 10px;
  }
  .mobile-eyes svg:last-of-type {
    width: 166px;
    height: 140px;
    top: -20px;
    right: -60px;
  }

  .text,
  .case-nav,
  .section > section,
  .img__80p {
    width: 100%;
  }

  .section-block {
    flex-wrap: wrap;
  }
  .section-block section,
  .section-block aside {
    width: 100%;
  }
  .section-block aside svg {
    display: none;
  }

  .main-right-eye {
    display: none;
  }

  .contacts svg {
    top: -30px;
    left: 190px;
    -webkit-transform: translateY(-50%) scale(0.7);
    transform: translateY(-50%) scale(0.7);
  }

  .mobile-eye {
    padding: 0 10px 0.565em;
    margin: 0 -10px;
    position: relative;
    overflow: hidden;
  }
  .mobile-eye br {
    display: block;
  }
  .mobile-eye svg {
    width: 166px;
    height: 140px;
    display: block;
    position: absolute;
    top: -30px;
    right: -60px;
  }

  .links a {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .links a {
    flex: 0 0 33.3333%;
    margin-bottom: 1em;
  }
}

@media (max-width: 480px) {
  .links a {
    flex: 0 0 50%;
    margin-bottom: 1em;
  }
}
