/*
Theme Name: Mitaires Group
Theme URI: https://mitairesgroup.com
Author: Mitaires Group
Description: Corporate services theme: fixed header with mega-style dropdowns, image-slider hero, notice bar, expanding business cards, job postings, contact form with map, partner marquee and a clean default page template.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mitaires
*/

:root {
    --red: #d6003b;
    --ink: #222;
    --mute: #777;
    --line: #e5e5e5;
    --foot: #e9e9e9;
    --orange: #f58220;
    --phone: #e0923c;
    --hdr: 116px;
    --wrap: 1744px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--hdr)
}

body {
    margin: 0;
    font-family: 'Inter', 'Pretendard', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--hdr)
}

img {
    max-width: 100%;
    height: auto
}

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

ul {
    list-style: none;
    margin: 0;
    padding: 0
}

button {
    font: inherit;
    cursor: pointer
}

.mg-wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 152px);
    margin: 20px auto;
    padding: 20px 20px 0;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px
}

/* Header */
.mg-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--hdr);
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid transparent
}

.mg-header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* height: 100%; */
    gap: 24px
}

.mg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 34px;
    font-weight: 300;
    letter-spacing: .02em;
    color: #555;
    text-transform: uppercase;
    white-space: nowrap
}

.mg-logo svg {
    width: 34px;
    height: 34px;
    flex: none
}

.mg-logo .custom-logo {
    max-height: 56px;
    width: auto
}

.mg-nav {
    display: flex;
    align-items: center;
    gap: 6px
}

.mg-nav>li {
    position: relative
}

.mg-nav>li>a {
    display: block;
    padding: 40px 18px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    transition: color .2s
}

.mg-nav>li:hover>a,
.mg-nav>li.current-menu-item>a,
.mg-nav>li.current-menu-ancestor>a,
.mg-nav>li.current_page_ancestor>a {
    color: var(--red)
}

.mg-nav .sub-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 100%;
    background: #fff;
    border-radius: 0 0 28px 28px;
    padding: 22px 20px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    white-space: nowrap
}

.mg-nav li:hover>.sub-menu,
.mg-nav li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible
}

.mg-nav .sub-menu a {
    display: block;
    text-align: center;
    padding: 12px 18px;
    font-size: 18px;
    font-weight: 400
}

.mg-nav .sub-menu a:hover,
.mg-nav .sub-menu .current-menu-item>a {
    color: var(--red)
}

.mg-burger {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    width: 44px;
    height: 44px
}

.mg-burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 7px 0
}

/* Mobile panel */
.mg-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(520px, 88vw);
    height: 100%;
    background: #fff;
    z-index: 200;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow: auto;
    box-shadow: -20px 0 40px rgba(0, 0, 0, .15)
}

.mg-panel.open {
    transform: none
}

.mg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: .3s
}

.mg-overlay.open {
    opacity: 1;
    visibility: visible
}

.mg-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 92px;
    border-bottom: 1px solid var(--line)
}

.mg-panel__x {
    background: none;
    border: 0;
    color: var(--red);
    font-size: 44px;
    line-height: 1
}

.mg-mnav a {
    display: block;
    padding: 22px 24px;
    font-size: 22px;
    font-weight: 500;
    border-bottom: 0
}

.mg-mnav .current-menu-item>a,
.mg-mnav .current-menu-ancestor>a,
.mg-mnav a:hover {
    background: var(--red);
    color: #fff
}

.mg-panel__info {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding: 24px;
    font-size: 16px
}

.mg-panel__info dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    margin: 0
}

.mg-panel__info dt {
    font-weight: 500
}

.mg-panel__info dd {
    margin: 0
}

/* Hero */
.mg-hero {
    position: relative;
    height: calc(100vh - var(--hdr));
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: #3b3f4a
}

.mg-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease
}

.mg-hero__slide.on {
    opacity: 1
}

