/* ==========================================
   COUNTRY PAGE SETTINGS
========================================== */

.country-page {
  --country-hero-title-width: 19ch;

  --country-hero-media-position: center;
  --country-process-media-position: center;
}


/* ==========================================
   01. COUNTRY HERO
========================================== */

.country-hero__panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.country-hero__content {
  padding: 72px 64px;
}

.country-hero__media {
  position: relative;
  overflow: hidden;

  min-height: 620px;

  border-radius: 0 36px 36px 0;
}

.country-hero__media img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 90%;
}

.country-hero__title {
  max-width: var(--country-hero-title-width);
  margin: 0;

  font-family: var(--font-heading);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;

  color: var(--color-text);
}

.country-hero__title span {
  display: block;
}

.country-hero__text {
  max-width: 480px;
  margin: 34px auto 38px;

  font-size: 18px;
  line-height: 1.7;

  color: var(--color-text-soft);
}

.country-hero__button {
  min-width: 280px;
}


.canada-media img {
  object-position: 50% 50%;
}


/* ==========================================
   COUNTRY HERO. RESPONSIVE — 1100px
========================================== */

@media (max-width: 1100px) {
  .country-hero__content {
    padding: 52px 32px;
  }

  .country-hero__media {
    min-height: 460px;
  }
}


@media (max-width: 900px) {
  .country-hero__panel {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 0;

    padding: 34px;
  }

  .country-hero__content {
    position: relative;
    z-index: 2;

    align-items: flex-start;

    width: 100%;
    padding: 18px 10px 0;

    text-align: left;
  }

  .country-hero__title {
    max-width: 18ch;
    margin: 0;

    font-size: 48px;
  }

  .country-hero__title span {
    display: block;
  }

  .country-hero__text {
    max-width: 700px;
    margin: 28px 0 30px;

    font-size: 17px;
  }

  .country-hero__button {
    position: relative;
    z-index: 3;

    align-self: flex-start;

    width: auto;
    min-width: 280px;
  }

  .country-hero__media {
    position: relative;
    z-index: 1;

    width: 100%;
    height: clamp(430px, 70vw, 560px);
    min-height: 0;
    margin-top: -72px;

    overflow: hidden;

    border-radius:
      88% 28px 28px 0
      /
      76% 28px 28px 0;
  }

  .country-hero__media img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 76% 20%;

    border-radius: inherit;
  }
}

/* ==========================================
   COUNTRY HERO. RESPONSIVE — 900px
========================================== */

@media (max-width: 900px) {
  .country-hero__panel {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 0;

    padding: 34px;
  }

  .country-hero__content {
    position: relative;
    z-index: 2;

    order: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    padding: 18px 10px 0;

    text-align: left;
  }

  .country-hero__title {
    max-width: 18ch;
    margin: 0;

    font-size: 48px;
  }

  .country-hero__text {
    max-width: 700px;
    margin: 28px 0 30px;

    font-size: 17px;
  }

  .country-hero__button {
    align-self: flex-start;

    width: auto;
    min-width: 280px;
  }

  .country-hero__media {
    position: relative;
    z-index: 1;

    order: 2;

    width: 100%;
    height: clamp(430px, 70vw, 560px);
    min-height: 0;

    margin-top: -58px;
    overflow: hidden;

    border-radius:
      88% 28px 28px 0
      /
      76% 28px 28px 0;
  }

  .country-hero__media img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 76% 20%;

    border-radius: inherit;
  }
}

/* ==========================================
   COUNTRY HERO. RESPONSIVE — 700px
========================================== */

@media (max-width: 700px) {
  .country-hero__media {
    margin-top: 0;
    border-radius: 0;
  }

  .country-hero__media img {
    border-radius: 0;
  }
}

/* ==========================================
   COUNTRY HERO. RESPONSIVE — 600px
========================================== */

