* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;

}
.container {
  max-width: 1300px;
  margin: 0px auto;
  padding: 0px 15px;
}

a {
  text-decoration: none;
}
li {
  list-style: none;
}

/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background-color: #fff;
  padding-bottom: 5px;
}
.header__container {
  display: flex;
  flex-direction: column;
  min-height: 96px;
}
.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__burger {
  display: none;
}
.header__logo img {
  width: 110px;
  height: auto;
  display: block;
}

/* Навигация nav */
.nav__list--desktop {
  display: flex;
  align-items: center;
  gap: 12px;
}


.nav__list--mobile {
  display: none;
}
.nav__link {
  color: #383838;
  font-size: 16px;
  line-height: 1.5;
  padding: 0 8px;
}

.nav__link:hover,
.nav__link--active .nav__link {
  color: #2269A2;
}

.nav__link--active {
  border-bottom: 2px solid #2269A2;
}
.header__tel {
  color: #383838;
  font-size: 18px;
  white-space: nowrap;
}
.header__action {
  display: none;
}

.header__bottom {
  display: flex;
  align-items: self-end;
  gap: 8px;
  height: 42px;
}
.header__search{
  display: flex;
  align-items: center;
  flex-grow: 1;
  position: relative;
}
.header__search input {
  min-width: 100%;
  height: 34px;
  border-radius: 5px;
  border: 2px solid #236c9d;
  font-size: 16px;
  padding: 1px 2px 1px 40px;
}
.header__search input:focus-visible {
  border: none;
  outline: 2px solid #12354d;
}
.header__search input::placeholder {
  font-size: 12px;
}
.header__search button {
  position: absolute;
  top: 55%; 
  left: 10px;
  transform: translateY(-50%);
  border: none;
  background: none;
}
.header__search button img {
  width: 20px;
  height: 20px;
}
.header__support {
  flex-shrink: 0;
  width: 150px; 
  height: 42px;
}
/* ================================= */
/* menu */
/* ================================= */
.main {
  padding-top: 100px;
}

/* section catalog */
.catalog__title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 16px;
  color: #383838;
}

.catalog__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.catalog__item {
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: white; 
  cursor: pointer;
}
.catalog__item-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.catalog__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}
.catalog__item-content {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; 
  left: 0;
  z-index: 3;
  padding: 16px;
}
.catalog__item-title {
  font-size: 27px;
  text-shadow: 0 0 8px #000;
  line-height: 110%;
  font-weight: 500;
  margin-bottom: 8px;
  
}
.catalog__item-subtitle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}
.catalog__sub-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.catalog__sub-link {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.3 ease 0s;
  text-shadow: 0 0 6px #000;
}
.catalog__sub-link:hover {
  text-decoration: underline;
}

/* Акции */
.stock {
  padding: 20px 0px;
}
.stock__title {
  font-size: 27px;
  text-align: center;
  margin-bottom: 15px;
}
.stock__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stock__item {
  position: relative;
  min-height: 250px;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.stock__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
}
.stock__item-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.stock__item-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column; 
  justify-content: space-between;
  padding: 20px;
}
.stock__item-title {
  font-size: 24px;
  margin-bottom: 5px;
}
.stock__item-subtitle {
  font-size: 14;
  flex-grow: 1;
  margin-bottom: 20px;
}
.stock__item-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3A659D;
  color: white;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  align-self: flex-start; 
  flex-shrink: 0;
}
/* Техцентры */
.ptech {
  padding-bottom: 20px;
}
.ptech__title {
  font-size: 27px;
  text-align: center;
  margin-bottom: 20px;
}
.ptech__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ptech__item {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 0 8px #ddd;
  border-radius: 9px;
  padding: 20px;
}
.ptech__item-title {
  font-size: 20px;
  margin-bottom: 20px;
}
.ptech__item-address {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}
.ptech__item-time {
  display: flex;
  gap: 10px;
}
.ptech__item-phone {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 20px;
  font-weight: 700;
  margin-top: 20px;
}
.ptech__item-phone a {
  color: #000;
}
.ptech__item-image {
  border-radius: 12px;
  max-width: 100%;
}