.mg-hero__slide:nth-child(1) {
    background-image: linear-gradient(135deg, #4a5568, #2d3340)
}

.mg-hero__slide:nth-child(2) {
    background-image: linear-gradient(135deg, #5b4a52, #2f2630)
}

.mg-hero__slide:nth-child(3) {
    background-image: linear-gradient(135deg, #44566a, #233040)
}

.mg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .28))
}

.mg-hero__txt {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: calc(50% - 190px)
}

.mg-hero h1 {
    font-size: clamp(44px, 6.2vw, 96px);
    line-height: 1.5;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.01em;
    max-width: 1200px
}

.mg-hero p {
    font-size: clamp(18px, 2vw, 32px);
    font-weight: 600;
    margin: 56px 0 0;
    max-width: 1700px;
    line-height: 1.5
}

.mg-scroll {
    position: absolute;
    z-index: 2;
    left: 30px;
    bottom: 130px;
    writing-mode: vertical-rl;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 12px
}

.mg-notice {
    position: absolute;
    z-index: 3;
    left: max(30px, calc((100% - var(--wrap))/2));
    right: 0;
    bottom: 0;
    background: var(--red);
    border-radius: 30px 0 0 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 34px 76px 34px 116px;
    font-size: 22px;
    font-weight: 500
}

.mg-notice b {
    font-weight: 500;
    padding-right: 36px;
    border-right: 1px solid rgba(255, 255, 255, .5);
    line-height: 1
}

.mg-notice span:nth-child(2) {
    flex: 1
}

/* Sections */
.mg-sec {
    padding: 120px 0
}

