:root {
  --accent-color: #ff7f50;
  --accent2-color: #ffd700;
  --accent3-color: #32cd32;
  --accent4-color: #9400d3;

  --primary-color: #24598f;
  --primary-button-text-color: #ffffff;
  --primary-button-hover-bg-color: #4682b4;
  --secondary-button-bg-color: #f5f5f5;
  --secondary-button-text-color: #1e90ff;
  --secondary-button-hover-bg-color: #e0e0e0;
  --secondary-button-hover-text-color: #4682b4;

  --dark-text-color: #000000;
  --gray-text-color: #000000;

  --dark-background-color: #12315f;
  --light-background-color: #dcefff;
  --medium-background-color: #b5dbff;

  --dark-border-color: #707070;
  --light-border-color: #e0e0e0;

  --button-rounded-radius: 8px;

  --font-family-body: "Open Sans", sans-serif;
  --font-family-heading: "Nunito Sans", sans-serif;

  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.18);

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family-body);
  color: var(--dark-text-color);
  background: #fff;
}

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

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

/* Layout helpers */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--button-rounded-radius);
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease,
    border-color 200ms ease;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary-color);
  color: var(--primary-button-text-color);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--primary-button-hover-bg-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: var(--secondary-button-bg-color);
  color: var(--secondary-button-text-color);
  border: 2px solid var(--light-border-color);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  background: var(--secondary-button-hover-bg-color);
  color: var(--secondary-button-hover-text-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.section {
  padding: 80px 0;
}
@media (min-width: 1024px) {
  .section {
    padding: 112px 0;
  }
}

.section__header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 54px;
}
.section__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 46px);
}
.section__subtitle {
  margin: 0;
  color: var(--gray-text-color);
  font-size: 18px;
  line-height: 1.65;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  height: 112px;
  padding: 8px 0;
  width: auto;
}
.nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav__link {
  color: var(--gray-text-color);
  font-size: 16px;
  transition: color 200ms ease;
}
.nav__link:hover {
  color: var(--primary-color);
}
.header__cta {
  padding: 14px 22px;
  font-weight: 800;
}

/* Contact page */
.page {
  min-height: 60vh;
}

.contact-hero {
  padding: 64px 0 34px;
  background: linear-gradient(135deg, var(--light-background-color), #ffffff);
}
.contact-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.contact-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--light-border-color);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  color: var(--gray-text-color);
  font-weight: 800;
  font-size: 13px;
}
.contact-hero__badge i {
  color: var(--primary-color);
}
.contact-hero__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.08;
  font-size: clamp(34px, 4vw, 54px);
}
.contact-hero__subtitle {
  margin: 0 auto;
  max-width: 720px;
  color: var(--gray-text-color);
  font-size: 18px;
  line-height: 1.7;
}

.contact {
  padding-top: 40px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
  }
}

/* Form */
.contact-form {
  background: #fff;
  border: 1px solid var(--light-border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
@media (min-width: 1024px) {
  .contact-form {
    padding: 28px;
  }
}
.contact-form__header {
  margin-bottom: 16px;
}
.contact-form__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  margin: 0 0 6px;
  font-size: 22px;
}
.contact-form__hint {
  margin: 0;
  color: var(--gray-text-color);
  line-height: 1.6;
}
.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.field__label {
  font-weight: 800;
  font-size: 13px;
  color: var(--dark-text-color);
}
.field__input,
.field__textarea {
  width: 100%;
  border: 1px solid var(--light-border-color);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  background: #fff;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field__textarea {
  resize: vertical;
}
.field__input:focus,
.field__textarea:focus {
  border-color: rgba(30, 144, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.14);
}
.contact-form__submit {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}
@media (min-width: 640px) {
  .contact-form__submit {
    width: auto;
  }
}
.contact-form__fineprint {
  margin: 12px 0 0;
  color: var(--gray-text-color);
  font-size: 12px;
  line-height: 1.6;
}

/* Contact info card */
.contact-card {
  background: #fff;
  border: 1px solid var(--light-border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
@media (min-width: 1024px) {
  .contact-card {
    padding: 28px;
  }
}
.contact-card__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  margin: 0 0 8px;
  font-size: 22px;
}
.contact-card__text {
  margin: 0 0 14px;
  color: var(--gray-text-color);
  line-height: 1.7;
}
.contact-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}
.contact-item__label {
  font-size: 12px;
  color: var(--gray-text-color);
  font-weight: 800;
}
.contact-item__value {
  font-weight: 900;
  color: var(--dark-text-color);
}
.contact-card__cta {
  margin-top: 16px;
}


.menu-toggle__icon{
  font-size: 28px;
  line-height: 1;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--light-border-color);
  background: #fff;
  color: var(--gray-text-color);
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.menu-toggle:hover {
  color: var(--primary-color);
  border-color: rgba(30, 144, 255, 0.35);
  transform: translateY(-1px);
}

.mobile-nav {
  display: none;
  padding: 0 0 14px;
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}
.mobile-nav__link {
  color: var(--gray-text-color);
  padding: 12px 2px;
  border-bottom: 1px solid var(--light-border-color);
  transition: color 200ms ease;
}
.mobile-nav__link:hover {
  color: var(--primary-color);
}
.mobile-nav__cta {
  margin-top: 8px;
  width: 100%;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light-background-color), #ffffff);
  padding: 82px 0 88px;
}
@media (min-width: 1024px) {
  .hero {
    padding: 120px 0 128px;
  }
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 4v0h-2v4h-4v2h4v4h2v6h4v4h-4zm6 30v-4h4v4h0v2h4v4h2v-4h4v-2h6zm6 4v0h4v4h0v2h4v4h2v6h4v4h6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--light-border-color);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.hero__badge span {
  color: var(--gray-text-color);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.hero__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 18px;
  font-size: clamp(34px, 4.4vw, 60px);
}

