/* FixZip Custom CSS for OpenCart 3
   Файл подключается через OCMOD независимо от активной темы:
   catalog/view/javascript/fixzip/fixzip-custom.css
*/

.fz-article {
  --fz-orange: #f28c18;
  --fz-orange-dark: #d97408;
  --fz-dark: #1f242b;
  --fz-text: #333842;
  --fz-muted: #737b86;
  --fz-border: #eceff3;
  --fz-bg: #ffffff;
  --fz-soft: #fff7ed;
  --fz-soft-2: #fafafa;

  color: var(--fz-text);
  background: var(--fz-bg);
  font-size: 16px;
  line-height: 1.7;
}

.fz-article * {
  box-sizing: border-box;
}

.fz-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 0 42px;
}

.fz-article h1,
.fz-article h2,
.fz-article h3 {
  color: var(--fz-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

.fz-article h1 {
  font-size: 34px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.fz-article h2 {
  font-size: 24px;
  margin-top: 38px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fz-border);
}

.fz-article h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.fz-article p {
  margin: 0 0 16px;
}

.fz-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fz-dark);
  padding: 18px 22px;
  background: linear-gradient(90deg, var(--fz-soft), #ffffff);
  border-left: 4px solid var(--fz-orange);
  border-radius: 14px;
}

.fz-muted {
  color: var(--fz-muted);
  font-size: 14px;
}

.fz-final {
  font-size: 18px;
  color: var(--fz-dark);
  margin-top: 22px;
}

.fz-note {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--fz-soft);
  border: 1px solid rgba(242, 140, 24, 0.22);
  border-radius: 16px;
  color: var(--fz-dark);
}

.fz-grid {
  display: grid;
  gap: 18px;
  margin: 20px 0 28px;
}

.fz-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fz-card {
  position: relative;
  min-height: 100%;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--fz-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(31, 36, 43, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 36, 43, 0.1);
}

.fz-icon-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 62px;
  margin-bottom: 14px;
}

.fz-icon-box img {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 56px;
  object-fit: contain;
}

.fz-icon-box.fz-icon-round {
  width: 58px;
  height: 58px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  background: var(--fz-soft);
  border: 1px solid rgba(242, 140, 24, 0.25);
  border-radius: 16px;
}

.fz-icon-box.fz-icon-round img {
  max-width: 38px;
  max-height: 38px;
}

.fz-service-card {
  display: flex;
  flex-direction: column;
}

.fz-article ul,
.fz-article ol {
  margin: 12px 0 22px;
  padding-left: 22px;
}

.fz-article li {
  margin-bottom: 8px;
}

.fz-check-list {
  list-style: none;
  padding-left: 0 !important;
}

.fz-check-list li {
  position: relative;
  padding-left: 30px;
}

.fz-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 16px;
  height: 16px;
  background: var(--fz-orange);
  border-radius: 50%;
}

.fz-check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.58em + 4px);
  width: 6px;
  height: 3px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.fz-steps {
  counter-reset: fz-step;
  list-style: none;
  padding-left: 0 !important;
}

.fz-steps li {
  position: relative;
  padding: 14px 16px 14px 54px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid var(--fz-border);
  border-radius: 14px;
}

.fz-steps li::before {
  counter-increment: fz-step;
  content: counter(fz-step);
  position: absolute;
  left: 16px;
  top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #ffffff;
  background: var(--fz-orange);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.fz-details {
  margin: 18px 0 26px;
  padding: 22px;
  background: var(--fz-soft-2);
  border: 1px solid var(--fz-border);
  border-radius: 18px;
}

.fz-details ul {
  margin-bottom: 0;
}

/* Better FAQ design */

.fz-faq-page .fz-container {
  max-width: 1080px;
}

.fz-faq-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 22px;
  align-items: center;
  margin: 6px 0 24px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 10%, rgba(242, 140, 24, 0.18), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 62%);
  border: 1px solid rgba(242, 140, 24, 0.24);
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(31, 36, 43, 0.08);
}

.fz-faq-hero::before {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 26px solid rgba(242, 140, 24, 0.08);
  border-radius: 50%;
}

.fz-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px !important;
  padding: 6px 12px;
  color: var(--fz-orange-dark);
  background: #ffffff;
  border: 1px solid rgba(242, 140, 24, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fz-faq-hero h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.fz-faq-hero p:last-child {
  margin-bottom: 0;
}

.fz-faq-hero-icon {
  position: relative;
  z-index: 1;
  display: flex;
  width: 112px;
  height: 112px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  background: #ffffff;
  border: 1px solid rgba(242, 140, 24, 0.25);
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(31, 36, 43, 0.08);
}

.fz-faq-hero-icon img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.fz-faq-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 32px;
}