.mg-h2 {
    font-size: clamp(40px, 4.4vw, 72px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 70px;
    letter-spacing: -.01em
}

.mg-sectors {
    display: flex;
    gap: 14px;
    height: 700px;
    overflow-x: auto;
    scrollbar-width: none
}

.mg-sectors::-webkit-scrollbar {
    display: none
}

.mg-sector {
    position: relative;
    flex: 1 1 0;
    min-width: 170px;
    border-radius: 24px;
    overflow: hidden;
    background: #33404a center/cover;
    color: #fff;
    transition: flex-grow .5s ease
}

.mg-sector:nth-child(7n+1) {
    background-image: linear-gradient(160deg, #27403f, #12201f)
}

.mg-sector:nth-child(7n+2) {
    background-image: linear-gradient(160deg, #3d6b2f, #1c3314)
}

.mg-sector:nth-child(7n+3) {
    background-image: linear-gradient(160deg, #8a4b2a, #3a1d0e)
}

.mg-sector:nth-child(7n+4) {
    background-image: linear-gradient(160deg, #6a6e73, #2a2d30)
}

.mg-sector:nth-child(7n+5) {
    background-image: linear-gradient(160deg, #1f7f9a, #133b4a)
}

.mg-sector:nth-child(7n+6) {
    background-image: linear-gradient(160deg, #7d8794, #3b424a)
}

.mg-sector:nth-child(7n+7) {
    background-image: linear-gradient(160deg, #35383d, #14161a)
}

.mg-sector::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    transition: background .4s
}

.mg-sector:hover {
    flex-grow: 2.1
}

.mg-sector:hover::before {
    background: rgba(0, 0, 0, .18)
}

.mg-sector h3 {
    position: absolute;
    z-index: 2;
    left: 46px;
    right: 30px;
    top: 46px;
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.35;
    transition: top .4s
}

.mg-sector:hover h3 {
    top: calc(100% - 190px)
}

.mg-sector i {
    position: absolute;
    z-index: 2;
    left: 46px;
    bottom: 46px;
    width: 72px;
    height: 72px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 34px;
    transition: all .4s
}

.mg-sector:hover i {
    left: auto;
    right: 30px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(0, 0, 0, .45);
    font-size: 22px;
    transform: rotate(-45deg)
}

.mg-jobs {
    position: relative;
    color: #fff;
    padding: 0;
    background: linear-gradient(135deg, #6b7a8c, #3b4654) center/cover
}

.mg-jobs__top {
    padding: 120px 0 40px;
    position: relative;
    z-index: 1
}

.mg-jobs__top h2 {
    font-size: clamp(48px, 5.4vw, 88px);
    font-weight: 700;
    margin: 0;
    line-height: 1.1
}

.mg-jobs__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px
}

.mg-jobs__row p {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 28px)
}

.mg-more {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 600
}

.mg-more i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--red);
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 28px
}

.mg-jobs__list {
    position: relative;
    z-index: 1;
    padding-bottom: 0
}

.mg-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px
}

.mg-job {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 22px 22px 0 0;
    padding: 0 24px 28px;
    overflow: hidden;
    display: block
}

.mg-cards--page .mg-job {
    border-radius: 22px;
    margin-bottom: 0
}

.mg-job__logo {
    height: 200px;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
    color: #2f9a4a
}

.mg-job__logo img {
    max-height: 130px;
    object-fit: contain
}

.mg-job__org {
    color: var(--mute);
    font-size: 20px;
    line-height: 1.4;
    margin: 0
}

.mg-job__title {
    font-size: 22px;
    font-weight: 500;
    margin: 14px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4
}

.mg-job__cat {
    font-size: 20px;
    color: #444;
    margin: 0
}

.mg-job__meta {
    display: flex;
    align-items: center;
    margin-top: 20px;
    font-size: 22px;
    color: #444;
    flex-wrap: wrap
}

.mg-badge {
    background: #222;
    color: #fff;
    font-weight: 500;
    padding: 8px 14px;
    line-height: 1.3;
    border-radius: 4px 0 0 4px;
    margin-right: 0
}

.mg-badge.open {
    background: var(--red)
}

.mg-job__dates {
    padding-left: 6px
}

.mg-jobs-wrap {
    background: #fff
}

.mg-about {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 0;
    height: 636px;
    background: linear-gradient(135deg, #55606e, #2c3440) center/cover;
    display: grid;
    place-items: center
}

.mg-about::before,
.mg-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 35, .45)
}

.mg-about>div {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    padding: 0 30px
}

.mg-about small {
    font-size: 22px;
    font-weight: 500;
    display: block
}

.mg-about h2 {
    font-size: clamp(40px, 4.4vw, 68px);
    margin: 6px 0 40px;
    font-weight: 700
}

.mg-about p {
    font-size: clamp(18px, 1.9vw, 30px);
    margin: 0 0 60px;
    font-weight: 500
}

.mg-circle {
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid #fff;
    border-radius: 50%;
    font-size: 34px;
    transition: background .3s, color .3s
}

.mg-circle:hover {
    background: #fff;
    color: var(--ink)
}

.mg-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr
}

.mg-tile {
    position: relative;
    height: 490px;
    color: #fff;
    text-align: center;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4d5a68, #2a323d) center/cover
}

.mg-tile:nth-child(2) {
    background-image: linear-gradient(135deg, #5a6b80, #2f3b4b)
}

.mg-tile>div {
    position: relative;
    z-index: 1
}

.mg-tile small {
    display: block;
    font-size: 22px;
    font-weight: 500
}

.mg-tile h3 {
    font-size: clamp(36px, 3.6vw, 60px);
    margin: 0 0 56px;
    font-weight: 700
}

.mg-contact {
    padding: 150px 0 120px
}

.mg-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 482px;
    gap: 46px;
    align-items: start
}

.mg-form {
    border-top: 2px solid #222
}

.mg-row {
    display: grid;
    grid-template-columns: 160px 1fr 160px 1fr;
    gap: 0;
    align-items: center;
    margin-top: 24px
}

.mg-row--full {
    grid-template-columns: 160px 1fr
}

.mg-form label.l {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
    padding-right: 12px
}

.mg-form input[type=text],
.mg-form input[type=email],
.mg-form input[type=tel],
.mg-form select,
.mg-form textarea {
    width: 100%;
    background: #f4f4f4;
    border: 0;
    border-radius: 4px;
    padding: 18px 28px;
    font: inherit;
    font-size: 24px;
    color: var(--ink)
}

.mg-form textarea {
    height: 220px;
    resize: vertical
}

.mg-form .file {
    background: #f4f4f4;
    border-radius: 4px;
    padding: 14px 14px;
    font-size: 24px;
    color: #555
}

.mg-row>div:nth-child(3) {
    padding-left: 40px;
    font-size: 30px;
    font-weight: 600
}

.mg-row>.mg-gap {
    padding-left: 20px
}

.mg-form__foot {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.mg-form__foot label {
    font-size: 24px
}

.mg-form__foot a {
    text-decoration: underline
}

.mg-btn {
    background: #222;
    color: #fff;
    border: 0;
    border-radius: 6px;
    height: 88px;
    font-size: 30px;
    font-weight: 600;
    width: 100%;
    transition: background .2s
}

.mg-btn:hover {
    background: var(--red)
}

.mg-map {
    height: 560px;
    background: #eef0f2;
    border-radius: 2px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--mute);
    text-align: center;
    padding: 20px
}

.mg-map iframe {
    width: 100%;
    height: 100%;
    border: 0
}

.mg-alert {
    background: #eaf7ee;
    border-left: 4px solid #2f9a4a;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 20px
}

.mg-alert.err {
    background: #fdecee;
    border-color: var(--red)
}

.mg-partners {
    padding: 70px 0 80px;
    overflow: hidden
}

.mg-track {
    display: flex;
    width: max-content;
    animation: mgslide 38s linear infinite
}

.mg-track:hover {
    animation-play-state: paused
}

.mg-partner {
    width: 300px;
    height: 90px;
    display: grid;
    place-items: center;
    padding: 0 30px;
    font-size: 26px;
    font-weight: 700;
    color: #8a8f98;
    flex: none
}

.mg-partner img {
    max-height: 80px;
    object-fit: contain
}

@keyframes mgslide {
    to {
        transform: translateX(-50%)
    }
}

/* Footer */
.mg-footer {
    background: var(--foot);
    color: var(--orange);
    padding: 70px 0 50px;
    font-size: 22px
}

.mg-footer__top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc
}