/* Услуги */
.services {
  padding: 15px 0;
}
.services__wrapper {
  box-shadow: 0 0 6px #ddd;
  border-radius: 9px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.services__title {
  font-size: 20px;
}
.services__content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.services__list-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
}
.services__link {
  font-size: 14px;
  color: #696969;
  transition: all 0.3s ease 0s;
}
.services__link:hover {
  text-decoration: underline;
}
.services__image-wrapper img {
  border-radius: 12px;
}
/* --- Записаться в техцентр --- */
.appointment-form {
  padding: 40px 0;
}
.appointment-form__title {
  text-align: center;
  font-size: 28px;
  color: #555555;
  margin-bottom: 30px;
}
.appointment-form__form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  align-items: center;
}
.appointment-form__field {
  width: 100%;
}
.appointment-form__input,
.appointment-form__select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  height: 48px;
}
.appointment-form__select {
  appearance: none; 
  background-color: white;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M10 4L6 8 2 4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.appointment-form__submit {
  width: 100%; 
}
.appointment-form__button {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  background-color: #3A659D; 
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s;
}
.appointment-form__button:hover {
  background-color: #2c4e7a;
}

/* О нас */
.about-us {
  padding: 40px 0;
  line-height: 1.6;
  color: #333333;
}
.about-us__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}
.about-us__main-heading {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
}
.about-us__sub-heading {
  font-size: 22px;
  font-weight: bold;
  margin-top: 35px;
  margin-bottom: 15px;
}
.about-us__text {
  margin-bottom: 20px;
  font-size: 16px;
}
.about-us__benefits-list {
  list-style-type: disc; 
  margin: 15px 0 20px 20px;
  padding-left: 0;
}
.about-us__benefit-item {
  margin-bottom: 10px;
}
.about-us__nested-list {
  list-style-type: circle; 
  margin: 5px 0 0 10px;
  padding-left: 15px;
}

/* Подвал сайта */
.footer {
  background-color: #1b2631;
  color: #ffffff;
  font-size: 16px;
  padding-top: 20px;
}
.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}
.footer__nav {
  display: flex;
  align-items: center;
}
.footer__menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 0 40px;
}
.footer__item {
  margin-right: 20px;
}
.footer__link {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer__link:hover {
  opacity: 1;
}
.footer__logo-img {
  height: 50px;
  filter: invert(100%);
}
.footer__payment {
  display: flex;
  gap: 10px;
}
.footer__payment-icons {
  height: 40px;
  display: block;
}
.footer__social {
  display: flex;
  gap: 15px;
}
.footer__social-icon {
  height: 30px;
  width: 30px;
  display: block;
  filter: invert(100%);
}
.footer__bottom {
  background-color: #11181f;
  padding: 15px 0;
  text-align: center;
}
.footer__copyright {
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer__copyright-logo {
  height: 35px;
  display: block;
  filter: invert(100%);
}

/* Медиа-запросы */
@media (min-width: 990px) {
  /* Выпадающий список */
.nav__dropdown-content {
  position: absolute;
  z-index: 3;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  list-style: none;
  padding-left: 0;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  overflow: auto;
}
.nav__dropdown-content .nav__sub-item {
  padding: 5px 0px;
  border-bottom: 1px solid #192A34;
}
.nav__dropdown-content .nav__sub-item:last-child {
  padding: 5px 0px;
  border-bottom: none
}
.nav__dropdown-content .nav__sub-link {
  font-size: 14px; 
  padding: 8px 15px; 
  color: #000;
}
.nav__link--dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav__link--dropdown-toggle .nav__arrow {
  content: '';
  display: block;
  width: 0;
  height: 0;
  transition: all 0.3s ease 0s;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #383838;
}
.nav__item--open > .nav__link--dropdown-toggle .nav__arrow {
  transform: rotate(180deg);
}
.nav__sub-item--has-inner {
  position: relative;
}
.nav__sub-item.nav__sub-item--has-inner {
  padding: 0;
}
/* Скрываем вложенный список */
.nav__inner-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  list-style: none;
  background-color: #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.nav__inner-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 3px 15px;
}
.nav__arrow--small {
  content: '';
  display: block;
  width: 0;
  height: 0;
  transition: all 0.3s ease 0s;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #383838;
}
.nav__sub-item--open > .nav__inner-toggle .nav__arrow {
  transform: rotate(180deg);
}
.nav__inner-list li {
  padding: 8px;
  border-bottom: 1px solid #000;
}
.nav__inner-list li:last-child {
  border-bottom: none;
}
}
@media (max-width: 990px) {
    /* Бургер меню */
  .burger-menu {
    z-index: 5;
    display: block;
    position: relative;
    width: 26px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
  }
  .burger-menu span,
  .burger-menu::before,
  .burger-menu::after {
    left: 0;
    position: absolute;
    height: 12%;
    width: 100%;
    transition: all 0.3s ease 0s;
    background-color: #fff;
  }
  .burger-menu::before,
  .burger-menu::after {
    content: '';
  }
  .burger-menu::before {
    top: 0;
  }
  .burger-menu::after {
    bottom: 0;
  }
  .burger-menu span {
    top: 50%;
    transform: scale(1) translate(0px, -50%);
  }

  /* Шапка сайта */
  .header {
    min-height: 113px;
    background-color: #192A34;
  }
  .header__top {
    justify-content: flex-start;
    align-items: center;
  }
  .header__tel {
    display: none;
  }
  .header__logo {
    z-index: 5;
  }
  .header__logo img {
    filter: invert(100%);
  }
  .nav__list--desktop {
    display: none;
  }
  .nav__list--mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #192A34;
    padding: 130px 30px 30px 30px;
    transition: display 0.3s ease 0s;
    overflow: auto;
  }
  .nav__list--mobile::before {
    content: '';
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 113px;
    background-color: #192A34;
    z-index: 2;
  }
  .nav--mobile {
    display: block;
  }
  .nav__list--mobile .nav__item {
    padding-bottom: 10px;
  }
  /* Выпадающий список */
  .nav__dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
    background-color: #f7f7f7;
    border-radius: 5px;
  }
  .nav__dropdown-content .nav__sub-item {
    padding: 10px 0px;
    border-bottom: 1px solid #192A34;
  }
  .nav__dropdown-content .nav__sub-link {
    font-size: 1.1rem; 
    padding: 8px 15px; 
    color: #000;
  }
  .nav__link--dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav__link--dropdown-toggle .nav__arrow {
    content: '';
    display: block;
    width: 0;
    height: 0;
    transition: all 0.3s ease 0s;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid #fff;
  }
  .nav__item--open > .nav__link--dropdown-toggle .nav__arrow {
    transform: rotate(180deg);
  }
  .header__support {
    z-index: 5;
  }
  .nav__link {
    font-size: 20px;
    color: #fff;
  }
  .header__action {
    display: flex;
    gap: 15px;
    align-items: center;
    position: absolute;
    right: 15px;
  }
  .header__action img {
    width: 24px;
    height: 24px;
    filter: invert(100%);
  }

  /* Каталог */
  .catalog__list {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Акции */
  .stock__list {
    grid-template-columns: 1ft;
    gap: 15px;
  }
  /* Подвал сайта */
  .footer__menu {
    margin-left: 20px;
  }
  .footer__item {
    margin-right: 15px;
  }
  /* Услуги */
  .services__link {
    font-size: 12px;
  }
  .services__wrapper {
    gap: 20px;
    flex-direction: column-reverse;
  }
  .services__image-wrapper img {
    width: 400px;
  }
}

