/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-black);
  padding: 12px 20px;

  &:hover {
    color: var(--color-black);
    background: var(--color-orange-light);
    box-shadow: 2px 2px 8.2px 0px rgba(27, 22, 7, 0.25);
  }

  &:disabled {
    background: var(--color-gray-light);
    color: var(--color-gray);
    cursor: not-allowed;
  }
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
  padding: 8px 12px;

  &:hover {
    color: var(--color-white);
    border-color: var(--color-orange);
    background: var(--color-orange);
    box-shadow: 2px 2px 8.2px 0px rgba(27, 22, 7, 0.25);
  }

  &:disabled {
    background: var(--color-gray-light);
    border-color: var(--color-gray-light);
    color: var(--color-gray);
    cursor: not-allowed;
  }
}

.btn--text {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-white);
  font-weight: 400;
  text-decoration: underline;

  &:hover {
    color: var(--color-orange);
  }
}

/* White filled button for dark backgrounds */
body .btn--white {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-black);
  padding: 8px 12px;

  &:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
  }
}

/* Dark outline button (light background) */
.btn--outline {
  background: transparent;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  padding: 12px;
  width: 100%;
  justify-content: center;

  &:hover {
    background: var(--color-black);
    color: var(--color-white);
  }
}

/* ===== Section header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  @media (max-width: 1200px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  @media (max-width: 767px) {
    gap: 12px;
  }
}

.section-header__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  text-transform: uppercase;
  color: var(--color-black);

  @media (max-width: 1200px) {
    font-size: 32px;
    line-height: 40px;
  }

  @media (max-width: 767px) {
    font-size: 22px;
    line-height: 28px;
  }
}

.section-header__link {
  color: var(--color-gray);
  text-decoration: underline;

  &:hover {
    color: var(--color-orange);
  }
}

.section-header__desc {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
  color: var(--color-black);
  max-width: 387px;

  @media (max-width: 1024px) {
    max-width: none;
  }

  @media (max-width: 767px) {
    color: var(--color-gray);
    max-width: none;
  }
}

/* ===== Input ===== */
.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.input {
  width: 100%;
  height: 48px;
  padding: 12px 20px;
  border-radius: 4px;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-black);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;

  &::placeholder {
    color: var(--color-gray);
  }

  &:hover {
    background: var(--color-gray-light);
    border-color: var(--color-gray);
  }

  &:focus {
    border: 2px solid var(--color-orange);
    background: var(--color-white);
  }

  &.input--error {
    border-color: var(--color-red);
    color: var(--color-red);
  }
}

.input-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-red);
  font-size: 14px;
  line-height: 14px;

  img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}

/* Form consent validation */
.consent--error input[type="checkbox"] {
  border-color: var(--color-red) !important;
  box-shadow: 0 0 0 1px var(--color-red);
}

/* ===== Header ===== */
.header {
  background: var(--color-black);
  box-shadow: 0px 4px 20px 0px rgba(29, 38, 46, 0.2);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__left .header__logo img {
  height: 60px;
}

.header__address {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  color: var(--color-white);
  font-size: 15px;
  line-height: 24px;

  img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__full-mobile {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}

.soc-max {
  @media (max-width: 767px) {
    display: flex;
    width: 36px;
    height: 32px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  img {
    display: block;
    width: 24px;
    height: 24px;

    @media (max-width: 767px) {
      width: 16px;
      height: 16px;
    }
  }
}

.header__full-mobile .btn.btn--primary {
  padding: 9px 8px;
  font-size: 14px;
  line-height: 100%;
}

.header__full-mobile-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header__phone-mobile {
  color: var(--color-white);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-black);
  color: var(--color-white);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 32px 0;

  @media (max-width: 767px) {
    gap: 20px;
  }
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

.footer__nav-label {
  color: var(--color-gray);
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
}

.footer__nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;

  a {
    color: var(--color-black-light);
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;

    &:hover {
      color: var(--color-orange);
    }
  }
}

.footer__contacts-label {
  color: var(--color-gray);
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;

  p,
  a {
    color: var(--color-black-light);
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
  }

  a:hover {
    color: var(--color-orange);
  }
}

.footer__socials {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 0;

  img {
    width: 32px;
    height: 32px;
  }
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;

  @media (max-width: 767px) {
    gap: 16px;
  }
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  width: 100%;
}

.footer__bottom-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: flex-end;

  @media (max-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 20px;

  p {
    color: var(--color-black-light);
    font-size: 14px;
    line-height: 20px;
    width: 285px;
  }
}

.footer__privacy {
  color: var(--color-black-light);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: underline;

  &:hover {
    color: var(--color-orange);
  }
}

/* ===== Page content (the_content fallback) ===== */
.page-content {
  padding: 60px 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-black);

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 40px;
    line-height: 48px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }

  h3 {
    font-size: 22px;
    line-height: 30px;
  }

  p {
    margin-bottom: 16px;
  }

  ul,
  ol {
    padding-left: 24px;
    margin-bottom: 16px;
  }

  ul {
    list-style: disc;
  }

  ol {
    list-style: decimal;
  }

  li {
    margin-bottom: 6px;
  }

  a {
    color: var(--color-orange);
    text-decoration: underline;
  }

  strong {
    font-weight: 600;
  }

  @media (max-width: 767px) {
    padding: 40px 0;

    h1 {
      font-size: 24px;
      line-height: 32px;
    }

    h2 {
      font-size: 20px;
      line-height: 28px;
    }
  }
}

.section-header {
  margin-bottom: 60px;

  @media (max-width: 767px) {
    margin-bottom: 20px;
  }
}