.mg-footer p {
    margin: 0 0 18px
}

.mg-footer .branches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 70px;
    max-width: 560px;
    margin-top: 34px
}

.mg-footer .branches a {
    min-width: 200px
}

.mg-tel {
    font-size: clamp(64px, 7vw, 120px);
    font-weight: 700;
    color: var(--phone);
    letter-spacing: -.02em;
    line-height: 1
}

.mg-footer__bot {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 38px
}

.mg-footer__bot nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap
}

/* Sub pages */
.mg-sub {
    position: relative;
    height: 548px;
    color: #fff;
    background: linear-gradient(135deg, #6e7b8b, #3b4654) center/cover
}

.mg-sub::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .05))
}

.mg-sub__txt {
    position: relative;
    z-index: 1;
    padding-top: 156px
}

.mg-sub h1 {
    font-size: clamp(44px, 5vw, 80px);
    font-weight: 700;
    margin: 0;
    line-height: 1.15
}

.mg-sub p {
    font-size: clamp(18px, 1.8vw, 28px);
    margin: 34px 0 0;
    font-weight: 500
}

.mg-crumb {
    position: absolute;
    z-index: 5;
    left: 0;
    bottom: 0;
    background: var(--red);
    color: #fff;
    border-radius: 0 28px 0 0;
    height: 108px;
    display: flex;
    align-items: center;
    padding: 0 76px;
    gap: 0;
    font-size: 22px;
    font-weight: 500
}

.mg-crumb svg {
    width: 34px;
    height: 34px
}

.mg-crumb .sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, .55);
    margin: 0 40px
}

.mg-dd {
    position: relative;
    display: flex
}

.mg-dd>button {
    background: none;
    border: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 30px 0;
    font-weight: 500
}

.mg-dd>button::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translateY(-3px);
    flex: none
}

.mg-dd ul {
    position: absolute;
    left: -30px;
    bottom: 100%;
    min-width: calc(100% + 60px);
    background: #fff;
    color: var(--ink);
    border-radius: 28px 28px 0 0;
    padding: 22px 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    white-space: nowrap;
    margin-bottom: -24px;
    padding-bottom: 40px
}