.hero__lead {
  margin: 0 0 12px;
  color: var(--gray-text-color);
  font-size: 18px;
  line-height: 1.7;
}

.hero__points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 30px;
}
@media (min-width: 640px) {
  .hero__points {
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
  }
}

.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-point__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent3-color);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
}
.hero-point__text {
  font-weight: 700;
  color: var(--dark-text-color);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.hero__trust {
  margin: 0;
  color: var(--gray-text-color);
  font-size: 13px;
  line-height: 1.6;
}

.hero-media {
  position: relative;
}
.hero-media__frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateZ(0);
  transition: transform 450ms ease;
}
.hero-media__frame:hover {
  transform: scale(1.03);
}
.hero-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--light-border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 14px 14px;
  display: none;
  animation: floaty 3s ease-in-out infinite;
}
@media (min-width: 1024px) {
  .float-card {
    display: block;
  }
}
.float-card--left {
  top: 26px;
  left: -16px;
}
.float-card--right {
  bottom: 26px;
  right: -16px;
  animation-delay: 1s;
}
.float-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}
.float-card__icon--primary {
  background: var(--primary-color);
}
.float-card__icon--green {
  background: var(--accent3-color);
}
.float-card__label {
  font-size: 12px;
  color: var(--gray-text-color);
}
.float-card__value {
  font-family: var(--font-family-heading);
  font-weight: 900;
  font-size: 18px;
  color: var(--dark-text-color);
}
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}
@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}
@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
}
.feature-card {
  background: linear-gradient(135deg, var(--light-background-color), #fff);
  border: 1px solid var(--light-border-color);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 144, 255, 0.45);
}
.feature-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}
.feature-card__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  margin: 0 0 10px;
  font-size: 20px;
}
.feature-card__text {
  margin: 0;
  color: var(--gray-text-color);
  line-height: 1.7;
}

/* Services */
.services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light-background-color), #fff);
}
.services__blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.08;
  pointer-events: none;
}
.services__blob--tr {
  right: -120px;
  top: -140px;
  background: var(--primary-color);
}
.services__blob--bl {
  left: -120px;
  bottom: -160px;
  background: var(--accent-color);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 28px;
}
@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}
.service-card {
  background: #fff;
  border: 1px solid var(--light-border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card__media {
  height: 260px;
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.service-card:hover .service-card__media img {
  transform: scale(1.06);
}
.service-card__body {
  padding: 28px;
}
.service-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.service-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}
.service-card__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  margin: 0;
  font-size: 22px;
}
.service-card__text {
  margin: 10px 0 14px;
  color: var(--gray-text-color);
  line-height: 1.7;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.service-list li {
  display: flex;
  gap: 10px;
  color: var(--gray-text-color);
  line-height: 1.55;
}
.service-list i {
  margin-top: 3px;
  color: var(--accent3-color);
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 800;
  transition: gap 200ms ease;
}
.service-card__link:hover {
  gap: 14px;
}
.services__cta {
  background: #fff;
  border: 1px solid var(--light-border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 26px;
}
@media (min-width: 1024px) {
  .services__cta {
    padding: 34px;
  }
}
.services__cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
@media (min-width: 1024px) {
  .services__cta-row {
    flex-direction: row;
    text-align: left;
  }
}
.services__cta-title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  margin: 0 0 6px;
  font-size: 26px;
}
.services__cta-text {
  margin: 0;
  color: var(--gray-text-color);
  font-size: 18px;
  line-height: 1.6;
}

/* Process */
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .process__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}
.step-card {
  position: relative;
  background: linear-gradient(135deg, var(--light-background-color), #fff);
  border: 1px solid var(--light-border-color);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
  min-height: 240px;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.step-card__num {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-family-heading);
  font-weight: 900;
  color: #fff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.15);
}
.step-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: #fff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}
.step-card__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  text-align: center;
  margin: 0 0 10px;
  font-size: 18px;
}
.step-card__text {
  text-align: center;
  margin: 0;
  color: var(--gray-text-color);
  line-height: 1.65;
}
.banner {
  border-radius: 18px;
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(90deg, var(--primary-color), var( --dark-background-color));
  text-align: center;
}
@media (min-width: 1024px) {
  .banner {
    padding: 38px;
  }
}
.banner__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  margin: 0 0 10px;
  font-size: 28px;
}
.banner__text {
  margin: 0 auto 18px;
  max-width: 720px;
  line-height: 1.7;
  font-size: 18px;
  opacity: 0.95;
}
.banner .btn {
  background: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}