@media (max-width: 600px) {
  .country-hero__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;

    min-height: auto;
    padding: 0;

    overflow: hidden;

    border-radius: 24px;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.16);
  }

  .country-hero__content {
    position: relative;
    z-index: 2;

    order: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 290px;
    padding: 46px 24px 36px;

    text-align: center;
  }

  .country-hero__title {
    max-width: 22ch;
    margin: 0 0 18px;

    font-size: 30px;
    line-height: 1.16;
  }

  .country-hero__title span {
    display: inline;
  }

  .country-hero__text {
    max-width: 45ch;
    margin: 0 0 18px;

    font-size: 16px;
    line-height: 1.6;
  }

  .country-hero__button {
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 12px 22px;

    font-size: 14px;
  }

  .country-hero__media {
    position: relative;
    z-index: 1;

    order: 2;

    width: 100%;
    height: 360px;
    min-height: 0;

    margin-top: 0;
    overflow: hidden;

    border-radius: 0;
  }

  .country-hero__media img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 68% 20%;

    border-radius: 0;
  }
}


/* ==========================================
   COUNTRY HERO. RESPONSIVE — 480px
========================================== */

@media (max-width: 480px) {
  .country-hero__content {
    min-height: 280px;
    padding: 38px 20px 30px;
  }

  .country-hero__title {
    max-width: 20ch;

    font-size: 28px;
    line-height: 1.17;
  }

  .country-hero__text {
    max-width: 38ch;

    font-size: 15px;
    line-height: 1.58;
  }

  .country-hero__button {
    width: min(100%, 280px);
  }

  .country-hero__media {
    height: 340px;
  }

  .country-hero__media img {
    object-position: 66% 20%;
  }
}


/* ==========================================
   COUNTRY HERO. RESPONSIVE — 400px
========================================== */

@media (max-width: 400px) {
  .country-hero__content {
    min-height: 260px;
    padding: 30px 18px 24px;
  }

  .country-hero__title {
    max-width: 18ch;
    margin-bottom: 16px;

    font-size: 24px;
    line-height: 1.18;
  }

  .country-hero__text {
    margin-bottom: 16px;

    font-size: 14px;
    line-height: 1.55;
  }

  .country-hero__button {
    width: 100%;
    max-width: 320px;
  }

  .country-hero__media {
    height: 320px;
    min-height: 220px;
  }

  .country-hero__media img {
    object-position: 64% 20%;
  }
}


/* ==========================================
   COUNTRY HERO. RESPONSIVE — 380px
========================================== */

@media (max-width: 380px) {
  .country-hero__content {
    min-height: 270px;
  }

  .country-hero__media {
    height: 310px;
  }
}


/* ==========================================
   02. COUNTRY LOCATIONS
========================================== */

.country-locations__panel {
  padding: 72px;
}

.country-locations__heading {
  max-width: 1040px;
  margin: 0 auto 50px;

  text-align: center;
}

.country-locations__title {
  max-width: 25ch;
  margin-inline: auto;
}

.country-locations__description {
  max-width: 1000px;
  margin-inline: auto;
}

.country-locations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}


/* ==========================================
   COUNTRY LOCATION CARD
========================================== */

.country-location-card {
  display: grid;
  grid-template-columns:
    58px
    minmax(0, 1fr);
  align-items: center;
  gap: 16px;

  min-width: 0;
  min-height: 96px;
  padding: 18px 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(245, 247, 255, 0.92)
    );

  border: 1px solid rgba(99, 119, 242, 0.14);
  border-radius: 20px;

  box-shadow:
    0 14px 32px rgba(31, 39, 76, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.country-location-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  color: var(--color-accent);
  background: var(--color-accent-soft);

  border-radius: 50%;
}