.mg-dd:hover ul,
.mg-dd.open ul,
.mg-dd:focus-within ul {
    opacity: 1;
    visibility: visible
}

.mg-dd li a {
    display: block;
    text-align: center;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: 400
}

.mg-dd li a:hover,
.mg-dd li.cur a {
    color: var(--red)
}

.mg-page {
    padding: 110px 0 140px;
    min-height: 420px
}

.mg-page__title {
    font-size: clamp(36px, 3.6vw, 60px);
    font-weight: 700;
    margin: 0 0 50px;
    line-height: 1.2
}

.mg-content {
    font-size: 20px;
    line-height: 1.85;
    max-width: 1100px
}

.mg-content>*+* {
    margin-top: 1.2em
}

.mg-content h2,
.mg-content h3 {
    line-height: 1.3;
    margin-top: 2em
}

.mg-content a {
    color: var(--red);
    text-decoration: underline
}

.mg-content img {
    border-radius: 12px
}

.mg-content table {
    width: 100%;
    border-collapse: collapse
}

.mg-content th,
.mg-content td {
    border-bottom: 1px solid var(--line);
    padding: 14px;
    text-align: left
}

.mg-content blockquote {
    border-left: 4px solid var(--red);
    margin-left: 0;
    padding-left: 24px;
    color: #444
}

