/**
 * Footer Styles (BEM Methodology)
 */

/* ==========================================================================
   FONTS
   ========================================================================== */

@font-face {
    font-family: 'Steinbeck';
    src: url('../fonts/steinbeck/Steinbeck-Regular.woff2') format('woff2'),
         url('../fonts/steinbeck/Steinbeck-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rainer';
    src: url('../fonts/rainer/Rainer_v02-Regular.woff2') format('woff2'),
         url('../fonts/rainer/Rainer_v02-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   FOOTER BLOCK
   ========================================================================== */

.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 60px;
    font-size: 12px;
    line-height: 1.2;
    z-index: 10;
    margin-top: 40px;
    font-family: 'Steinbeck', sans-serif;
}


.footer__content {
    display: grid;
    grid-template-columns: 2fr 325px;
    gap: 100px;
    align-items: start;
}

/* ==========================================================================
   FOOTER LEFT SECTION (Two columns + Logo)
   ========================================================================== */

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-menu__column {
    display: flex;
    flex-direction: column;
}

.footer-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0px ;
}

.footer-menu__item,
.menu-item {
    margin: 0;
}

.footer-menu__item.mt-20 {
    margin-top: 20px;
}
.footer-menu__link,
.footer-menu__list a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    font-family: 'Steinbeck';
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 15px;
    position: relative;
    width:auto;
    font-size: 12px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}


.footer-menu__link::after,
.footer-menu__list a::after{
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    transition: width 0.3s ease;
    height: 1px;
    background: #fff;
}

.footer-menu__link:hover::after,
.footer-menu__link:focus::after,
.footer-menu__list a:hover::after,
.footer-menu__list a:focus::after {
    width: 100%;
}




.footer-menu--mobile {
    display: none;
}


/* ==========================================================================
   FOOTER LOGO (Under left columns)
   ========================================================================== */

.footer-logo.footer-logo--left {
    display: none !important;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    max-width: 600px;
}

.footer-logo--left {
    margin-top: 20px;
}

.footer-logo__link {
    font-family: 'Rainer', serif;
    font-size: clamp(48px, 9vw, 110px);
    font-weight: normal;
    position: relative;
    line-height: 0.8;
    margin: 0;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    max-width: 600px;
    display: block;
    transition: opacity 0.2s ease;
}

.footer-logo__link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.footer-logo__letter {
  letter-spacing: clamp(20px, 5.5vw, 67px);
  font-size: clamp(48px, 9vw, 110px);
   line-height: 0.8;
}

.footer-logo__subtitle {
    font-family: 'Steinbeck', serif;
    font-size: 10px;
    position: absolute;
    bottom: -25px;
    left: 12px;
    right: 0;
    width: max-content;
    max-width: 600px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 auto 0  auto;
}

/* ==========================================================================
   FOOTER SUBSCRIBE (Right Column)
   ========================================================================== */

.footer-subscribe {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-subscribe__copyright{
  line-height: 18px;
}
.footer-subscribe__email{
  line-height: 18px;
}

.footer-subscribe__title {
    font-family: 'Rainer', serif;
    font-size: 64px;
    font-weight: normal;
    margin: 0 0 0px;
    text-transform: uppercase;
    letter-spacing: 16px;
    text-align: center;
    line-height: 1;
}

.footer-subscribe__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-subscribe__input-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    border: 1px solid #fff;
}

.footer-subscribe__input {
    background-color: #000;
    border: none;
    color: #fff;
    padding: 20px 15px;
    font-family: 'Steinbeck', sans-serif;
    font-size: 14px;
    outline: none;
    transition: background-color 0.2s ease;
}

.footer-subscribe__input::placeholder {
    color: rgba(255, 255, 255, 1);
}

.footer-subscribe__input:focus {
    background-color: #111;
}

.footer-subscribe__button {
    background-color: #000;
    border: none;
    border-left: 1px solid #fff;
    color: #fff;
    padding: 20px 15px;
    font-family: 'Steinbeck', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.footer-subscribe__button:hover,
.footer-subscribe__button:focus {
    background-color: #fff;
    color: #000;
}

.footer-subscribe__terms {
    font-family: 'Steinbeck', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #fff;
    margin-top: 15px;
    text-align: left;
}

.footer-subscribe__terms-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-subscribe__terms-link:hover {
    color: rgba(255, 255, 255, 0.8);
}
.footer-subscribe__title-mobile{
    display: none;
}

/* ==========================================================================
   FOOTER SOCIAL - Специфичные стили для футера
   Базовые стили социальных иконок в components.css
   ========================================================================== */

.footer .social-icons {
    margin-top: 15px;
}

/* ==========================================================================
   FOOTER SUBSCRIBE INFO (Copyright under social)
   ========================================================================== */

.footer-subscribe__info {

    margin-top: 10px;
    font-family: 'Steinbeck', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
    text-align: left;
}



.footer-subscribe__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-subscribe__link:hover {
    color: #fff;
    opacity: 0.8;
}


/* ==========================================================================
  MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1150px) {
  
  .footer__content{
    gap: 40px;
  }
  .footer-logo__subtitle{
    left:-23px;
  }
  .footer-menu{
    gap: 20px;
  }

}

@media (max-width: 920px) {
  .footer__content{
    grid-template-columns: 1fr;
  }

  .footer-logo--left{
    margin:  0 auto 20px auto;
    padding-left: -10px;
  }
  .footer-logo__subtitle{
    left:-35px;
  }
  .footer-left{
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {

  .footer-subscribe__title-mobile{
    display: none;
  }
  .footer-menu__item.mt-20{
    margin-top: 0;
  }
  .footer{
    margin-top: 5px;
    padding: 30px 0 30px;
  }
  .footer-left{
    display: none;
  }
 
  .footer-subscribe__title{
    font-size: clamp(64px, 9vw, 64px);
    letter-spacing: clamp(16px, 2.5vw, 16px);
  }
  .footer-subscribe__input-wrapper{
    grid-template-columns: 1fr 105px;
  }
  .footer-subscribe__button{
    padding: 20px 5px 20px 10px;
  }
  .footer-menu--mobile{
    display: grid;
    gap: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* Порядок как на десктопе: меню → заголовок «Подписаться» → иконки */
  .footer-subscribe {
    display: flex;
    flex-direction: column;
  }
  .footer-menu--mobile {
    order: 1;
    margin-top: 0;
  }
  .footer-subscribe__title {
    order: 2;
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .footer-subscribe .social-icons {
    order: 3;
  }
  .footer-subscribe__info {
    order: 4;
  }

}

@media (max-width: 480px) {

  .footer-menu--mobile{
    gap: 30px;
  }

  .footer-subscribe__title{
    font-size: clamp(54px, 9vw, 64px);
    letter-spacing: clamp(16px, 2.5vw, 16px);
    text-indent: 0.25em;
  }
  .footer-subscribe__input-wrapper{
    grid-template-columns: 1fr 120px;
  }
  .footer-subscribe__input{
    padding: 20px 10px;
  }
  .footer-subscribe__email{
    margin-top: 2px;
  }
  .footer-subscribe__title-mobile{
    margin-bottom: 6px;
  }
}

@media (max-width: 360px) {
  .footer-subscribe__title{
    font-size: clamp(54px, 9vw, 64px);
    letter-spacing: clamp(14px, 2.5vw, 16px);
    text-indent: 0.05em;
    padding-left: 0;
  }
}
