.mobile-home {
  display: none;
}

@media (max-width: 640px) {
  :root {
    --m-cream: #fff9f1;
    --m-paper: #fffdf8;
    --m-green: #064333;
    --m-green-2: #0c7558;
    --m-gold: #d18a2f;
    --m-ink: #071a14;
    --m-muted: #56635f;
    --m-line: #eadcc8;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 72px;
    background: var(--m-cream);
    color: var(--m-ink);
  }

  body.home main > :not(.mobile-home),
  body.front-page main > :not(.mobile-home) {
    display: none !important;
  }

  .mobile-home {
    display: block;
    background: var(--m-cream);
  }

  .mhome-wrap {
    width: min(100% - 32px, 420px);
    margin: 0 auto;
  }

  .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
    height: 70px;
    background: transparent;
    border: 0;
  }

  .site-header .wrap {
    width: min(100% - 32px, 420px);
    height: 70px;
    display: flex;
    align-items: center;
  }

  .brand {
    color: var(--m-green);
  }

  .brand span {
    font-size: 22px;
    line-height: 0.9;
    letter-spacing: 3px;
  }

  .brand small {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .brand-mark {
    width: 24px;
    height: 42px;
  }

  .menu,
  .langs {
    display: none !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-left: auto;
  }

  .btn-whatsapp,
  .mobile-toggle {
    width: 30px;
    height: 30px;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--m-green);
    box-shadow: none;
  }

  .btn-whatsapp {
    font-size: 0;
  }

  .btn-whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .mobile-toggle {
    font-size: 26px;
    line-height: 1;
  }

  .mhome-hero {
    min-height: 625px;
    padding: 132px 0 30px;
    background-image:
      linear-gradient(90deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 250, 243, 0.84) 37%, rgba(255, 250, 243, 0.14) 63%, rgba(255, 250, 243, 0) 100%),
      linear-gradient(180deg, rgba(6, 67, 51, 0.08) 0%, rgba(6, 67, 51, 0.02) 36%, rgba(255, 250, 243, 0) 58%, rgba(255, 250, 243, 0.97) 100%),
      linear-gradient(90deg, rgba(6, 67, 51, 0) 0%, rgba(6, 67, 51, 0.04) 45%, rgba(6, 67, 51, 0.18) 100%),
      var(--hero-img);
    background-position: 54% top;
    background-size: auto 100%;
    background-repeat: no-repeat;
  }

  .mhome-hero-inner {
    width: min(100% - 32px, 420px);
    margin: 0 auto;
  }

  .mhome-hero h1,
  .mhome-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: 0;
  }

  .mhome-hero h1 {
    max-width: 304px;
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.04;
  }

  .mhome-hero p {
    max-width: 286px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.48;
  }

  .mhome-guide-card {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: min(274px, calc(100vw - 52px));
    min-height: 120px;
    margin: 146px 0 0 14px;
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid rgba(224, 204, 178, 0.76);
    border-radius: 22px;
    background: linear-gradient(126deg, rgba(255, 251, 244, 0.97) 0%, rgba(255, 251, 244, 0.9) 62%, rgba(255, 251, 244, 0.52) 100%);
    box-shadow: 0 18px 40px rgba(46, 29, 13, 0.12);
  }

  .mhome-guide-card img {
    width: 76px;
    height: 76px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    object-fit: cover;
  }

  .mhome-guide-card strong {
    display: block;
    max-width: 158px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 0.98;
  }

  .mhome-guide-card span {
    display: block;
    max-width: 154px;
    margin-top: 7px;
    color: #3d4a45;
    font-size: 10px;
    line-height: 1.26;
  }

  .mhome-guide-card em {
    position: absolute;
    right: 17px;
    bottom: 17px;
    color: #c78025;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
  }

  .mhome-section {
    padding: 34px 0;
  }

  .mhome-memory {
    padding-top: 24px;
  }

  .mhome-section h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.08;
  }

  .mhome-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
  }

  .mhome-title-row h2 {
    max-width: 268px;
    margin: 0;
  }

  .mhome-title-row a {
    margin-left: auto;
    padding-top: 9px;
    color: var(--m-green);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mhome-feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mhome-feature {
    position: relative;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 7px;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 15, 10, 0.06) 0%, rgba(2, 15, 10, 0.52) 50%, rgba(2, 15, 10, 0.84) 100%), var(--bg) center / cover no-repeat;
    box-shadow: 0 14px 28px rgba(27, 18, 8, 0.16);
  }

  .mhome-icon {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--m-green-2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  }

  .mhome-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .mhome-feature h3 {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.03;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  }

  .mhome-feature p {
    max-width: 104px;
    min-height: 36px;
    margin: 0;
    font-size: 8.4px;
    font-weight: 700;
    line-height: 1.28;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  }

  .mhome-carousel {
    display: flex;
    gap: 12px;
    margin-inline: 0;
    padding: 0 0 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
  }

  .mhome-carousel::-webkit-scrollbar {
    display: none;
  }

  .mhome-tour {
    flex: 0 0 204px;
    overflow: hidden;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
    box-shadow: 0 13px 28px rgba(42, 30, 18, 0.1);
  }

  .mhome-tour-img {
    height: 126px;
    background: var(--bg) center / cover no-repeat;
  }

  .mhome-tour-body {
    min-height: 146px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    padding: 12px;
  }

  .mhome-tour h3,
  .mhome-district h3 {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.16;
  }

  .mhome-tour p,
  .mhome-district p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--m-muted);
    font-size: 11px;
    line-height: 1.35;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .mhome-tour-body div {
    align-self: end;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--m-line);
    font-size: 12px;
  }

  .mhome-tour-body span {
    color: #c8751c;
    font-weight: 800;
  }

  .mhome-tour-body strong {
    text-align: right;
  }

  .mhome-local,
  .mhome-final {
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(90deg, rgba(6, 63, 49, 0.98), rgba(6, 63, 49, 0.78) 56%, rgba(6, 63, 49, 0.16)), var(--bg) 60% center / cover no-repeat;
    box-shadow: 0 18px 34px rgba(28, 21, 12, 0.13);
  }

  .mhome-local {
    min-height: 236px;
    padding: 20px 18px;
  }

  .mhome-local h2,
  .mhome-final h2 {
    max-width: 250px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 26px;
  }

  .mhome-local p,
  .mhome-final p {
    max-width: 220px;
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.42;
  }

  .mhome-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 5px;
    background: var(--m-green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }

  .mhome-btn-gold {
    background: linear-gradient(#d79b52, #c98335);
  }

  .mhome-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.12);
  }

  .mhome-district {
    flex: 0 0 158px;
    padding-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: #fff;
    scroll-snap-align: start;
  }

  .mhome-district-img {
    height: 112px;
    margin-bottom: 11px;
    background: var(--bg) center / cover no-repeat;
  }

  .mhome-district h3,
  .mhome-district p,
  .mhome-district a {
    margin-inline: 11px;
  }

  .mhome-district a {
    color: var(--m-green);
    font-size: 11px;
    font-weight: 800;
  }

  .mhome-about {
    padding: 16px 14px 18px;
    border: 1px solid var(--m-line);
    border-radius: 10px;
    background: #fff7ed;
    box-shadow: 0 15px 35px rgba(48, 32, 14, 0.08);
  }

  .mhome-about > span {
    display: block;
    margin-bottom: 13px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
  }

  .mhome-about-grid {
    display: grid;
    grid-template-columns: 43% 1fr;
    gap: 13px;
  }

  .mhome-about-photo {
    min-height: 224px;
    border-radius: 8px;
    background: var(--bg) center top / cover no-repeat;
  }

  .mhome-about h2 {
    margin-bottom: 10px;
    font-size: 25px;
  }

  .mhome-about p {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.48;
  }

  .mhome-about ul {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--m-line);
    list-style: none;
  }

  .mhome-about li {
    position: relative;
    padding-left: 48px;
    font-size: 14px;
    font-weight: 800;
  }

  .mhome-about li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 1px solid #efc99a;
    border-radius: 50%;
  }

  .mhome-articles {
    gap: 10px;
  }

  .mhome-article {
    flex: 0 0 118px;
    overflow: hidden;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: #fff;
    scroll-snap-align: start;
  }

  .mhome-article div {
    height: 94px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34)), var(--bg) center / cover no-repeat;
  }

  .mhome-article span {
    position: absolute;
    left: 7px;
    bottom: 7px;
    max-width: 96px;
    padding: 4px 6px;
    border-radius: 3px;
    background: #fff;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
  }

  .mhome-article strong {
    display: block;
    padding: 9px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .mhome-single-title {
    margin-bottom: 16px;
  }

  .mhome-review {
    position: relative;
    padding: 22px 20px 18px;
    border: 1px solid var(--m-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 15px 34px rgba(48, 32, 14, 0.09);
  }

  .mhome-quote {
    color: var(--m-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 54px;
    line-height: 0.8;
  }

  .mhome-review p {
    margin: -8px 0 18px 42px;
    font-size: 14px;
    line-height: 1.54;
  }

  .mhome-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 42px;
  }

  .mhome-review-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mhome-review-author span {
    display: block;
    margin-top: 4px;
    color: var(--m-gold);
    letter-spacing: 1px;
  }

  .mhome-final {
    min-height: 280px;
    padding: 24px 20px;
    background: linear-gradient(90deg, rgba(6, 63, 49, 0.98), rgba(6, 63, 49, 0.7) 58%, rgba(6, 63, 49, 0.18)), var(--bg) 58% center / cover no-repeat;
  }

  .mhome-final div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .site-footer {
    display: block;
    padding: 28px 0 88px;
    background: #fff7ed;
    border-top: 1px solid var(--m-line);
  }

  .footer-grid {
    width: min(100% - 32px, 420px);
    display: block;
    margin: 0 auto;
  }

  .footer-col {
    padding: 0;
  }

  .footer-col:first-child {
    margin-bottom: 18px;
  }

  .footer-col:not(:first-child) {
    border-top: 1px solid rgba(222, 205, 183, 0.82);
  }

  .footer-col h3 {
    margin: 0;
    padding: 13px 0;
    font-size: 14px;
    line-height: 1.2;
  }

  .footer-col a,
  .footer-col span {
    display: block;
    margin: 0;
    padding: 0 0 9px;
    color: #394943;
    font-size: 12px;
    line-height: 1.35;
  }

  .footer-col:not(:first-child) a,
  .footer-col:not(:first-child) span {
    display: none;
  }

  .footer-col:nth-last-child(1) a,
  .footer-col:nth-last-child(1) span {
    display: block;
  }

  .copyright {
    margin-top: 14px;
    color: #7a807c;
    font-size: 11px;
  }

  .mobile-sticky-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 250, 243, 0.94);
    border-top: 1px solid rgba(234, 220, 200, 0.88);
    box-shadow: 0 -12px 26px rgba(33, 24, 12, 0.1);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  body.mobile-actions-visible .mobile-sticky-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-sticky-actions .btn {
    min-height: 42px;
    border-radius: 5px;
    font-size: 13px;
  }
}

@media (max-width: 374px) {
  .mhome-wrap,
  .mhome-hero-inner,
  .site-header .wrap {
    width: min(100% - 24px, 420px);
  }

  .mhome-hero h1 {
    max-width: 282px;
    font-size: 29px;
  }

  .mhome-guide-card {
    margin-left: 4px;
    width: min(258px, calc(100vw - 36px));
  }

  .mhome-feature {
    min-height: 170px;
  }

  .mhome-feature h3 {
    font-size: 15px;
  }

  .mhome-feature p {
    font-size: 7.8px;
  }
}
