/* design-76.ru — правки по «Исправления по сайту design76.docx» */

/* --- Header: видимый телефон, CTA, Max --- */
.header-navbar-socials {
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}

.header-navbar-socials-list {
  display: flex !important;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.header-navbar-socials-btn {
  border: 1px solid var(--white) !important;
  border-radius: 3px !important;
  padding: 10px 18px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--white) !important;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  opacity: 1 !important;
}

.header-navbar-socials-btn:hover {
  background-color: var(--white);
  color: var(--text) !important;
}

.header-navbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--text) !important;
  border-radius: 3px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}

.header-navbar-cta:hover {
  opacity: 0.9;
}

.header-navbar-socials-link.max,
.footer-socials-link.max {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50' fill='none'%3E%3Ccircle cx='25' cy='25' r='24' fill='%23fff' fill-opacity='0.15' stroke='%23fff' stroke-opacity='0.5'/%3E%3Ctext x='25' y='30' text-anchor='middle' fill='%23fff' font-family='Arial,sans-serif' font-size='11' font-weight='700'%3EMAX%3C/text%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.footer-socials-link.max {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50' fill='none'%3E%3Ccircle cx='25' cy='25' r='24' fill='%23fff' fill-opacity='0.12' stroke='%23fff' stroke-opacity='0.6'/%3E%3Ctext x='25' y='30' text-anchor='middle' fill='%23fff' font-family='Arial,sans-serif' font-size='11' font-weight='700'%3EMAX%3C/text%3E%3C/svg%3E");
}

/* --- Hero: меньше визуального шума на первом экране --- */
.hero-info-card-desc,
.hero-info .hero-info-card-desc {
  max-width: 420px;
}

.hero-info-desc p,
.hero-info p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* --- Portfolio: нормальные карточки --- */
.portfolio-item-card-info {
  background: #fff9f1;
}

.portfolio-item-card-title {
  font-size: clamp(20px, 2vw, 28px);
}

/* --- Team: убрать хаос — фото команды как акцент, не перекрытие --- */
.team-image {
  align-items: center;
}

.team-image-info {
  position: static !important;
  max-width: 520px;
  margin: 0 auto 24px;
  text-align: center;
}

.team-image-line-first,
.team-image-line-second {
  width: auto !important;
  margin-left: 0 !important;
  display: inline;
}

.team-image-line-second::before {
  content: " ";
}

.team-image-img {
  max-width: 720px;
  height: auto !important;
  max-height: 480px;
  margin: 0 auto;
  object-fit: cover;
}

.team-list {
  margin-top: 24px;
}

/* --- Steps / Services: воздух, не «зажато» --- */
.steps-content {
  gap: 40px;
  align-items: start;
}

.steps-item {
  min-height: 160px;
  padding: 28px !important;
}

.steps-item-title {
  align-self: flex-start !important;
  margin-bottom: 12px;
}

.steps-item-text {
  width: 100% !important;
  max-width: 420px;
  padding-bottom: 36px;
}

.services-item {
  gap: 40px;
  padding: 28px 0;
  align-items: center;
}

.services-item-info {
  padding: 12px 0 28px;
  gap: 20px !important;
}

.services-item-img {
  height: 320px !important;
}

/* Форма после блока этапов (якорь #contacts уже есть; усиливаем видимость CTA) */
.steps-item-link {
  margin-top: auto;
}

/* --- Footer: порядок и читаемость --- */
.footer-top {
  gap: 48px;
  align-items: flex-start;
}

.footer-logo-icon {
  height: 120px !important;
  width: auto;
}

.footer-logo-text {
  max-width: 320px;
  line-height: 1.4;
}

.footer-info-item-link,
.footer-info-item-text {
  white-space: normal;
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 8px;
}

@media screen and (max-width: 1280px) {
  .header-navbar-socials-list {
    display: flex !important;
  }

  .header-navbar-cta {
    display: none; /* на узких — телефон важнее; CTA остаётся в hero */
  }
}

@media screen and (max-width: 991px) {
  .header-navbar-socials-btn {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }

  .header-navbar-socials-list {
    display: none !important; /* в бургер-меню остаются ссылки футера */
  }

  .team-image-img {
    max-height: 360px;
  }

  .services-item-img {
    height: 240px !important;
  }
}

@media screen and (max-width: 767px) {
  .header-navbar-socials-btn {
    border: 1px solid var(--white) !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
}


/* --- Mid lead form --- */
.lead-mid {
  padding: 60px 0;
  background: var(--light-bg, #f7f7f7);
}
.lead-mid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 3px;
}
.lead-mid-copy p {
  color: var(--dark-grey, #71706d);
  margin-top: 12px;
  max-width: 420px;
}
.local-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.local-lead-form input[type="text"],
.local-lead-form input[type="tel"] {
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 3px;
  height: 48px;
  padding: 0 14px;
  font: inherit;
}
.local-lead-check {
  font-size: 13px;
  color: var(--dark-grey, #71706d);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.local-lead-ok {
  color: #1f7a3f;
  font-size: 14px;
  margin: 0;
}
.local-lead-form--on-photo {
  max-width: 420px;
  background: rgba(255,253,253,.92);
  padding: 24px;
  border-radius: 3px;
}
.local-lead-form--on-photo .btn,
.local-lead-form--on-photo .custom-form-btn {
  background: #1f1f1f;
  color: #fffdfd;
  border: 0;
  cursor: pointer;
  padding: 12px 24px;
}

/* --- Video --- */
.video-block {
  padding: 80px 0 40px;
}
.video-head {
  margin-bottom: 28px;
}
.video-sub {
  color: var(--dark-grey, #71706d);
  margin-top: 10px;
}
.video-frame {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #111;
}
.video-el {
  width: 100%;
  display: block;
  max-height: 640px;
  object-fit: cover;
  background: #111;
}
.video-note {
  font-size: 12px;
  color: var(--grey, #9e9d9c);
  margin-top: 10px;
}

/* mobile MAX icon */
.header-mobile-item-link.max,
.contacts-socials-link.max {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50' fill='none'%3E%3Ccircle cx='25' cy='25' r='24' fill='%231f1f1f' fill-opacity='0.08' stroke='%231f1f1f' stroke-opacity='0.35'/%3E%3Ctext x='25' y='30' text-anchor='middle' fill='%231f1f1f' font-family='Arial,sans-serif' font-size='11' font-weight='700'%3EMAX%3C/text%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 50px;
  height: 50px;
  display: block;
  border-radius: 100px;
}
.contacts-socials-link.max {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50' fill='none'%3E%3Ccircle cx='25' cy='25' r='24' fill='%23fff' fill-opacity='0.12' stroke='%23fff' stroke-opacity='0.6'/%3E%3Ctext x='25' y='30' text-anchor='middle' fill='%23fff' font-family='Arial,sans-serif' font-size='11' font-weight='700'%3EMAX%3C/text%3E%3C/svg%3E");
}

/* team without group photo */
.team-image {
  justify-content: flex-start;
}
.team-image-info {
  position: static !important;
  max-width: 640px;
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .lead-mid-inner {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}