.banner .btn:hover {
  background: var(--light-background-color);
}

/* Dark CTA */
.cta-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-background-color), var(--gray-text-color));
  color: #fff;
}
.cta-dark__decor {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}
.cta-dark__ring {
  position: absolute;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}
.cta-dark__ring--tl {
  width: 130px;
  height: 130px;
  top: 28px;
  left: 28px;
}
.cta-dark__ring--br {
  width: 190px;
  height: 190px;
  bottom: 28px;
  right: 28px;
}
.cta-dark__ring--mid {
  width: 110px;
  height: 110px;
  top: 50%;
  left: 25%;
  transform: translateY(-50%);
}
.cta-dark__inner {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.cta-dark__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.15;
}
.cta-dark__text {
  margin: 0 auto 22px;
  max-width: 820px;
  line-height: 1.75;
  font-size: 18px;
  opacity: 0.95;
}
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 22px 0 22px;
}
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 18px;
}
.stat__value {
  font-family: var(--font-family-heading);
  font-weight: 900;
  font-size: 28px;
  margin: 0 0 6px;
}
.stat__value--gold {
  color: var(--accent2-color);
}
.stat__value--green {
  color: var(--accent3-color);
}
.stat__value--blue {
  color: var(--primary-color);
}
.stat__label {
  margin: 0;
  opacity: 0.95;
}
.cta-dark__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 10px;
}
@media (min-width: 640px) {
  .cta-dark__actions {
    flex-direction: row;
  }
}
.cta-dark__trust {
  margin: 0;
  opacity: 0.95;
}

/* Footer */
.site-footer {
  background: var(--dark-background-color);
  color: #fff;
  padding: 70px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 34px;
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer__grid > div:first-child{
  text-align: left;
  justify-self: start;
}

/* 3) Right-align everything in columns 2–4 */
@media (min-width: 1024px){
  .footer__grid > div:nth-child(n+2){
    text-align: right;
    justify-self: end;
  }

  /* Push lists to the right edge cleanly */
  .footer__grid > div:nth-child(n+2) .footer__list{
    justify-items: end;     /* helps since it's display:grid */
  }

  /* Make inline links/icons align to the right */
  .footer__grid > div:nth-child(n+2) .footer__link{
    justify-content: flex-end;
  }

  /* Right-align contact rows (icon + text) */
  .footer__grid > div:nth-child(n+2) .footer-contact__item{
    justify-content: flex-end;
  }

  /* Put the icon on the far right of the contact line */
  .footer__grid > div:nth-child(n+2) .footer-contact__item i{
    order: 2;
    margin-left: 12px;
    margin-right: 0;
  }
  .footer__grid > div:nth-child(n+2) .footer-contact__meta{
    order: 1;
  }
}
.footer__logo {
  width: 240px;      /* try 220–280 */
  max-width: 100%;
  height: auto;      /* overrides your current height:112px */
  padding: 8px 0;
}
.footer__text {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}
.social {
  display: flex;
  gap: 10px;
}
.social__link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 200ms ease, transform 200ms ease;
}
.social__link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}
.footer__title {
  font-family: var(--font-family-heading);
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 14px;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer__link {
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 200ms ease;
}
.footer__link:hover {
  color: var(--primary-color);
}
.footer__link i {
  font-size: 12px;
  opacity: 0.85;
}
.footer-contact__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-contact__item i {
  margin-top: 3px;
  color: var(--primary-color);
}
.footer-contact__meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}
.footer-contact__meta a,
.footer-contact__meta strong {
  display: inline-block;
  margin-top: 2px;
  color: #fff;
  font-weight: 800;
  transition: color 200ms ease;
}
.footer-contact__meta a:hover {
  color: var(--primary-color);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    text-align: left;
  }
}
.footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
.footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  transition: color 200ms ease;
}
.footer__legal a:hover {
  color: var(--primary-color);
}


