*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.5;
}

/* ----------------------------------------
   404 PAGE
   ---------------------------------------- */
.page404 body,
body.page404 {
  background-image: url('../images/back_full12.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  padding: 24px;
}

.page404__code {
  font-size: 120px;
  font-weight: 700;
  color: #1a2a59;
  line-height: 1;
  margin-bottom: 16px;
}

.page404__title {
  font-size: 22px;
  font-weight: 700;
  color: #5076c2;
  margin-bottom: 12px;
}

.page404__text {
  font-size: 16px;
  color: #4b5d7d;
  line-height: 1.6;
  margin-bottom: 40px;
}

.page404__link {
  display: inline-block;
  padding: 14px 36px;
  background-color: #5076c2;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.page404__link:hover {
  background-color: #3d5c9e;
}

body.page404 .publisher__logo-wordmark {
  margin-bottom: 40px;
}

@media screen and (max-width: 479px) {
  body.page404 {
    padding: 16px;
  }

  .page404__code {
    font-size: 80px;
  }

  .page404__title {
    font-size: 18px;
  }
}

/* ----------------------------------------
   HERO SECTION
   ---------------------------------------- */
.publisher {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-image: url('../images/back_full12.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* NAV */
.publisher__nav {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 0;
  display: flex;
  align-items: flex-start;
}

.publisher__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #E9F4FF;
  border-radius: 50%;
  width: 74px;
  height: 74px;
  padding: 0px;
  transition: transform 0.2s ease;
}

.publisher__logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: auto;
}

.publisher__logo-wordmark {
  display: block;
  width: 160px;
  margin: 0 auto 36px;
  border-radius: 5px;
}

.publisher__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 180px;
}

.publisher__title {
  color: #1a2a59;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 640px;
  margin-bottom: 24px;
}

.publisher__subtitle {
  color: #1a2a59;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 640px;
  margin-bottom: 40px;
}

.publisher__apps-img {
  width: 100%;
  max-width: 1090px;
  height: auto;
  display: block;
}

/* Contacts section */
.publisher__contacts-section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 80px;
}

.publisher__contacts-label {
  color: #5076c2;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.publisher__map-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 23px 44px 0px rgba(143, 171, 227, 0.2);
}

.publisher__map-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Контакты поверх левой половины карты */
.publisher__contact-list {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 50%;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publisher__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.publisher__contact-icon {
  width: 28px;
  height: auto;
  flex-shrink: 0;
  margin-top: 3px;
}

.publisher__contact-text {
  color: #4b5d7d;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.publisher__contact-text a {
  color: #4b5d7d;
  text-decoration: none;
}

.publisher__contact-text a:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   MAIN CONTENT SECTION
   ---------------------------------------- */
.main-section {
  background-color: #fff;
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #5076c2;
  margin-bottom: 20px;
  line-height: 1.4;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #5076c2;
  margin: 28px 0 10px;
}

.section-text {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 16px;
}

.section-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.section-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 6px;
}

.section-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #5076c2;
}

.content-block {
  margin-bottom: 48px;
}

.price-block {
  background-color: #E9F4FF;
  border-left: 4px solid #5076c2;
  padding: 20px 28px;
  border-radius: 0 8px 8px 0;
}

.price-block .section-text {
  margin-bottom: 8px;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
  background-color: #E9F4FF;
  padding: 40px 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.footer__logo-wordmark {
  display: block;
  width: 100px;
  flex-shrink: 0;
  margin-top: 4px;
  border-radius: 3px;
}

.footer__info {
  flex: 1;
}

.footer__copyright {
  font-size: 14px;
  line-height: 2;
  color: #3d5c9e;
  margin-bottom: 8px;
}

.footer__details {
  font-size: 12px;
  line-height: 1.8;
  color: #4b5d7d;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media screen and (max-width: 1199px) {
  .publisher__nav {
    padding: 30px 40px 0;
  }

  .publisher__content {
    padding-left: 40px;
    padding-right: 40px;
  }

  .publisher__contacts-section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .container {
    padding: 0 40px;
  }

  .footer__inner {
    padding: 0 40px;
  }
}

@media screen and (max-width: 959px) {
  .publisher__nav {
    padding: 24px 24px 0;
  }

  .publisher__content {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 120px;
  }

  .publisher__contacts-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .publisher__title {
    font-size: 20px;
  }

  .publisher__subtitle {
    font-size: 16px;
  }

  .container {
    padding: 0 24px;
  }

  .footer__inner {
    padding: 0 24px;
    flex-direction: column;
    gap: 20px;
  }

  .main-section {
    padding: 60px 0;
  }
}

@media screen and (max-width: 639px) {
  .publisher {
    min-height: 750px;
  }

  .publisher__nav {
    padding: 16px 20px 0;
  }

  .publisher__logo-img {
    width: 56px;
    height: 56px;
  }

  .publisher__logo-wordmark {
    width: 270px;
  }

  .publisher__content {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 32px;
    padding-bottom: 80px;
  }

  .publisher__contacts-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .publisher__map-wrapper {
    box-shadow: none;
  }

  .publisher__contact-list {
    position: static;
    transform: none;
    width: 100%;
    padding: 16px 0 0;
  }

  .publisher__title {
    font-size: 18px;
    max-width: 480px;
  }

  .publisher__subtitle {
    font-size: 14px;
    max-width: 480px;
  }

  .publisher__contacts-label {
    font-size: 18px;
  }

  .publisher__contact-text {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .footer__inner {
    padding: 0 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .main-section {
    padding: 48px 0;
  }
}

@media screen and (max-width: 479px) {
  .publisher {
    min-height: 750px;
  }

  .publisher__nav {
    padding: 8px 16px 0;
  }

  .publisher__logo-img {
    width: 50px;
    height: 50px;
  }

  .publisher__logo-wordmark {
    width: 210px;
  }

  .publisher__content {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .publisher__contacts-section {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
  }

  .publisher__title {
    font-size: 16px;
    max-width: 320px;
  }

  .publisher__subtitle {
    font-size: 13px;
    max-width: 320px;
  }

  .publisher__contact-text {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .footer__inner {
    padding: 0 16px;
  }

  .footer__copyright {
    font-size: 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-text,
  .section-list li {
    font-size: 15px;
  }
}