/* ============================================
   The Boston Tech Guys — homepage styles
   ============================================ */

:root {
  --header-bg: #f5f5f4;
  --footer-blue: #2f2f2f;
  --footer-blue-dark: #202020;
  --nav-text: #1c1c1e;
  --nav-text-hover: #1e3a8a;
  --rule-color: #d8d8d6;
  --footer-text: #ffffff;

  --hero-min-height: 480px;
  --slide-duration: 15s; /* total loop time for 3 images */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--nav-text);
  background: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  background: var(--header-bg);
  padding: 16px 20px 0;
  text-align: center;
  max-width: 100vw;
  overflow-x: hidden;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.logo-img {
  width: 100%;
  max-width: 550px;
  height: auto;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.logo-img:hover {
  filter: brightness(1.1);
  transform: translateY(-1px) scale(1.002);
}

.logo-img:active {
  transform: translateY(-1px) scale(0.998);
}

.main-nav {
  margin-top: 6px;
  border-top: 1px solid transparent;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 16px 26px;
}

.main-nav li {
  margin: 0 22px;
}

.main-nav a {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--nav-text);
  letter-spacing: 0.2px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--nav-text-hover);
  border-bottom-color: var(--nav-text-hover);
  transform: translateY(-3px);
}

.main-nav a.active {
  color: var(--nav-text-hover);
  font-weight: 600;
}

.main-nav a:active {
  transform: translateY(-3px) scale(0.95);
}

/* ============================================
   Hero + Footer
   ============================================ */

.hero-footer-wrap {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
}

.hero {
  position: relative;
  width: 100%;
  flex: 1 0 var(--hero-min-height);
  overflow: hidden;
  background: #222;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 10%
  );
  pointer-events: none;
}

/* ============================================
   Hero slideshow (pure CSS crossfade, 3 images)
   ============================================ */

.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation-name: hero-fade;
  animation-duration: var(--slide-duration);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.hero-slide:nth-child(1) {
  animation-name: hero-fade-first;
  opacity: 1;
}

.hero-slide:nth-child(2) {
  animation-delay: calc(var(--slide-duration) / 3);
}

.hero-slide:nth-child(3) {
  animation-delay: calc(var(--slide-duration) / 3 * 2);
}

@keyframes hero-fade-first {
  0% {
    opacity: 1;
  }

  29% {
    opacity: 1;
  }

  33% {
    opacity: 0;
  }

  96% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes hero-fade {
  0% {
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  29% {
    opacity: 1;
  }

  33% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
    opacity: 0;
  }

  .hero-slide:nth-child(1) {
    opacity: 1;
  }
}

/* ============================================
   Hero overlay content (tagline + CTAs)
   ============================================ */

.hero-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  text-align: center;
  transform: translateY(-10px);
}

.hero-tagline {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 4.2vw, 5.9rem);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.);
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hero-btn {
  display: inline-block;
  background: var(--nav-text-hover);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
  background: var(--icon-color, var(--nav-text-hover));
  transform: translateY(-1px);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  padding: 22px 0;
  background: #2f2f2f;
  color: var(--footer-text);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px 24px;
}

.footer-logo-wrap {
  flex: 0 1 auto;
  min-width: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-logo-wrap:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.footer-logo-img {
  height: 70px;
  width: auto;
  max-width: 100%;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  flex: 1;
  justify-content: flex-end;
  text-align: left;
  min-width: 0;
}

.footer-col {
  color: var(--footer-text);
  min-width: 150px;
  flex-shrink: 1;
}

.footer-heading {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--footer-text);
}

.footer-col p {
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--footer-text);
  overflow-wrap: anywhere;
}

.footer-col a {
  color: var(--footer-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  opacity: 0.8;
}

.footer-social-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 2px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.1s, opacity 0.1s, filter 0.2s ease;
}

.social-btn img {
  width: 40px;
  height: 40px;
  min-width: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-btn:hover,
.social-btn:focus-visible {
  opacity: 0.75;
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 720px) {
  .main-nav ul {
    gap: 22px 28px;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .footer-info {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-footer-wrap {
    display: block;
  }

  .hero {
    flex: none;
    min-height: 60vh;
  }

  .hero-content {
    transform: none;
  }

  .site-footer {
    position: static;
    background: #2f2f2f;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-tagline {
    font-size: clamp(1.4rem, 6.5vw, 2.1rem);
    max-width: none;
    white-space: normal;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-btn {
    font-size: 0.95rem;
    padding: 12px 22px;
    width: 100%;
    text-align: center;
  }

  .footer-logo-img {
    height: 56px;
  }

  .footer-inner {
    padding: 0 24px;
  }
}

@media (max-width: 420px) {
  .main-nav ul {
    gap: 14px 20px;
  }

  .footer-info {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================
   About page
   ============================================ */

.site-footer--static {
  position: static;
  background: #2f2f2f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.about-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.about-banner-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-banner-image::after {
  content: "";
}

.about-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 10%
  );
}

.about-banner-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 24px;
}

.about-banner-content h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.about-banner-content p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.about-story {
  padding: 72px 24px;
}

.about-story-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-story-text h2 {
  margin: 0 0 18px;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--nav-text);
}

.about-story-text p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a3a3c;
}

.about-story-text p:last-child {
  margin-bottom: 0;
}

.about-story-text a {
  color: var(--nav-text-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-quote-card {
  background: var(--nav-text-hover);
  color: #ffffff;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}

.about-quote-text {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}

.about-quote-attr {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.about-values {
  background: var(--header-bg);
  padding: 72px 24px;
}

.about-values-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.about-values-inner h2 {
  margin: 0 0 40px;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--nav-text);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.about-value-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.about-value-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nav-text-hover);
}

.about-value-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #3a3a3c;
}

.about-cta {
  background: var(--nav-text-hover);
  padding: 64px 24px;
  text-align: center;
}

.about-cta-inner h2 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hero-btn-outline {
  background: transparent;
  border: 2px solid #ffffff;
  box-shadow: none;
}

.hero-btn-outline:hover,
.hero-btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 800px) {
  .about-story-inner {
    grid-template-columns: 1fr;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-story {
    padding: 56px 20px;
  }

  .about-values {
    padding: 56px 20px;
  }

  .about-quote-card {
    padding: 28px 24px;
  }
}

/* ============================================
   Services page
   ============================================ */

.services-list {
  padding: 64px 24px 72px;
}

.services-list-inner {
  max-width: 900px;
  margin: 0 auto;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule-color);
}

.service-row:first-child {
  padding-top: 0;
}

.service-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--icon-bg, #eaf0fb);
  color: var(--icon-color, var(--nav-text-hover));
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-text {
  flex: 1;
  min-width: 0;
}

.service-name {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--nav-text);
}

