:root {
  --bg-gradient: linear-gradient(90deg, #222E50 0%, #232323 100%);
  --primary-color: #3ABEFF;
  --text-color: #fff;
  --work-label-color: #b3cfff;
  --work-value-color: #3ABEFF;
  --logo-dark: #3ABEFF;
}

.header-info {
  background: #2A3760;
  color: var(--text-color);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--primary-color);
  box-shadow: 0 2px 12px rgba(34,46,80,0.10);
  border-radius: 0 0 18px 18px;
  margin-bottom: 0.5rem;
  padding: 0.7rem 0 0.5rem 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2.5rem;
}
.header-info .work-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.header-info .work-label {
  color: var(--work-label-color);
  font-size: 1.02rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.header-info .work-label .icon {
  font-size: 1.15em;
  color: var(--primary-color);
  margin-right: 0.2em;
}
.header-info .work-value {
  color: var(--work-value-color);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .header-info {
    font-size: 0.98rem;
    gap: 1.2rem;
    padding: 0.4rem 0 0.3rem 0;
    border-radius: 0 0 10px 10px;
  }
  .header-info .work-label {
    font-size: 0.92rem;
  }
  .header-info .work-value {
    font-size: 1.02rem;
  }
  /* Поиск в шапке скрывается, если появляется под шапкой */
  .navbar .search-form {
    display: none !important;
  }
  .search-form {
    width: 100%;
    min-width: 0;
    margin: 0 0 0.5rem 0;
    border-radius: 18px;
    max-width: 100%;
    display: flex !important;
  }
  .search-form input[type="search"] {
    font-size: 1rem;
    height: 38px;
    padding-left: 12px;
    padding-right: 36px;
  }
  .search-btn {
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    right: 8px;
  }
  .cart-link svg, .login-link svg {
    width: 22px;
    height: 22px;
    margin-bottom: 0;
    display: inline-block;
  }
}
@media (max-width: 640px) {
  .header-info {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .header-info {
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.15rem 0 0.1rem 0;
    font-size: 0.85rem;
    border-radius: 0;
    margin-bottom: 0.2rem;
    box-shadow: none;
  }
  .header-info .work-block {
    flex-direction: column;
    gap: 0.1rem;
    justify-content: center;
    align-items: center;
  }
  .header-info .work-label {
    font-size: 0.78rem;
    margin-bottom: 0.1em;
  }
  .header-info .work-value {
    font-size: 0.92rem;
    margin-bottom: 0.1em;
  }
  .navbar {
    min-height: 44px;
    padding: 0 2px;
    justify-content: center;
  }
  .navbar .navbar-brand img {
    max-height: 24px;
    margin-right: 4px;
  }
  .site-title {
    font-size: 1rem;
    margin-left: 2px;
  }
  .callback-btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
    margin-left: 2px;
    min-width: 90px;
    max-width: 100%;
    white-space: nowrap;
  }
}

.navbar {
  background: #222E50 !important;
  min-height: 64px;
  padding: 0;
  width: 100%;
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 12px rgba(34,46,80,0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.navbar .navbar-brand img {
  max-height: 40px;
  width: auto;
  filter: drop-shadow(0 0 2px var(--logo-dark));
  margin-right: 10px;
}
.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-left: 6px;
  transition: color 0.2s;
}
.site-title:hover {
  color: #3ABEFF;
}

.callback-btn {
  background: #3ABEFF !important;
  color: #fff !important;
  border-radius: 18px;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  box-shadow: 0 6px 24px 0 rgba(34,46,80,0.18);
  margin: 0 0 0 18px;
  transition: all 0.18s ease-in-out;
  cursor: pointer;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
}
.callback-btn:hover,
.callback-btn:focus {
  background: #222E50 !important;
  color: #3ABEFF !important;
  box-shadow: 0 6px 24px 0 rgba(34,46,80,0.28), 0 0 8px #3ABEFF;
  text-decoration: none;
  outline: none;
}

.cart-link, .login-link {
  color: #fff;
  text-shadow: none;
  text-decoration: none;
  font-size: 1.08rem;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 0 2px;
  cursor: pointer;
}
.cart-link span, .login-link span {
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
  vertical-align: middle;
  color: #fff;
  text-shadow: none;
}
.cart-link svg, .login-link svg {
  display: inline-block !important;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* --- Современная строка поиска --- */
.search-form {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  border: 2px solid #3ABEFF;
  min-height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  width: 320px;
  max-width: 100%;
  margin: 0 12px;
  transition: box-shadow 0.2s;
}
.search-form:focus-within {
  box-shadow: 0 4px 16px 0 rgba(58,190,255,0.18);
  border-color: #222E50;
}
.search-form input[type="search"] {
  width: 100%;
  min-width: 0;
  font-size: 1.08rem;
  padding-left: 16px;
  padding-right: 40px;
  height: 40px;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: #222E50;
}
.search-form input[type="search"]::placeholder {
  color: #b3cfff;
  opacity: 1;
}
.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #3ABEFF;
  font-size: 1.2rem;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
}
.search-btn:hover {
  color: #222E50;
}
@media (max-width: 900px) {
  .cart-text, .login-text {
    display: none !important;
  }
  .search-form {
    width: 100%;
    min-width: 0;
    margin: 0 0 0.5rem 0;
    border-radius: 18px;
    max-width: 100%;
  }
  .search-form input[type="search"] {
    font-size: 1rem;
    height: 38px;
    padding-left: 12px;
    padding-right: 36px;
  }
  .search-btn {
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    right: 8px;
  }
}
@media (max-width: 640px) {
  .navbar .search-form {
    display: none !important;
  }
  .navbar .callback-btn {
    display: none !important;
  }
  .search-row-mobile {
    display: block !important;
  }
  .search-row-mobile .search-form,
  .search-row-mobile .callback-btn {
    display: flex !important;
    width: 100%;
    margin: 0.2rem 0 0.4rem 0;
    min-height: 36px;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
  }
  .search-row-mobile {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .search-row-mobile .callback-btn {
    white-space: nowrap;
    text-align: center;
    width: 100%;
    min-width: 120px;
    max-width: 100%;
    margin: 0.2rem 0 0.4rem 0;
  }
  .navbar .search-form,
  .navbar .callback-btn {
    display: none !important;
  }
  .navbar .d-flex.align-items-center.gap-3.w-100 {
    justify-content: flex-end !important;
  }
}
@media (min-width: 641px) {
  .navbar .search-form {
    display: flex !important;
  }
  .navbar .callback-btn {
    display: flex !important;
  }
  .search-row-mobile {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .search-form {
    margin: 0.2rem 0 0.4rem 0;
    min-height: 36px;
  }
  .cart-link svg, .login-link svg {
    width: 20px;
    height: 20px;
  }
}

.footer {
  background: #2A3760;
  color: #fff;
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 -2px 12px rgba(34,46,80,0.10);
  border-radius: 0 0 18px 18px;
  padding-top: 32px;
  padding-bottom: 18px;
  width: 100%;
  font-size: 1.08rem;
}
.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  text-align: center;
}
.footer .footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.footer .footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.5px;
}
.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  padding-left: 0;
  list-style: none;
  justify-content: center;
}
.footer .footer-links li {
  margin-bottom: 0;
  position: relative;
}
.footer .footer-links li:not(:last-child)::after {
  content: "|";
  color: #3ABEFF;
  margin-left: 0.7rem;
  margin-right: 0.2rem;
  font-weight: 400;
  opacity: 0.5;
}
.footer .footer-links a {
  color: #b3cfff;
  text-decoration: none;
  font-size: 1.04rem;
  transition: color 0.18s;
  white-space: nowrap;
  padding: 2px 0;
}
.footer .footer-links a:hover {
  color: #3ABEFF;
  text-shadow: 0 0 6px #3ABEFF44;
}
.footer .footer-pay {
  margin-top: 0.7rem;
}
.footer .payment-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.3rem;
  justify-content: center;
}
.footer .payment-icons svg {
  box-shadow: 0 2px 8px rgba(34,46,80,0.10);
  border-radius: 8px;
  transition: transform 0.18s, box-shadow 0.18s;
  width: 44px;
  height: 28px;
}
.footer .payment-icons svg:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(58,190,255,0.18);
}
.footer .footer-social {
  margin-top: 0.7rem;
}
.footer .footer-social a {
  color: #b3cfff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.04rem;
  transition: color 0.18s;
}
.footer .footer-social a:hover {
  color: #3ABEFF;
  text-shadow: 0 0 6px #3ABEFF44;
}
.footer .small {
  color: #b3cfff;
  font-size: 1.02rem;
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: left;
  }
  .footer .footer-block {
    align-items: flex-start;
    margin-bottom: 0.7rem;
  }
  .footer .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
  }
  .footer .payment-icons {
    justify-content: flex-start;
    gap: 0.6rem;
    margin-top: 0.2rem;
  }
}
@media (max-width: 600px) {
  .footer .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    text-align: left;
  }
  .footer .footer-block {
    align-items: flex-start;
    margin-bottom: 0.7rem;
  }
  .footer .footer-links {
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
  }
  .footer .payment-icons {
    gap: 0.4rem;
    margin-top: 0.1rem;
  }
}