/* Подключение шрифта Manrope */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  background-color: white;
  color: #333;
  overflow-x: hidden;
  width: 100vw;
  box-sizing: border-box;
}


header {
  margin-top: 20px;
  text-align: center;
  padding: 20px 0;
  background-color: #fff;
}

header img {
  max-width: 100%;
  height: auto;
  max-height: 40px; 
  background-color: transparent;
  margin-top: 6px; 
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  overflow-x: hidden;
}

.button {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  width: 100%;
  max-width: 400px;
  padding: 15px;
  margin: 10px auto;
  background-color: white;
  border: 2px solid #E73F3E;
  border-radius: 10px;
  color: #484848;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button:first-child {
  background-color: #E73F3E;
  color: white;
}

.button img {
  margin-right: 10px; 
  width: 40px; 
  height: 40px;
  vertical-align: middle;
}

.button:hover {
  background-color: #E73F3E;
  color: white;
}

.button:active {
  background-color: #C1212D;
  color: white;
  border-color: #C1212D;
}

.button:first-child:hover {
  background-color: #C1212D;
}

.button:first-child:active {
  background-color: #C1212D;
}

.button:not(:first-child):hover {
  background-color: #E73F3E;
  color: white;
}

.button:not(:first-child):active {
  background-color: #C1212D;
  border-color: #C1212D;
}

footer {
  display: flex;
  flex-direction: column;
 	align-items: center;
  padding: 10px; 
  background-color: #484848;
  color: white;
  width: 100%;
  text-align: center;
  font-size: 12px; 
}

.social-media {
  display: flex;
  justify-content: center;
  margin: 50px 0 10px; 
}

.social-media a {
  margin: 0 5px; 
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.social-media img {
  width: 24px;
  height: 24px;
}

.social-media a:hover img {
  filter: invert(44%) sepia(85%) saturate(5003%) hue-rotate(345deg) brightness(95%) contrast(103%); /* Изменение цвета иконки при наведении */
}

        .icon {
            margin-right: 10px;
            transition: stroke 0.3s ease;
        }

        .icon:hover path {
            stroke: white;
        }
/* Note under buttons */
.preorder-note { max-width: 600px; padding: 0 10px 20px; margin: 0 auto 10px; font-size: 16px; line-height: 1.5; color: #484848; text-align: left; }


/* Centered social icons above footer */
.social-media {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 14px 0 8px;
}

.social-media a img {
  width: 20px;
  height: 20px;
}

/* Footer three items centered */
footer .footer-line {
  max-width: 1024px;
  margin: 0 auto;
  padding: 12px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

footer .footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

footer .phone-number {
  font-weight: 700;
  font-size: 16px;
}

footer .phone-desc {
  font-size: 12px;
  opacity: 0.9;
}

footer .site-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

footer .site-link:hover {
  border-bottom-color: rgba(255,255,255,0.8);
}

/* Footer spacing and phone formatting */
footer {
  padding-bottom: 12px;
}
footer p {
  margin-top: 18px; /* extra space above copyright */
}
footer .footer-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}
footer .footer-item.phone {
  position: relative;
  padding-left: 28px;
}

footer .phone-number {
  font-weight: 700;
  font-size: 16px;
}
footer .phone-desc {
  font-size: 12px;
  opacity: 0.9;
}

/* Ensure preorder note stays within buttons width */
.preorder-note { max-width: 600px; padding: 0 10px 20px; margin: 0 auto 10px; font-size: 16px; line-height: 1.5; color: #484848; text-align: left; }

/* Desktop: force phone icon visible */
@media only screen and (min-width: 901px) {
  footer .footer-item.phone {
    position: relative;
    padding-left: 28px;
  }
  footer .footer-item.phone::before {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 20px; height: 20px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    /* Try multiple paths; last is data-URI fallback */
    background-image: url("./phone.svg"), url("phone.svg"), url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 011 1V20a1 1 0 01-1 1C10.85 21 3 13.15 3 3a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.58a1 1 0 01-.24 1.01l-2.21 2.2z' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  }
}