.fz-faq-item {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--fz-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(31, 36, 43, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fz-faq-item:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 140, 24, 0.4);
  box-shadow: 0 12px 30px rgba(31, 36, 43, 0.09);
}

.fz-faq-item[open] {
  border-color: rgba(242, 140, 24, 0.48);
  box-shadow: 0 14px 34px rgba(31, 36, 43, 0.1);
}

.fz-faq-item summary {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 38px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  color: var(--fz-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.fz-faq-item summary::-webkit-details-marker {
  display: none;
}

.fz-faq-question {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.fz-faq-item-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--fz-soft);
  border: 1px solid rgba(242, 140, 24, 0.28);
  border-radius: 15px;
}

.fz-faq-item-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.fz-faq-toggle {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  background: var(--fz-dark);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fz-faq-toggle::before,
.fz-faq-toggle::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.fz-faq-toggle::after {
  transform: rotate(90deg);
}

.fz-faq-item[open] .fz-faq-toggle {
  background: var(--fz-orange);
  transform: rotate(180deg);
}

.fz-faq-item[open] .fz-faq-toggle::after {
  transform: rotate(0deg);
}

.fz-faq-answer {
  position: relative;
  margin: 0 20px 20px 80px;
  padding: 18px 20px;
  background: linear-gradient(90deg, var(--fz-soft), #ffffff);
  border-left: 4px solid var(--fz-orange);
  border-radius: 0 16px 16px 0;
}

.fz-faq-answer p:last-child {
  margin-bottom: 0;
}

.fz-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  overflow: hidden;
  border: 1px solid var(--fz-border);
  border-radius: 16px;
}

.fz-info-table tr {
  border-bottom: 1px solid var(--fz-border);
}

.fz-info-table tr:last-child {
  border-bottom: none;
}

.fz-info-table td {
  padding: 12px 14px;
  vertical-align: top;
}

.fz-info-table td:first-child {
  width: 34%;
  color: var(--fz-muted);
  background: #fafafa;
  font-weight: 600;
}

.fz-privacy-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}

.fz-privacy-checkbox input {
  margin-top: 4px;
}

.fz-privacy-checkbox a,
.fz-article a {
  color: var(--fz-orange-dark);
  text-decoration: none;
}

.fz-privacy-checkbox a:hover,
.fz-article a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .fz-container {
    padding: 20px 0 34px;
  }

  .fz-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fz-article h1 {
    font-size: 30px;
  }

  .fz-article h2 {
    font-size: 22px;
  }

  .fz-faq-hero {
    grid-template-columns: 1fr 100px;
  }

  .fz-faq-hero h2 {
    font-size: 24px;
  }

  .fz-faq-hero-icon {
    width: 96px;
    height: 96px;
  }

  .fz-faq-hero-icon img {
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 767px) {
  .fz-container {
    padding: 16px 0 30px;
  }

  .fz-grid-3 {
    grid-template-columns: 1fr;
  }

  .fz-article {
    font-size: 15px;
    line-height: 1.65;
  }

  .fz-article h1 {
    font-size: 26px;
  }

  .fz-article h2 {
    font-size: 20px;
    margin-top: 30px;
  }

  .fz-lead {
    font-size: 16px;
    padding: 16px;
  }

  .fz-card,
  .fz-note,
  .fz-details {
    border-radius: 14px;
    padding: 16px;
  }

  .fz-faq-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 18px;
  }

  .fz-faq-hero h2 {
    font-size: 22px;
  }

  .fz-faq-hero-icon {
    display: none;
  }

  .fz-faq-item {
    border-radius: 16px;
  }

  .fz-faq-item summary {
    grid-template-columns: 40px 1fr 34px;
    gap: 10px;
    min-height: 66px;
    padding: 14px;
  }

  .fz-faq-question {
    font-size: 16px;
  }

  .fz-faq-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .fz-faq-item-icon img {
    width: 23px;
    height: 23px;
  }

  .fz-faq-toggle {
    width: 34px;
    height: 34px;
  }

  .fz-faq-answer {
    margin: 0 14px 14px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .fz-info-table td {
    display: block;
    width: 100% !important;
  }

  .fz-info-table td:first-child {
    border-bottom: 1px solid var(--fz-border);
  }
}