@media (max-width: 768px) {
  .header__support {
    display: none;
  }
  /* Каталог */
  .catalog__list {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Акции */
  .stock__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  /* Услуги */
  .services__wrapper {
    flex-direction: column-reverse;
    gap: 10px
  }
  .services__list-wrapper {
    flex-direction: column;
  }
  .services__title {
    font-size: 27px;
  }
  .services__link {
    font-size: 16px;
  }
  /* Записаться в техцентр */
  .appointment-form__form {
    grid-template-columns: repeat(2, 1fr);
  }
  .appointment-form__submit,
  .appointment-form__field--select {
    grid-column: span 1;
  }
  /* О нас */
  .about-us__main-heading {
    font-size: 24px;
  }
  .about-us__sub-heading {
    font-size: 20px;
  }
  .about-us__text,
  .about-us__benefit-item {
    font-size: 15px;
  }
  /* Подвал сайта */
  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }  
  .footer__nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }  
  .footer__logo-link {
    margin-bottom: 15px;
  }
  .footer__logo-img {
    width: 100%;
    max-width: 150px;
    height: auto;
  }
  .footer__menu {
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  .footer__item {
    margin-bottom: 10px;
  }
  .footer__link {
    font-size: 20px;
  }
  .footer__payment {
    order: 3;
  }
  .footer__social {
    order: 2;
  }
}

@media (max-width: 480px) {
  /* Каталог */
  .catalog__list {
    grid-template-columns: 1fr;
  }
  /* Акции */
  .stock__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  /* Адресса техцентров */
  .ptech__item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
  }
  .ptech__item-phone {
    text-align: center;
  }
  .ptech__item-image {
    width: 100%;
    max-width: 200px;
    height: auto;
  }
  /* Услуги */
  .services__image-wrapper img {
    width: 100%;
  }
  /* Запись в техцентр */
  .appointment-form__form {
    grid-template-columns: 1fr;
  }
  .appointment-form__submit,
  .appointment-form__field,
  .appointment-form__field--select {
    grid-column: 1 / 2;
  }
  /* Подвал сайта */
  .footer {
    font-size: 14px;
  }
  .footer__item {
    display: block;
    width: 100%;
  }
}