@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Montserrat"), local("Montserrat-Regular"),
    local("Montserrat Regular"),
    url("../fonts/montserrat-latin_cyrillic-regular.woff2") format("woff2"),
    url("../fonts/montserrat-v18-latin_cyrillic-regular.woff") format("woff");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Montserrat-Bold"), local("Montserrat Bold"),
    url("../fonts/montserrat-latin_cyrillic-700.woff2") format("woff2"),
    url("../fonts/montserrat-latin_cyrillic-700.woff") format("woff");
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  min-width: 400px;
  height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  font-family: "Montserrat", "Arial", sans-serif;
  color: #ffffff;
  font-style: normal;
}

.visually-hidden:not(:focus):not(:active),
input[type="checkbox"].visually-hidden,
input[type="radio"].visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  -webkit-clip-path: inset(100%);
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* css */
.container {
  width: 100%; max-width: 420px;
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
  padding-top: 16px;
  background-color: rgb(166, 180, 164);
  background-image: url(../img/bg-image.png);
  background-size: 200px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.main {
  margin: 0 auto;
}

.page__header {
  margin-bottom: 24px;
}

.logo {
  display: block;
  margin: 0 auto;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list__item {
  width: 288px;
  margin-bottom: 12px;
}

.link-list__url {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 12px;
  background: rgb(197, 184, 174);
  border-radius: 6px;
  transition: box-shadow, background 0.3s ease-out;
}

.link-list__url:hover,
.link-list__url:focus {
  background: rgb(177 162 149);
  box-shadow: 0 0 0 1px rgb(177 162 149);
  outline: 0;
}

.link-list__url::after {
  content: "";
  position: absolute;
  top: 0;
  left: 48px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.link-list__text {
  margin: 0 auto;
  text-transform: uppercase;
}

.link-list__text_show {
  display: none;
}

.link-list__icon {
  margin-right: 24px;
  pointer-events: none;
}

.link-list__url:hover .link-list__icon,
.link-list__url:focus .link-list__icon {
  filter: invert(37%) sepia(51%) saturate(2778%) hue-rotate(350deg)
    brightness(54%) contrast(50%);
}

.link-list__item_special {
  margin-top: 0px;
  font-weight: bold;
}

.link-list__item_special .link-list__url {
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgb(197, 184, 174);
}

.link-list__item_special .link-list__url:hover,
.link-list__item_special .link-list__url:focus {
  background: linear-gradient(
    to bottom right,
    rgb(225 201 183),
    rgb(167 151 139)
  );
}

.footer {
  margin-top: auto;
  text-align: center;
}

.small-text {
  font-size: 12px;
}

address {
  margin-bottom: 4px;
  font-style: normal;
}

.modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 72px 0 56px 0;
  background-color: rgb(166, 180, 164);
}

.modal__show {
  display: block;    
  animation: fromLeft 0.8s;
}

.modal__link {
  width: 100%;
  border: none;
  color: inherit;
  cursor: pointer;
}

.modal__close {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  padding: 16px;
  background-color: transparent;
  border: 0;
  line-height: 0;
  cursor: pointer;
}

.modal__close-img {
  fill: rgb(255, 255, 255);
  transition: fill 150ms ease-in-out;
}

.modal__close:hover .modal__close-img {
  fill: rgba(0, 0, 0, 0.5);
}

.modal .small-text {
  text-align: center;
}

.modal address.small-text {
  margin-bottom: 8px;
}

.modal p.small-text {
  margin-top: 0;
  margin-bottom: 24px;
}

.modal__back {
  margin: 24px auto 0 auto;
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.modal__back .link-list__text {
  font-size: 14px;
  text-transform: none;
}

.modal .link-list__url::after {
  content: none;
}

.modal__back .link-list__icon {
  margin-right: 8px;
}

.map {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.map__img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: none;
  width: 600px;
  height: 240px;
}

@media (min-width: 576px) {
  .page {
    background-size: 250px;
  }
  .map {
    height: 320px;
  }
  .map__img {
    height: 320px;
  }
  .modal .small-text {
    font-size: 14px;
  }
  .modal__back .link-list__text {
    font-size: 16px;
  }
}

@media (min-width: 600px) {
  .map__img {
    left: 50%;
    margin-left: -300px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .logo {
    width: 220px;
  }
  .page {
    padding-top: 32px;
    padding-bottom: 16px;
    background-size: 305px;
  }
  .page__header {
    margin-bottom: 32px;
  }
  .link-list {
    font-size: 18px;
  }
  .link-list__item {
    width: 320px;
    margin-bottom: 16px;
  }
  .link-list__item_special {
    margin-top: 0px;
  }
  .map {
    height: 450px;
  }
  .map__img {
    height: 450px;
  }
  .modal .small-text {
    font-size: 16px;
  }
  .modal__back .link-list__text {
    font-size: 18px;
  }
  .modal p.small-text {
    margin-bottom: 42px;
  }
  .modal__back {
    margin: 42px auto 0 auto;
  }
}

@media (min-width: 992px) {
  .link-list__text_hide {
    display: none;
  }
  .link-list__text_show {
    display: block;
  }
  .modal {
    top: calc(50% - 267px);
    left: calc(50% - 375px);
    width: 750px;
    height: auto;
    padding: 32px 0 48px 0;
    color: #161616;
    background-color: #ffffff;
    border-radius: 8px;
  }
  .map {
    height: 320px;
  }
  .map__img {
    height: 320px;
  }
  .modal__back {
    display: none;
  }
  .modal p.small-text {
    margin-bottom: 16px;
  }
  .modal__close-img {
    fill: rgba(0, 0, 0, 0.4);
  }
  .modal__close:hover .modal__close-img {
    fill: rgba(0, 0, 0, 0.7);
  }
  .modal__show {
    animation: bounce 0.7s;
  }
}

@media (min-width: 1200px) {
  .logo {
    width: 320px;
  }
}


/* animations */
@keyframes bounce {
  0% {
      transform: translateY(-2000px);
  }

  60% {
      transform: translateY(30px);
  }

  80% {
      transform: translateY(-10px);
  }

  100% {
      transform: translateY(0);
  }
}


@keyframes fromLeft {
  0% {
      transform: translateX(-2000px);
  }
  100% {
      transform: translateX(0);
  }
}
/* УЛУЧШЕНИЯ ДЛЯ БОЛЬШИХ ЭКРАНОВ */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
    padding: 0 24px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 800px;
    padding: 0 40px;
  }
  
  .link-list__item {
    width: 100%;
    max-width: 600px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 900px;
    padding: 0 50px;
  }
}

/* ======= УЛУЧШЕНИЯ ДИЗАЙНА MOITON.SALON ======= */

/* Стили для заголовков локаций */
.location-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0 8px 0;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Центрирование текста */
.text-center {
  text-align: center;
}

/* Улучшенные hover эффекты для кнопок */
.link-list__url {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 12px 16px;
}

.link-list__url:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.link-list__url:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Улучшенный логотип */
.logo {
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Лучшая типографика */
body {
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Улучшенные фокусные состояния для доступности */
.link-list__url:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Больше кликабельная зона */
.link-list__item {
  margin-bottom: 12px;
}

/* Медиазапросы для заголовков */
@media (min-width: 768px) {
  .location-title {
    font-size: 20px;
    margin: 20px 0 12px 0;
  }
}

@media (min-width: 992px) {
  .location-title {
    font-size: 22px;
    margin: 24px 0 16px 0;
  }
  
  .link-list__url {
    padding: 16px 20px;
  }
}


/* ======= ФУТЕР С АВТОМАТИЧЕСКИМ ГОДОМ ======= */
.footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .footer {
    margin-top: 60px;
    padding: 30px 0;
  }
  
  .footer-copyright {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  .footer {
    margin-top: 80px;
    padding: 40px 0;
  }
  
  .footer-copyright {
    font-size: 16px;
  }
}

/* Стили для ссылок в футере */
.footer-links {
  text-align: center;
  margin: 10px 0 0 0;
  font-size: 13px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

@media (min-width: 768px) {
  .footer-links {
    font-size: 14px;
    margin: 12px 0 0 0;
  }
}

@media (min-width: 992px) {
  .footer-links {
    font-size: 15px;
    margin: 15px 0 0 0;
  }
}