.country-location-card__icon svg {
  width: 27px;
  height: 27px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.country-location-card__content {
  min-width: 0;
}

.country-location-card__title {
  margin: 0;

  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;

  color: var(--color-text);
}

.country-location-card__status {
  display: block;
  margin-top: 4px;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;

  color: var(--color-text-soft);
}


/* ==========================================
   COUNTRY LOCATIONS. RESPONSIVE — 1100px
========================================== */

@media (max-width: 1100px) {
  .country-locations__panel {
    padding: 60px 48px;
  }

  .country-location-card__title {
    font-size: 21px;
  }
}


/* ==========================================
   COUNTRY LOCATIONS. RESPONSIVE — 900px
========================================== */

@media (max-width: 900px) {
  .country-locations__panel {
    padding: 52px 36px;
  }

  .country-locations__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================
   COUNTRY LOCATIONS. RESPONSIVE — 600px
========================================== */

@media (max-width: 600px) {
  .country-locations__panel {
    padding: 42px 24px;
  }

  .country-locations__heading {
    margin-bottom: 36px;
  }

  .country-locations__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .country-location-card {
    grid-template-columns:
      52px
      minmax(0, 1fr);

    min-height: 84px;
    padding: 16px;

    border-radius: 18px;
  }

  .country-location-card__icon {
    width: 52px;
    height: 52px;
  }
}


/* ==========================================
   COUNTRY LOCATIONS. RESPONSIVE — 480px
========================================== */

@media (max-width: 480px) {
  .country-locations__panel {
    padding: 36px 20px;
  }

  .country-location-card__title {
    font-size: 20px;
  }
}


/* ==========================================
   COUNTRY LOCATIONS. RESPONSIVE — 400px
========================================== */

@media (max-width: 400px) {
  .country-locations__panel {
    padding: 32px 16px;
  }

  .country-location-card {
    grid-template-columns:
      48px
      minmax(0, 1fr);
    gap: 13px;

    padding: 14px;
  }

  .country-location-card__icon {
    width: 48px;
    height: 48px;
  }
}


/* ==========================================
   03. COUNTRY PROCESS
========================================== */

.country-process__heading {
  max-width: 900px;
  margin-inline: auto;

  text-align: center;
}

.country-process__title,
.country-process__description {
  margin-inline: auto;
}

.country-process__description {
  max-width: 720px;
}


/* ==========================================
   COUNTRY PROCESS — LAYOUT
========================================== */

.country-process__layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(0, 0.8fr);
  align-items: stretch;
  gap: 22px;
}


/* ==========================================
   COUNTRY PROCESS — MEDIA
========================================== */

.country-process__media {
  position: relative;
  overflow: hidden;

  min-width: 0;
  min-height: 380px;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;

  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.country-process__media img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 90% 20%;
}


/* ==========================================
   COUNTRY PROCESS — STEPS
========================================== */

.country-process__steps {
  display: grid;
  gap: 12px;
}

.country-process-step {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  grid-template-areas:
    "title title"
    "text number";
  align-items: center;
  column-gap: 22px;
  row-gap: 12px;

  min-width: 0;
  padding: 28px 30px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.82)
    );

  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 44px rgba(0, 0, 0, 0.06);

  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease;
}

.country-process-step:hover {
  transform: translateY(-2px);

  border-color: rgba(17, 17, 17, 0.11);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 22px 48px rgba(0, 0, 0, 0.075);
}

.country-process-step__content {
  display: contents;
}

.country-process-step__title {
  grid-area: title;

  max-width: 22ch;
  margin: 0;

  font-family:
    "Cormorant Garamond",
    "Merriweather",
    serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;

  color: #171514;
}

.country-process-step__text {
  grid-area: text;

  max-width: 48ch;
  margin: 0;

  font-size: 16px;
  line-height: 1.55;

  color: rgba(17, 17, 17, 0.68);
}

.country-process-step__number {
  grid-area: number;
  align-self: stretch;

  display: flex;
  align-items: center;

  min-width: 74px;
  padding-left: 22px;

  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;

  color: #f1e5d4;

  border-left: 1px solid rgba(191, 169, 132, 0.24);
}


/* ==========================================
   COUNTRY PROCESS. RESPONSIVE — 1100px
========================================== */

