@import "./reset.css";

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

body {
  font-family: "Manrope", sans-serif;
}

.sticky-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container.container-small {
  max-width: 970px;
}

.title-1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.title-1 span {
  color: #81b4bd;
}

.title-2 {
  font-size: 28px;
  font-weight: 700;
}

.title-3 {
  font-size: 20px;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.none {
  display: none !important;
}

.visual-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.no-scroll {
  overflow-y: hidden;
}

/* Header */
.header {
  position: relative;
  z-index: 19;
  padding-top: 40px;
  padding-bottom: 40px;
}

.header-bg {
  background-color: #f6f6f6;
}

.header-white-bg {
  background-color: #fff !important;
}

.logo {
  flex-shrink: 0;
}

/* Nav */
.nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
}

.nav-list a {
  color: #000;
  transition: color 0.2s ease-in;
}

.nav-list a.active {
  color: #81b4bd;
}

.nav-list a:hover {
  color: #00ceb5;
}

.button-mobile-nav {
  display: none;
}

/* Mobile nav */

.mobile-nav {
  /* display: flex; */
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f6f6f6;
  align-items: center;
  z-index: 9;
  display: none;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-nav-list a {
  color: black;
}

/* Promo */
.promo {
  display: flex;
  align-items: center;
  padding-left: 70px;
  height: 500px;
  background-color: #394d42;
  background-image: url("./../img/promo/promo-bg.jpg");
  /* Картинка будет размещена по центру по горизонтали и вертикали */
  background-position: center;
  /* Растягивание картинки по всему блоку ширина и высота */
  background-size: cover;
  border-radius: 40px;
  color: #fff;
}

/* Медиазапрос для Retina-экранов */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .promo {
    background-image: url("./../img/promo/promo-bg@2x.jpg");
  }
}

.promo-desc {
  /* У каждого нового класса или дива снизу или сверху будет расстояние между ними по 10px */
  display: flex;
  flex-direction: column;
}

.promo-title {
  font-weight: 800;
  font-size: 60px;
  margin-bottom: 10px;
}

.promo-text {
  font-size: 24px;
}

/* main Content */
.main-content {
  padding: 90px 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.content-row {
  display: flex;
  align-items: center;
  column-gap: 50px;
}

.content-row.content-row-reverse {
  flex-direction: row-reverse;
}

.content-img {
  border-radius: 40px;
  /* Картинка не сжимается */
  flex-shrink: 0;
  /* Скрываем элементы которые выходят за пределы */
  overflow: hidden;
}

.content-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-text p {
  font-size: 18px;
  line-height: 1.8;
}

.content-text a {
  color: #81b4bd;
  text-decoration: underline;
  transition: color 0.2s ease-in;
}

.content-text a:hover {
  color: #00ceb5;
}

/* Inner Page */
.inner-page {
  padding: 90px 0;
}

.inner-page-title-wrapper {
  margin-bottom: 60px;
}

/* Cards */
.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 60px;
}
.card {
  width: 370px;
}

.card-img {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px;
}

.card-desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-weight: 800;
  line-height: 1;
}

.card-desc p {
  line-height: 1.5;
}

.card a {
  color: #81b4bd;
  text-decoration: underline;
  transition: color 0.2s ease-in;
}

.card a:hover {
  color: #00bda6;
}

/* Article */

.article-content p {
  font-size: 18px;
  line-height: 1.8;
}

.article-content p + p {
  margin-top: 30px;
}

.article-img {
  border-radius: 20px;
  overflow: hidden;
  margin: 40px 0;
}

/* Contacts Page */
.contacts-columns {
  display: flex;
  justify-content: space-between;
  gap: 100px;
}

/* Form */
.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  width: 600px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 25px 0 rgba(211, 211, 211, 0.5);
}

.input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.input {
  width: 100%;
  height: 50px;
  padding: 14px 20px;
  border-radius: 2px;
  border: 1px solid #b5dee5;
  background: #eff9fb;
  color: #36727d;
  font-size: 16px;
  font-weight: 400;
}

.input::placeholder {
  color: #a3c9dc;
}

.input.input-50 {
  flex: 1;
}

.radio-list,
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.radio-list label,
.checkbox-list label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.radio-list label input {
  flex-shrink: 0;
}

.checkbox-list label input {
  flex-shrink: 0;
}

.submit-btn {
  align-self: flex-start;
  height: 50px;
  padding: 12px 36px;
  border-radius: 6px;
  background: #81b4bd;
  box-shadow: 0 8px 20px 0 rgba(129, 180, 189, 0.35);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  transition: all 0.2s ease-in;
}

.submit-btn:hover {
  opacity: 0.8;
}

.submit-btn:active {
  opacity: 1;
  position: relative;
  top: 1px;
  background-color: #4d909c;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Custom radio */
.fake-radio {
  /* Родитель After */
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 20px;
  border: 1px solid #88e8dd;
  background: #ebf9f8;
}

.fake-radio::after {
  content: "";
  /* Сын Fake radio */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 12px;
  background: #37b6cc;
  transition: all 0.2s ease-in;
}

.real-radio:checked + .fake-radio::after {
  transform: translate(-50%, -50%) scale(100%);
}

/* Custom Checkbox */
.fake-chekcbox {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid #88E8DD;
  background: #FFF;

}

.fake-chekcbox::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 16px;
  height: 13px;
  /* background-image: url(./../img/icons/icons.svg); */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='13' viewBox='0 0 16 13' fill='none'%3E%3Cpath d='M1.06055 5.06067L7.06055 11.0607M4.93923 11.0607L14.9392 1.06067' stroke='%2337B6CC' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.2s ease-in;
}

.real-checkbox:checked+.fake-chekcbox::after {
  transform: translate(-50%, -50%) scale(100%);
}

/* Address */
.address-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 470px;
}

.address-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.address-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.address-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.yandex-map {
  width: 100%;
  height: 375px;
}

/* Footer */
.footer {
  margin-top: auto;
  background-color: #111111;
  padding: 60px 0;
  color: #fff;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-copyring {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.3);
}

.footer-contacts {
  text-align: right;
}

.footer-phone {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  transition: color 0.2s ease-in;
}

.footer-phone:hover {
  color: #00ceb5;
}

.footer-email {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #00bda6;
  transition: color 0.2s ease-in;
}

.footer-email:hover {
  color: #394d42;
}

.footer-address {
  font-size: 14px;
  line-height: 1.5;
  color: rgb(255, 255, 255, 0.5);
}
