body, * {
    margin: 0;
    padding: 0;
}

body {
    background-color: #F4FBFF;
    font-family: 'montserrat', sans-serif;

}

html {
  scroll-behavior: smooth;
}

/* Header */

.header {
  background-color: #F4FBFF;
  height: 116px;
  display: flex;
  align-items: center;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  width: 328px;
  height: 28px;
}

.header__menu {
  width: 385px;
}

.menu__list {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.menu__item a {
  color: #000;
  text-decoration: none;
}

.header__button .btn--primary {
  width: 144px;
  height: 52px;
  background-color: #1F5676;
  border: none;
  border-radius: 12px;
  font-family: 'montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.btn--primary {
  background-color: #b4232e;
  color: #fff;
  width: 144px;
}

.btn--primary:hover {
  background-color: #921e27;
}

.btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  height: 52px;
  cursor: pointer;
  transition: 0.3s ease;
}


.header__button .btn--primary img {
    display: none;
}

.header {
  background-color: white;
  position: relative;
  z-index: 10;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.mobile_menu-cont {
    display: none;
}

.menu-toggle {
  display: none;

  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.mobile-menu.open {          /* КЛЮЧЕВОЕ правило для показа меню */
  display: block;
}

.menu-toggle img {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

/* Мобильное меню */


.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  font-family: 'montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.mobile-menu ul {
  max-width: 704px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.mobile-menu li {
  margin-bottom: 15px;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 18px;
  color: #333;
}


/* Базовая контейнерная сетка */
.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}


/* catalog */

.catalog {
  width: 100%;
  padding: 60px 0;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.catalog-title {
  color: #1F5676;
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.catalog-btn {
  width: 232px;
  height: 52px;
  background-color: #B4232E;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.catalog-btn:hover {
  background-color: #991c25;
}

.catalog-items {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.catalog-item {
  display: flex;
  align-items: center;
  width: 379px;
  height: 154px;
  padding: 24px;
  background-color: #fff;
  border-radius: 16px;
  box-sizing: border-box;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.05);
}

.item-img img {
  width: 140px;
  max-height: 130px;
  object-fit: contain;
}

.item-text {
  width: 146px;
  margin-left: 20px;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.link__main{
    margin-bottom: 60px;
    color: #9FA2A3;
}

.link__main a{
    margin-bottom: 60px;

    text-decoration: none;
    color: #9FA2A3;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
}













/* Footer */

.footer {
  background-color: #fff;
  padding: 60px 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.15);
  font-family: 'montserrat', sans-serif;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer__logo img {
  width: 328px;
  height: 28px;
}

.footer__title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  list-style: none;

}

.footer__link {
  text-decoration: none;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  /* width: calc(50% - 15px); */
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 500;
}

.footer__social-icons {
  display: flex;
  gap: 40px;
}

.footer__social-icons img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.footer__divider {
  width: 100%;
  height: 1px;
  background-color: #000;
  margin: 32px 0;
}

.footer__copy {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-align: left;
}

@media (max-width: 1200px) {
    .container {
        max-width: 704px;
    }

    .header {
        height: 100px;
    }

    .header__logo img {
        width: 280px;
        height: 24px;
    }

    .header__menu {
        display: none;
    }
    
    .header__mobile-menu {
        display: none; /* Показывается только на мобилках */
    }

    .catalog {
        width: 100%;
        padding: 32px 0;
    }

    .catalog-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .catalog-title {
        font-size: 20px;
    }


    .catalog-items {
        gap: 24px;
    }

    .catalog-item {
        width: 336px;
        height: 132px;
        padding: 24px;
    }

    .item-img img {
        width: 120px;
        max-height: 115px;
    }

    /* Footer */

    .footer {
        padding: 40px 0;
    }

    .footer__content {
        gap: 10px;
    }

    .footer__logo img {
        width: 280px;
        height: 24px;
    }

    .footer__title {
        font-size: 16px;
    }

    .footer__links {
        width: 172px;
    }

    .footer__link {
        font-size: 14px;
    }

    .footer__links li {
        margin-bottom: 12px;
    }

    .footer__links a {
        font-size: 14px;
    }

    .footer__social-icons {
    display: flex;
    gap: 24px;
    }

    .footer__social-icons img {
    width: 24px;
    height: 24px;
    }

     .mobile-menu ul {
        max-width: 704px;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0 auto;
    }

    .mobile_menu-cont {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle img {
        display: block;
    }
}

@media (max-width: 704px) {
    .container {
        max-width: 328px;
    }


    /* Header */

    .header {
        height: 88px;
    }

    .header__logo img {
        width: 210px;
        height: 18px;
    }

    .header__button .btn--primary{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .header__button .btn--primary img {
        display: block;
        width: 21px;
        height: 21px;
    }

    .header__button .btn--primary p {
        display: none;
    }
    .header__mobile-menu {
        display: none; 
    }

    /* Form */

    .form {
        border-radius: 16px;
        padding: 24px 0;
    }

    .form__inner {
        gap: 16px;
    }

    .form__title-small {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .form__title-big {
        font-size: 24px;
        margin-bottom: 2px;
    }

    .form__subtitle {
        font-size: 16px;
    }

    .form__content {
        gap: 16px;
    }

    .form__submit {
        width: 158px;
        height: 40px;
        border-radius: 8px;
        font-size: 14px;
    }


    /* contacts */

    .contacts {
        padding: 40px 0;
    }

    .contacts__title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .contacts__content {
        gap: 16px;
    }

    .contacts__info {
        gap: 16px;
    }

    .contacts__city-header {
        gap: 1px;
    }

    .contacts__city-header img {
        width: 32px;
        height: 32px;
    }

    .contacts__city-name {
        font-size: 16px;
    }

    .contacts__text {
        font-size: 14px;
    margin-top: 10px;
    }

    .contacts__map img {
        width: 328px;
        height: 156px;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Footer */

    .footer {
        padding: 40px 0;
    }

    .footer__content {
        gap: 40px;
    }

    .footer__logo img {
        width: 232px;
        height: 20px;
    }

    .footer__title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer__link {
        font-size: 16px;
    }

    .footer__links li {
        margin-bottom: 12px;
    }

    .footer__links a {
        font-size: 14px;
    }

    .footer__social-icons {
        gap: 24px;
    }

    .footer__social-icons img {
        width: 24px;
        height: 24px;
    }


    .footer__copy {
        font-size: 14px;
    }

    .mobile-menu ul {
        max-width: 328px;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0 auto;
    }

    .mobile_menu-cont {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle img {
        display: block;
    }
}