@media (max-width: 1100px) {
  .country-process__panel {
    padding: 60px 48px;
  }

  .country-process-step {
    column-gap: 18px;
    row-gap: 10px;

    padding: 26px 24px;
  }

  .country-process-step__title {
    font-size: 22px;
  }

  .country-process-step__text {
    font-size: 15px;
  }

  .country-process-step__number {
    min-width: 66px;
    padding-left: 18px;

    font-size: 42px;
  }
}


/* ==========================================
   COUNTRY PROCESS. RESPONSIVE — 1000px
========================================== */

@media (max-width: 1000px) {
  .country-process__layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .country-process__media {
    align-self: start;

    width: 100%;
    height: auto;
    min-height: 0;
  }

  .country-process__media img {
    position: static;

    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;

    object-fit: cover;
    object-position: center 42%;
  }

  .country-process__steps {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;

    width: 100%;
    margin: 0;
  }
}


/* ==========================================
   COUNTRY PROCESS. RESPONSIVE — 900px
========================================== */

@media (max-width: 900px) {
  .country-process__panel {
    padding: 52px 36px;
  }

  .country-process__steps {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .country-process-step {
    column-gap: 16px;
    row-gap: 10px;

    padding: 28px 24px;
  }

  .country-process-step__title {
    font-size: 20px;
    line-height: 1.1;
  }

  .country-process-step__text {
    max-width: 30ch;

    font-size: 15px;
  }

  .country-process-step__number {
    min-width: 58px;
    padding-left: 16px;

    font-size: 38px;
  }
}


/* ==========================================
   COUNTRY PROCESS. RESPONSIVE — 700px
========================================== */

@media (max-width: 700px) {
  .country-process__steps {
    gap: 10px;
  }

  .country-process-step {
    column-gap: 14px;

    padding: 28px 20px;
  }

  .country-process-step__title {
    font-size: 18px;
  }

  .country-process-step__text {
    font-size: 14px;
  }

  .country-process-step__number {
    min-width: 52px;
    padding-left: 14px;

    font-size: 36px;
  }
}


/* ==========================================
   COUNTRY PROCESS. RESPONSIVE — 600px
========================================== */

@media (max-width: 600px) {
  .country-process__panel {
    padding: 42px 24px;
  }

  .country-process__layout {
    gap: 18px;
  }

  .country-process__media {
    height: auto;
    min-height: 0;

    border-radius: 18px;
  }

  .country-process__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;

    object-position: 90% 42%;
  }

  .country-process__steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .country-process-step {
    grid-template-columns:
      minmax(0, 1fr)
      auto;
    grid-template-areas:
      "title title"
      "text number";
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;

    padding: 24px 20px;

    border-radius: 16px;
  }

  .country-process-step__title {
    max-width: none;

    font-size: 18px;
  }

  .country-process-step__text {
    max-width: 38ch;

    font-size: 14px;
  }

  .country-process-step__number {
    min-width: 50px;
    padding-left: 14px;

    font-size: 34px;
  }
}


/* ==========================================
   COUNTRY PROCESS. RESPONSIVE — 480px
========================================== */

@media (max-width: 480px) {
  .country-process__panel {
    padding: 36px 20px;
  }

  .country-process__media img {
    aspect-ratio: 1 / 1;
  }

  .country-process-step {
    column-gap: 12px;

    padding: 22px 18px;
  }

  .country-process-step__text {
    max-width: 36ch;
  }

  .country-process-step__number {
    min-width: 44px;
    padding-left: 12px;

    font-size: 32px;
  }
}


/* ==========================================
   COUNTRY PROCESS. RESPONSIVE — 400px
========================================== */

@media (max-width: 400px) {
  .country-process__panel {
    padding: 32px 16px;
  }

  .country-process-step {
    column-gap: 10px;

    padding: 20px 16px;
  }

  .country-process-step__title {
    font-size: 18px;
  }

  .country-process-step__text {
    max-width: 34ch;

    font-size: 13.5px;
  }

  .country-process-step__number {
    min-width: 40px;
    padding-left: 10px;

    font-size: 30px;
  }
}



