@media (max-width: 768px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .header__logo h1 {
    font-size: 1.15rem;
  }

  .search-section {
    padding: 0 1rem;
  }

  .weather-content {
    padding: 0 1rem 2rem;
  }

  .current-weather {
    padding: 1.5rem;
  }

  .current-weather__top {
    flex-direction: column;
    gap: 0.5rem;
  }

  .current-weather__icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .current-weather {
    position: relative;
  }

  .current-weather__temp {
    font-size: 3.2rem;
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .detail-box__chips {
    gap: 0.35rem;
  }

  .hourly-card {
    width: 122px;
    padding: 0.85rem 0.45rem;
  }

  .hourly-card__time {
    font-size: 0.95rem;
  }

  .hourly-card__icon {
    width: 42px;
    height: 42px;
  }

  .hourly-card__temp {
    font-size: 1.2rem;
  }

  .hourly-card__stat-value {
    font-size: 0.82rem;
  }

  .forecast-cards {
    gap: 0.6rem;
  }

  .forecast-card {
    gap: 0.55rem;
    padding: 0.8rem 0.9rem;
  }

  .forecast-card__icon {
    width: 42px;
    height: 42px;
  }

  .forecast-card__weekday {
    font-size: 1rem;
  }

  .forecast-card__date {
    font-size: 0.78rem;
  }

  .forecast-card__high,
  .forecast-card__low {
    font-size: 1.45rem;
  }

  .forecast-card__rain-value {
    font-size: 1.05rem;
  }

  .forecast-card__stat-value {
    font-size: 0.92rem;
  }

  .forecast-card__stat-sub {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-head {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header__controls {
    margin-left: auto;
  }

  .header__logo svg {
    width: 24px;
    height: 24px;
  }

  .header__logo h1 {
    font-size: 1.1rem;
  }

  .current-weather {
    padding: 1.25rem;
  }

  .current-weather__location {
    font-size: 1.5rem;
  }

  .current-weather__temp {
    font-size: 3rem;
  }

  .current-weather__feels {
    font-size: 1rem;
  }

  .current-weather__arc {
    height: 90px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .detail-box--wide {
    grid-column: span 1;
  }

  .detail-box--conditions {
    grid-column: span 1;
  }

  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conditions-item__value {
    font-size: 1.5rem;
  }

  .conditions-item__sub {
    font-size: 1.05rem;
  }

  .detail-box {
    padding: 1.2rem 1.3rem;
  }

  .detail-box__title {
    font-size: 1.1rem;
  }

  .detail-box__value {
    font-size: 1.8rem;
  }

  .detail-box__sub {
    font-size: 1.15rem;
  }

  .detail-box__chip {
    font-size: 1.05rem;
  }

  .detail-box__time-label {
    font-size: 1rem;
  }

  .detail-box__time-value {
    font-size: 1.5rem;
  }

  .forecast-card {
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
  }

  .forecast-card__icon {
    width: 38px;
    height: 38px;
  }

  .forecast-card__weekday {
    font-size: 1rem;
  }

  .forecast-card__date {
    font-size: 0.78rem;
  }

  .forecast-card__high,
  .forecast-card__low {
    font-size: 1.45rem;
  }

  .forecast-card__main {
    gap: 0.8rem;
  }

  .forecast-card__temps {
    gap: 0.9rem;
  }

  .forecast-card__temp-label {
    font-size: 0.7rem;
  }

  .forecast-card__stat-label {
    font-size: 0.68rem;
  }

  .forecast-card__rain-value {
    font-size: 1.05rem;
  }

  .forecast-card__rain-label {
    font-size: 0.7rem;
  }

  .forecast-card__stat-value {
    font-size: 0.92rem;
  }

  .forecast-card__stat-sub {
    font-size: 0.75rem;
  }

  .hourly-card {
    width: 112px;
    padding: 0.8rem 0.4rem;
  }

  .hourly-card__time {
    font-size: 0.95rem;
  }

  .hourly-card__icon {
    width: 40px;
    height: 40px;
  }

  .hourly-card__temp {
    font-size: 1.2rem;
  }

  .hourly-card__stat-value {
    font-size: 0.85rem;
  }

  .sun-arc__svg {
    max-width: 280px;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .install-banner {
    flex-wrap: wrap;
    font-size: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .weather-content {
    max-width: 960px;
  }

  .forecast-card__icon {
    width: 52px;
    height: 52px;
  }
}
