.howtos-page {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 58px 24px 100px;
}
.howtos-hero {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}
.howtos-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.howtos-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -2px;
}
.howtos-hero p {
  max-width: 600px;
  margin: auto;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.7;
}
.howtos-search {
  width: 100%;
  max-width: 530px;
  height: 56px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--primary-soft);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.howtos-search:focus-within {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px var(--primary-light);
}
.howtos-search-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-right: 12px;
  color: var(--secondary);
}
.howtos-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.howtos-search input::placeholder {
  color: var(--muted);
}
.guide-section {
  margin-bottom: 62px;
}
.guide-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}
.guide-section-header h2 {
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.3;
}
.guide-section-header p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
}
.view-all {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.view-all span {
  font-size: 23px;
  line-height: 1;
}
.view-all:hover {
  opacity: 0.8;
}
.guide-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.guide-card {
  position: relative;
  min-height: 278px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18);
}
.guide-number {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}
.guide-icon {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.guide-icon svg {
  width: 50px;
  height: 50px;
  display: block;
  filter:
    drop-shadow(
      0 0 10px
      rgba(140, 70, 255, 0.25)
    );
}
.guide-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 1.35;
}
.guide-card p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}
.more-guides-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(300px, 0.9fr);
  gap: 20px;
  align-items: start;
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guide-list-item {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.guide-list-item:hover {
  transform: translateX(3px);
  border-color: var(--primary-light);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.12);
}
.list-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
}
.list-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}
.list-content {
  min-width: 0;
}
.list-content h3 {
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.4;
}
.list-content p {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
}
.list-arrow {
  margin-left: auto;
  padding-left: 12px;
  color: var(--primary);
  font-size: 25px;
  line-height: 1;
}
.safety-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: start;
  margin-top: -2px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.safety-image {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-soft);
}
.safety-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.safety-content {
  padding: 19px 20px 21px;
  border-top: 1px solid var(--border);
}
.safety-content h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}
.safety-content p {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.65;
}
@media (max-width: 850px) {
  .guide-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
  .more-guides-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .safety-card {
    width: 100%;
    margin-top: 0;
  }
  .safety-image {
    height: 320px;
  }
}
@media (max-width: 600px) {
  .howtos-page {
    padding: 52px 16px 70px;
  }
  .howtos-hero {
    margin-bottom: 44px;
  }
  .howtos-hero h1 {
    font-size: 36px;
    letter-spacing: -1.3px;
  }
  .howtos-hero p {
    font-size: 15px;
  }
  .howtos-search {
    height: 52px;
    margin-top: 24px;
  }
  .guide-section {
    margin-bottom: 48px;
  }
  .guide-section-header {
    align-items: flex-start;
  }
  .guide-section-header h2 {
    font-size: 20px;
  }
  .view-all {
    display: none;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-card {
    min-height: 245px;
  }
  .more-guides-layout {
    gap: 18px;
  }
  .safety-card {
    margin-top: 0;
  }
  .safety-image {
    height: 260px;
  }
}