.mg-pager {
    margin-top: 50px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.mg-pager a,
.mg-pager span {
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 6px
}

.mg-pager .current {
    background: var(--red);
    color: #fff;
    border-color: var(--red)
}

/* Responsive */
@media(max-width:1500px) {
    .mg-nav>li>a {
        font-size: 18px;
        padding: 40px 12px
    }

    .mg-logo {
        font-size: 28px
    }
}

@media(max-width:1200px) {
    :root {
        --hdr: 92px
    }

    .mg-wrap {
        padding: 0 28px
    }

    .mg-nav {
        display: none
    }

    .mg-burger {
        display: block
    }

    .mg-cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .mg-contact__grid {
        grid-template-columns: 1fr
    }

    .mg-notice {
        padding: 22px 28px 22px 40px;
        font-size: 18px;
        gap: 20px
    }

    .mg-crumb {
        padding: 0 28px;
        height: 86px;
        font-size: 18px
    }

    .mg-dd>button {
        gap: 24px
    }

    .mg-crumb .sep {
        margin: 0 20px
    }
}

@media(max-width:700px) {
    .mg-sec {
        padding: 70px 0
    }

    .mg-sectors {
        height: 520px
    }

    .mg-sector {
        min-width: 210px
    }

    .mg-sector h3 {
        font-size: 22px;
        left: 26px;
        top: 30px
    }

    .mg-sector i {
        left: 26px;
        bottom: 26px;
        width: 56px;
        height: 56px
    }

    .mg-cards {
        grid-template-columns: 1fr
    }

    .mg-tiles {
        grid-template-columns: 1fr
    }

    .mg-tile {
        height: 340px
    }

    .mg-row,
    .mg-row--full {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .mg-row>div:nth-child(3) {
        padding-left: 0;
        margin-top: 14px
    }

    .mg-form label.l,
    .mg-row>div:nth-child(3) {
        font-size: 22px
    }

    .mg-form input,
    .mg-form select,
    .mg-form textarea {
        font-size: 18px !important
    }

    .mg-form__foot {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .mg-hero__txt {
        top: 22%
    }

    .mg-hero p {
        margin-top: 28px
    }

    .mg-scroll {
        display: none
    }

    .mg-notice b {
        padding-right: 18px
    }

    .mg-notice span:last-child {
        display: none
    }

    .mg-sub {
        height: 420px
    }

    .mg-sub__txt {
        padding-top: 110px
    }

    .mg-dd>button span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .mg-footer {
        font-size: 16px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* ===== v1.1: breadcrumb dropdowns open downward, click to toggle ===== */
.mg-crumb {
    align-items: stretch
}

.mg-crumb>a,
.mg-crumb>.sep,
.mg-crumb>span {
    align-self: center
}

.mg-dd {
    align-items: stretch
}

.mg-dd>button {
    padding: 0;
    align-items: center
}

.mg-dd>button::after {
    transition: transform .2s
}

.mg-dd.open>button::after {
    transform: rotate(-135deg) translateY(-3px)
}

.mg-dd ul {
    bottom: auto;
    top: 100%;
    left: -24px;
    min-width: calc(100% + 48px);
    border-radius: 0;
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 14px 0;
    margin: 0
}

.mg-dd li a {
    text-align: left;
    padding: 10px 24px;
    font-size: 20px
}

.mg-dd:hover ul,
.mg-dd:focus-within ul {
    opacity: 0;
    visibility: hidden
}

.mg-dd.open ul {
    opacity: 1;
    visibility: visible
}

/* ===== Business area pages ===== */
.mg-bz {
    background: #fff
}

.mg-bz__top {
    padding: 110px 0 0
}

.mg-bz__top .mg-page__title {
    margin-bottom: 60px
}

.mg-bz-intro {
    position: relative;
    min-height: 480px;
    margin-right: max(76px, calc((100vw - 1896px)/2 + 76px));
    background: #e4e7ea center/cover no-repeat
}

.mg-bz-text {
    position: relative;
    width: min(58%, 1056px);
    background: #fff;
    padding: 0 48px 30px max(76px, calc((100vw - 1896px)/2 + 76px));
    font-size: clamp(18px, 1.4vw, 24px);
    font-weight: 500;
    line-height: 1.75
}

.mg-bz-text p {
    margin: 0 0 .5em
}

.mg-bz__alt {
    background: #fafafa;
    padding: 100px 0
}

.mg-bz__top+.mg-bz__alt {
    margin-top: 90px
}

.mg-bz__alt--str {
    padding-top: 20px
}

.mg-bz__h {
    font-size: clamp(34px, 3.3vw, 52px);
    font-weight: 700;
    margin: 0 0 56px;
    line-height: 1.25
}

.mg-svc {
    background: #fff;
    padding: 70px 76px 80px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px 40px
}

.mg-svc__ic {
    position: relative;
    display: block;
    width: 100px;
    height: 100px;
    color: #3a3a3a;
    margin-bottom: 52px
}

.mg-svc__ic::before {
    content: "";
    position: absolute;
    left: -12px;
    top: -10px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fde3ea
}

.mg-svc__ic svg,
.mg-svc__ic img {
    position: relative;
    width: 100px;
    height: 100px;
    object-fit: contain
}

.mg-svc h3 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 14px;
    line-height: 1.3
}

.mg-svc p {
    margin: 0;
    color: #888;
    font-size: 20px;
    line-height: 1.6
}

.mg-str {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 367px));
    gap: 24px;
    justify-content: start
}

.mg-str__i {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid #222;
    min-height: 254px;
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px
}

.mg-str__n {
    font-size: 48px;
    font-weight: 600;
    color: #c9c9c9;
    line-height: 1
}

.mg-str__t {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0
}

/* ===== Forms (document issuance + 1:1 inquiry) ===== */
.mg-fm__req {
    text-align: right;
    font-size: 22px;
    margin: 0 0 14px
}

.mg-fm__grid {
    border-top: 2px solid #222;
    padding-top: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px 90px
}

.mg-fm__f.full {
    grid-column: 1/-1
}

.mg-fm label.t {
    display: block;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 22px
}

.mg-fm label.t i {
    font-style: normal;
    color: var(--red);
    margin-left: 6px
}

.mg-fm input[type=text],
.mg-fm input[type=email],
.mg-fm input[type=tel],
.mg-fm select,
.mg-fm textarea {
    width: 100%;
    height: 72px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 22px;
    font: inherit;
    font-size: 22px;
    background: #fff;
    color: var(--ink)
}

.mg-fm textarea {
    height: 290px;
    padding: 22px;
    resize: vertical
}

.mg-fm .radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    font-size: 26px;
    color: #777
}

.mg-fm .radios label {
    display: flex;
    align-items: center;
    gap: 10px
}

.mg-fm .radios input {
    width: 30px;
    height: 30px;
    accent-color: var(--red)
}

.mg-fm .mail {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    gap: 12px;
    align-items: center;
    font-size: 24px
}

.mg-fm .filebox {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px 14px;
    font-size: 22px;
    color: #555
}

.mg-consent h3 {
    font-size: 30px;
    font-weight: 500;
    margin: 64px 0 24px
}

.mg-consent__box {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 36px 44px;
    height: 280px;
    overflow: auto;
    color: #777;
    font-size: 20px;
    line-height: 1.9;
    white-space: pre-line
}

.mg-consent__ok {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 26px;
    margin: 26px 0 44px
}

.mg-consent__ok input {
    width: 30px;
    height: 30px;
    accent-color: var(--red)
}

.mg-fm__foot {
    border-top: 1px solid var(--line);
    padding-top: 60px;
    text-align: center
}

.mg-red {
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: 6px;
    width: 290px;
    max-width: 100%;
    height: 72px;
    font-size: 26px;
    font-weight: 500;
    transition: background .2s
}

.mg-red:hover {
    background: #b30031
}

/* ===== FAQ ===== */
.mg-tabs {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px
}

.mg-tabs button {
    background: #fff;
    border: 1px solid var(--line);
    color: #888;
    padding: 0 30px;
    height: 60px;
    border-radius: 6px;
    font-size: 24px
}

.mg-tabs button.on {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

.mg-faq {
    border-top: 2px solid #222
}

.mg-faq__i {
    border-bottom: 1px solid #444
}

.mg-faq__q {
    display: flex;
    align-items: center;
    gap: 44px;
    width: 100%;
    background: none;
    border: 0;
    padding: 34px 44px;
    text-align: left;
    font-size: 30px;
    font-weight: 500;
    color: var(--ink)
}

.mg-faq__q em {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #2b2b2b;
    color: #fff;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 28px;
    flex: none
}

.mg-faq__q span {
    flex: 1
}

.mg-faq__q::after {
    content: "";
    width: 16px;
    height: 16px;
    border-right: 2.5px solid #333;
    border-bottom: 2.5px solid #333;
    transform: rotate(45deg);
    transition: transform .2s;
    flex: none;
    margin-right: 10px
}

.mg-faq__i.open .mg-faq__q::after {
    transform: rotate(-135deg)
}

.mg-faq__a {
    display: none;
    padding: 0 44px 44px 160px;
    font-size: 22px;
    color: #555;
    line-height: 1.8
}

.mg-faq__i.open .mg-faq__a {
    display: block
}

@media(max-width:1200px) {
    .mg-svc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 50px 40px
    }

    .mg-str {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .mg-bz-text {
        width: 100%;
        padding-left: 28px;
        padding-right: 28px
    }

    .mg-bz-intro {
        margin-right: 0
    }

    .mg-fm__grid {
        grid-template-columns: 1fr;
        gap: 34px
    }
}

@media(max-width:700px) {

    .mg-svc,
    .mg-str {
        grid-template-columns: 1fr
    }

    .mg-fm label.t,
    .mg-consent h3 {
        font-size: 22px
    }

    .mg-fm .radios,
    .mg-consent__ok {
        font-size: 20px
    }

    .mg-fm .mail {
        grid-template-columns: 1fr auto 1fr
    }

    .mg-fm .mail select {
        grid-column: 1/-1
    }

    .mg-faq__q {
        font-size: 20px;
        gap: 18px;
        padding: 22px 10px
    }

    .mg-faq__q em {
        width: 48px;
        height: 48px;
        font-size: 20px
    }

    .mg-faq__a {
        padding: 0 10px 30px
    }

    .mg-tabs button {
        height: 48px;
        font-size: 18px;
        padding: 0 18px
    }
}