.service-desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #3a3a3c;
}

.service-meta {
  flex-shrink: 0;
  text-align: right;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.service-price {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--nav-text-hover);
  white-space: nowrap;
}

.service-btn {
  font-size: 0.9rem;
  padding: 9px 18px;
  box-shadow: none;
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn:hover,
.service-btn:focus-visible {
  background: var(--icon-color, var(--nav-text-hover));
  filter: brightness(0.87);
  transform: translateY(-1px);
}

/* Color variants — apply one modifier class per button */
/* Service button colors */

.service-btn--indigo {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--indigo:hover,
.service-btn--indigo:focus-visible {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--teal {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--teal:hover,
.service-btn--teal:focus-visible {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--amber {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--amber:hover,
.service-btn--amber:focus-visible {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--rose {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--rose:hover,
.service-btn--rose:focus-visible {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--green {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--green:hover,
.service-btn--green:focus-visible {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--slate {
  background: var(--icon-color, var(--nav-text-hover));
}

.service-btn--slate:hover,
.service-btn--slate:focus-visible {
  background: var(--icon-color, var(--nav-text-hover));
}

@media (max-width: 720px) {
  .service-row {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 26px 0;
  }

  .service-text {
    flex-basis: 100%;
    order: 2;
  }

  .service-icon {
    order: 1;
  }

  .service-meta {
    order: 3;
    flex-basis: 100%;
    align-items: center;
    text-align: center;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .services-list {
    padding: 48px 20px 56px;
  }
}

/* ============================================
   Contact page
   ============================================ */

.contact-section {
  padding: 72px 24px 80px;
  background: #ffffff;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

/* Info card */

.contact-info-card {
  background: var(--nav-text-hover);
  color: #ffffff;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}

.contact-info-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-info-card > p {
  margin: 0 0 28px;
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.9;
}

.contact-info-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.contact-info-list a,
.contact-info-list span {
  font-size: 1.02rem;
  font-weight: 500;
  color: #ffffff;
  word-break: break-word;
}

.contact-info-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-info-list a:hover,
.contact-info-list a:focus-visible {
  opacity: 0.85;
}

.contact-hours {
  margin: 0 0 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
}

.contact-hours strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.85;
}

.contact-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-linkedin-btn img {
  width: 20px;
  height: 20px;
}

.contact-linkedin-btn:hover,
.contact-linkedin-btn:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Form card */

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--rule-color);
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.contact-form-card h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--nav-text);
}

.contact-form-card > p {
  margin: 0 0 26px;
  font-size: 0.95rem;
  color: #3a3a3c;
  line-height: 1.5;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nav-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--nav-text);
  background: #ffffff;
  border: 1px solid var(--rule-color);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--nav-text-hover);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: #6b6b6e;
  text-align: center;
}

@media (max-width: 800px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 56px 20px 64px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 28px 22px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Blog page
   ============================================ */

.blog-list {
  padding: 64px 24px 8px;
}

.blog-list-inner {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post {
  padding: 34px 0;
  border-bottom: 1px solid var(--rule-color);
}

.blog-post:first-child {
  padding-top: 0;
}

.blog-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-post-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}

.blog-post-title a {
  color: var(--nav-text);
}

.blog-post-title a:hover,
.blog-post-title a:focus-visible {
  color: var(--nav-text-hover);
}

.blog-post-meta {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #7a7a7d;
}

.blog-post-excerpt {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: #3a3a3c;
}

.blog-post-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nav-text-hover);
}

.blog-post-link:hover,
.blog-post-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .blog-list {
    padding: 48px 20px 8px;
  }

  .blog-post-title {
    font-size: 1.15rem;
  }
}

/* ============================================
   FAQ page
   ============================================ */

.faq-list {
  padding: 64px 24px 80px;
}

.faq-list-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--rule-color);
}

.faq-item:first-child {
  border-top: 1px solid var(--rule-color);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--nav-text);
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--nav-text-hover);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  margin: 0 0 24px;
  padding: 0 26px 0 4px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #3a3a3c;
}

@media (max-width: 480px) {
  .faq-list {
    padding: 48px 20px 56px;
  }

  .faq-question {
    font-size: 1rem;
  }
}