@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

html {
  box-sizing: border-box;
}

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

body {
  font-weight: normal;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background: url(/img/body-bg.jpg);
  line-height: 1.5;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #177cab;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  outline: none;
}

p {
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 32px;
  font-weight: normal;
  line-height: 1;
}

h1 {
  font-size: 32px;
  margin-bottom: 28px;
}

h2 {
  clear: both;
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
}

.logos {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.logos__link {
  display: block;
}

.button {
  border-radius: 8px;
  display: inline-block;
  line-height: 1;
  padding: 12px 16px;
}

.button:hover,
.button:focus {
  text-decoration: none;
}

.button--light {
  background: linear-gradient(#fff, #efefef);
  border: 1px solid #cfcece;
  color: #000;
}

.button--light:hover,
.button--light:focus {
  border-color: #999;
}

.button--blue {
  background-color: #177cab;
  color: #fff;
}

.button--blue:hover,
.button--blue:focus {
  background-color: #1a8dc4;
}

.button--large {
  font-size: 21px;
  padding: 12px 16px;
}

.icon-list {
  margin-bottom: 16px;
}

.icon-list__item {
  align-items: flex-start;
  display: flex;
  margin-bottom: 16px;
}

.icon-list__icon {
  flex-shrink: 0;
  margin-right: 12px;
  width: 24px;
}

.float {
  display: block;
  margin-bottom: 24px;
}

@media screen and (min-width: 600px) {
  .float--left {
    float: left;
    margin-right: 24px;
  }
}

@media screen and (min-width: 600px) {
  .float--right {
    float: right;
    margin-left: 24px;
  }
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* LAYOUT STRUCTURE
--------------------------------------------------*/

.container {
  margin: 0 auto;
  overflow: hidden;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  max-width: 960px;
}

@media screen and (min-width: 980px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
}

.header {
  position: relative;
}

.nav {
  background: radial-gradient(at bottom, #263e3f, #000);
  font-size: 18px;
}

.nav__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  text-align: center;
  width: 100%;
}

@media (min-width: 600px) {
  .nav__list {
    justify-content: flex-start;
  }
}

.nav__item {
  flex-grow: 1;
}

@media (min-width: 600px) {
  .nav__item {
    flex-grow: 0;
  }
}

.nav__link {
  border-top: 3px solid transparent;
  color: #fff;
  display: block;
  font-size: 14px;
  padding: 16px 8px;
}

@media (min-width: 600px) {
  .nav__link {
    font-size: 16px;
    padding: 36px 20px;
  }
}

.nav__link:hover,
.nav__link:focus {
  background: linear-gradient(#263e3f, rgba(38, 62, 63, 0));
  border-top-color: #049fdf;
  color: #96ddfc;
  text-decoration: none;
}

.header__content {
  background-color: #e5e5e5;
  font-family: 'Roboto Slab', serif;
  padding: 36px 0;
}

.header__container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .header__container {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

.header__link {
  align-items: center;
  color: #333;
  display: flex;
  line-height: 1.25;
}

.header__link:hover,
.header__link:focus {
  text-decoration: none;
}

.header__icon {
  flex-shrink: 0;
  margin-right: 12px;
}

.header__text {
  display: block;
}

.header__logo-icon {
  fill: #049fdf;
  width: 24px;
}

@media (min-width: 600px) {
  .header__logo-icon {
    width: 32px;
  }
}

@media (min-width: 768px) {
  .header__logo-icon {
    width: 40px;
  }
}

.header__logo-text {
  font-weight: 700;
  font-size: 5.25vw;
}

@media (min-width: 600px) {
  .header__logo-text {
    font-size: 32px;
  }
}

.header__tel {
  cursor: default;
}

.header__tel-icon {
  width: 24px;
}

@media (min-width: 600px) {
  .header__tel-icon {
    width: 32px;
  }
}

.header__tel-text {
  font-size: 5.5vw;
}

@media (min-width: 600px) {
  .header__tel-text {
    font-size: 28px;
  }
}

.main {
  padding-bottom: 32px;
}

@media screen and (min-width: 960px) {
  .main__container {
    display: flex;
  }
}

.content {
  padding-top: 36px;
}

@media screen and (min-width: 960px) {
  .content {
    padding-right: 60px;
    width: 70%;
  }
}

@media screen and (min-width: 960px) {
  .sidebar {
    padding-top: 36px;
    width: 30%;
  }
}

.callout {
  background: linear-gradient(#fff, #eee);
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  margin-bottom: 48px;
  padding: 24px;
  text-align: center;
}

.callout__heading,
.callout__text {
  margin-bottom: 0;
}

.callout__heading {
  margin-bottom: 8px;
}

.home-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -16px;
}

.home-column {
  margin-bottom: 24px;
  max-width: 320px;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  width: 100%;
}

.home-column .button {
  margin-top: 8px;
}

.gallery {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.gallery__item {
  display: block;
  padding: 0.75rem;
  position: relative;
  width: 100%;
}

@media screen and (min-width: 400px) {
  .gallery__item {
    width: 50%;
  }
}

@media screen and (min-width: 600px) {
  .gallery__item {
    width: 33.33333%;
  }
}

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

.gallery__link {
  border: 1px solid #ddd;
  display: block;
  padding: 0.5rem;
}

.gallery__link:hover,
.gallery__link:focus {
  border-color: #177cab;
}

.gallery__image {
  display: block;
  height: auto;
  width: 100%;
}

.slick-wrapper {
  margin-bottom: 56px;
  position: relative;
}

.slick {
  background-color: #000;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  z-index: 2;
}

@media (min-width: 960px) {
  .slick {
    background-color: transparent;
    height: 370px;
  }
}

.slick__item {
  position: relative;
}

.slick__image {
  width: 100%;
}

.slick__content {
  color: #fff;
  flex-grow: 1;
  padding: 20px 24px;
  text-align: center;
  width: 100%;
}

@media (min-width: 960px) {
  .slick__content {
    background-color: rgba(0, 0, 0, 0.5);
    bottom: 0;
    left: 0;
    position: absolute;
  }
}

.slick__text {
  font-size: 16px;
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .slick__text {
    font-size: 21px;
  }
}

.gallery {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.gallery__item {
  display: block;
  padding: 0.75rem;
  position: relative;
  width: 100%;
}

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

@media screen and (min-width: 600px) {
  .gallery__item {
    width: 33.33333%;
  }
}

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

@media screen and (min-width: 960px) {
  .gallery__item {
    width: 33.33333%;
  }
}

.gallery__link {
  border: 1px solid #ddd;
  display: block;
  padding: 0.5rem;
}

.gallery__link:hover,
.gallery__link:focus {
  border-color: #5e8dc1;
}

.gallery__image {
  display: block;
  height: auto;
  width: 100%;
}

.footer {
  background: radial-gradient(at top, #263e3f, #000);
  color: #fff;
  font-size: 14px;
  padding: 36px 0;
  text-align: center;
}

.copyright {
  margin-bottom: 0;
}

.copyright__link {
  color: #fff;
  display: inline-block;
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 4px;
}
