@media (max-width: 1024px) {
  .container {
    width: min(92%, 100%);
  }

  section {
    padding: 84px 0;
  }

  .hero {
    padding: 102px 0 88px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .about-layout,
  .contact-wrapper,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .service-page-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-layout,
  .contact-wrapper {
    gap: 24px;
  }

  .footer-container {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 68px 0;
  }

  .navbar {
    padding: 12px 0;
  }

  .nav-container {
    position: relative;
  }

  .logo h2 {
    font-size: 20px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid #ebe5ea;
    border-radius: 18px;
    background: rgba(255, 252, 253, 0.98);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    width: 100%;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: #fff4f8;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 1;
  }

  .hero {
    padding: 78px 0 56px;
    background:
      radial-gradient(circle at 12% 14%, rgba(255, 224, 214, 0.95) 0%, rgba(255, 224, 214, 0) 28%),
      radial-gradient(circle at 86% 10%, rgba(219, 39, 119, 0.12) 0%, rgba(219, 39, 119, 0) 24%),
      linear-gradient(160deg, #fffdfb 0%, #fff7f3 40%, #fff9fc 76%, #ffffff 100%);
  }

  .hero::before {
    width: 96px;
    height: 96px;
    top: 10px;
    right: -18px;
    opacity: 0.52;
    background: linear-gradient(135deg, rgba(233, 184, 134, 0.22), rgba(233, 184, 134, 0.02));
  }

  .hero::after {
    width: 110px;
    height: 110px;
    left: -24px;
    bottom: -28px;
    opacity: 0.42;
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.12), rgba(219, 39, 119, 0.01));
  }

  .hero-layout {
    max-width: 100%;
    text-align: left;
  }

  .hero-content {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .eyebrow {
    top: 0;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(225, 29, 72, 0.1);
    background: rgba(255, 246, 249, 0.88);
    color: #b11245;
  }

  .hero h1 {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
    font-size: clamp(24px, 6.2vw, 30px);
    line-height: 1.08;
    letter-spacing: -0.3px;
    white-space: nowrap;
    color: #111f37;
  }

  .hero p {
    max-width: 34ch;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #5d6475;
    text-wrap: pretty;
  }

  .cta-button {
    display: inline-flex;
    width: auto;
    min-width: 148px;
    max-width: none;
    justify-content: center;
    padding: 13px 20px;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #a11648 0%, #db2777 100%);
    box-shadow: 0 14px 24px rgba(190, 24, 93, 0.16);
  }

  .services h2,
  .why-us h2,
  .contact h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .services-grid,
  .why-content,
  .contact-details,
  .contact-metrics,
  .footer-metrics {
    grid-template-columns: 1fr;
  }

  .service-page {
    padding: 82px 0 48px;
  }

  .service-page-copy h1 {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .service-page-highlight {
    font-size: 18px;
    max-width: 28ch;
  }

  .service-page-lead {
    font-size: 17px;
    max-width: 100%;
  }

  .service-page-section-title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .service-page-points {
    margin: 0 0 28px;
    gap: 10px;
  }

  .service-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-page-highlights {
    grid-template-columns: 1fr;
  }

  .service-secondary-link,
  .service-page-actions .cta-button {
    width: 100%;
  }

  .service-page-media {
    justify-self: stretch;
  }

  .service-page-media-card {
    padding: 16px;
    border-radius: 22px;
  }

  .service-page-media img {
    border-radius: 16px;
  }

  .service-page-media-grid img {
    min-height: 180px;
  }

  .service-page-media-grid img:first-child {
    min-height: 240px;
  }

  .services-grid,
  .why-content {
    gap: 16px;
  }

  .service,
  .about-main,
  .about-card,
  .why-item,
  .contact-form-box,
  .contact-info,
  .footer-highlight,
  .metric-box {
    padding: 22px;
    border-radius: 18px;
  }

  .service h3,
  .why-item h3,
  .about-card h3 {
    font-size: 18px;
  }

  .services {
    background: linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
  }

  .service {
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.06);
  }

  .service p,
  .about-card p,
  .why-item p {
    font-size: 14px;
  }

  .service-tag {
    margin-bottom: 10px;
  }

  .service-points {
    gap: 10px;
  }

  .service-btn {
    width: 100%;
    min-height: 46px;
  }

  .about-layout {
    gap: 18px;
  }

  .about-main h2 {
    font-size: 28px;
    line-height: 1.14;
    letter-spacing: -0.4px;
  }

  .about-main p,
  .why-intro,
  .why-outro {
    font-size: 15px;
  }

  .about-main {
    background: linear-gradient(180deg, #ffffff 0%, #fffafc 100%);
  }

  .about-card,
  .why-item {
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
  }

  .why-intro,
  .why-content {
    margin-bottom: 28px;
  }

  .why-intro,
  .why-outro {
    max-width: 34ch;
  }

  .contact-wrapper {
    gap: 24px;
  }

  .contact-form,
  .contact-form-box,
  .contact-info {
    gap: 14px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-quick-square textarea {
    font-size: 16px;
    border-radius: 12px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 15px;
  }

  .contact-quick-square {
    min-height: 0;
    aspect-ratio: auto;
    padding: 16px;
    border-radius: 18px;
  }

  .contact-quick-square h3,
  .contact-intro h3 {
    font-size: 21px;
  }

  .contact-flow {
    padding: 14px;
    border-radius: 14px;
  }

  .contact-flow li {
    font-size: 13px;
  }

  .contact-metric,
  .info-item {
    border-radius: 14px;
  }

  .info-item {
    padding: 14px;
  }

  .footer {
    padding: 42px 0 18px;
  }

  .footer-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }

  .footer-highlight h3 {
    font-size: 20px;
  }

  .footer-cta {
    width: 100%;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-metrics {
    gap: 12px;
  }

  .footer-bottom p {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }

  .dev-credit {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 66px 0 50px;
  }

  .hero-layout {
    text-align: center;
  }

  .hero::before {
    width: 92px;
    height: 92px;
  }

  .hero::after {
    width: 112px;
    height: 112px;
  }

  .hero-content {
    max-width: 300px;
    padding: 0;
    border-radius: 0;
  }

  .eyebrow,
  .about-kicker,
  .contact-kicker,
  .quick-label,
  .service-tag,
  .footer-kicker {
    font-size: 10px;
    letter-spacing: 0.35px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(22px, 5.8vw, 26px);
    line-height: 1.1;
    letter-spacing: -0.1px;
  }

  .hero p {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-button {
    min-width: 138px;
    padding: 12px 18px;
  }

  .hero p,
  .about-main p,
  .why-intro,
  .why-outro,
  .contact-intro p {
    font-size: 14px;
  }

  .service-page {
    padding: 74px 0 40px;
  }

  .service-page-copy h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .service-page-highlight {
    font-size: 16px;
    max-width: 100%;
  }

  .service-page-lead {
    font-size: 15px;
    max-width: 100%;
  }

  .service-page-points li {
    font-size: 13px;
  }

  .service-secondary-link,
  .service-page-actions .cta-button {
    min-height: 46px;
  }

  .service-highlight-card {
    padding: 16px;
    border-radius: 16px;
  }

  .service-page-media-card {
    padding: 14px;
  }

  .service-page-media-grid img {
    min-height: 160px;
  }

  .service-page-media-grid img:first-child {
    min-height: 200px;
  }

  .services h2,
  .why-us h2,
  .contact h2,
  .about-main h2 {
    font-size: 23px;
  }

  .service,
  .about-main,
  .about-card,
  .why-item,
  .contact-form-box,
  .contact-info,
  .footer-highlight {
    padding: 18px;
  }

  .service-tag,
  .quick-label,
  .contact-kicker,
  .about-kicker {
    padding: 5px 8px;
  }

  .service-points li,
  .contact-flow li,
  .metric-box span,
  .contact-metric span {
    font-size: 12px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-quick-square textarea {
    padding: 12px;
  }

  .contact-quick-square {
    padding: 14px;
  }

  .contact-metric strong,
  .metric-box strong {
    font-size: 22px;
  }

  .info-item h3 {
    font-size: 14px;
  }

  .footer-col h2 {
    font-size: 20px;
  }

  .footer-col h3 {
    font-size: 15px;
  }

  .footer-col p,
  .footer-col a,
  .footer-bottom p {
    font-size: 13px;
  }
}
