/* Mary Street Early Learning Centre — 사이트 모양 */
:root {
  --navy: #0F3A61; --navy-2: #184d7e; --coral: #FF8878; --coral-d: #e8685a;
  --blue: #CEECFB; --peach: #FFD8C7; --gray: #E8E6E6; --salmon: #FFB0A1;
  --ink: #2f3540; --muted: #5f6774; --line: #d9dee5; --bg: #fff;
  --c1: #f7941d; --c2: #7b3fa0; --c3: #3cae4b; --c4: #29abe2;
  --r: 18px; --shadow: 0 10px 30px rgba(15, 58, 97, .12);
  --head: 'Poppins', 'Noto Sans KR', system-ui, sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--body); color: var(--ink); background: var(--bg); }
body.l-ko { --body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; word-break: keep-all; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* 공지 띠 */
.notice-bar { background: var(--coral); color: #fff; font-size: 15px; padding: 9px 0; text-align: center; }
.notice-bar span { opacity: .95; }

/* 머리 */
.top { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.logo-fallback { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font: 700 18px var(--head); color: var(--navy); }
.brand-txt { display: flex; flex-direction: column; color: var(--navy); font-family: var(--head); line-height: 1.05; }
.brand-txt b { font-size: 30px; font-weight: 700; letter-spacing: .14em; }
.brand-txt small { font-size: 12.5px; font-weight: 600; letter-spacing: .23em; margin-top: 4px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.phone { display: flex; align-items: center; gap: 6px; font: 600 20px var(--head); color: var(--navy); text-decoration: none; white-space: nowrap; }
.phone svg { width: 22px; height: 22px; fill: var(--navy); }
.lang { font: 500 14px var(--head); color: var(--navy); text-decoration: none; border: 1.5px solid var(--blue); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.lang:hover { background: var(--blue); }
.menu-btn { display: none; }
.ln-s { display: none; }
.nav { border-top: 1px solid #eef1f4; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.nav a { display: block; padding: 12px 6px; font: 400 15.5px var(--head); color: var(--navy); text-decoration: none; position: relative; }
.nav a:hover, .nav a[aria-current] { color: var(--coral); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 2px; background: var(--coral); border-radius: 2px; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; font: 500 16px var(--head); padding: 13px 26px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--blue); }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* 첫 화면 */
.hero { background: linear-gradient(135deg, #e7f6fe 0%, var(--blue) 60%, #fde7dd 100%); overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; }
.hero-sub { font-size: 18px; color: #36475a; max-width: 33em; }
.chips { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; color: var(--navy); font: 500 14px var(--head); padding: 6px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(15,58,97,.08); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; height: 420px; }
.polaroid { position: absolute; margin: 0; background: #fff; padding: 10px 10px 32px; border-radius: 6px; box-shadow: var(--shadow); width: 58%; }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; }
.polaroid.p1 { left: 0; top: 18px; transform: rotate(-6deg); z-index: 2; }
.polaroid.p2 { right: 0; top: 0; transform: rotate(5deg); z-index: 1; }
.polaroid.p3 { left: 22%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.dot { position: absolute; border-radius: 50%; opacity: .85; }
.d1 { width: 70px; height: 70px; background: var(--c1); right: 6%; bottom: 14%; }
.d2 { width: 34px; height: 34px; background: var(--c2); left: -12px; bottom: 30%; }
.d3 { width: 22px; height: 22px; background: var(--c3); right: 34%; top: -6px; }
.hero-photo { background: var(--hero) center / cover no-repeat; min-height: 520px; display: flex; align-items: flex-end; }
.hero-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.88) 78%); }
.hero-photo .hero-in { position: relative; text-align: center; padding: 60px 0 46px; }
.hero-photo h1 { margin-top: 18px; }

/* 알림 */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 30px; }
.news-card { border: 2px solid var(--peach); border-radius: var(--r); padding: 18px 20px; background: #fffaf7; }
.news-card h3 { margin: 6px 0; font-size: 19px; }
.news-card p { margin: .4em 0; }
.news-tag { display: inline-block; background: var(--coral); color: #fff; font: 600 12px var(--head); padding: 3px 10px; border-radius: 999px; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.card { border-radius: 4px; padding: 26px 22px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.card h2 { font-size: 23px; font-weight: 500; margin-bottom: 14px; }
.card h2 a { color: inherit; text-decoration: none; }
.card-img { display: block; width: 100%; margin-bottom: 16px; overflow: hidden; border-radius: 4px; }
.card-img img { width: 100%; aspect-ratio: 294 / 231; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-txt { color: #444; font-size: 15px; flex: 1; }
.card-txt p { margin: 0 0 1em; }
.more { font: 500 15px var(--head); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 2px; }
.c-blue { background: var(--blue); }
.c-peach { background: var(--peach); }
.c-gray { background: var(--gray); }
.wl-ico { font-size: 64px; line-height: 1; margin: 6px 0 14px; }
.quotes { position: relative; }
.q-track { flex: 1; width: 100%; }
.q { margin: 0; text-align: left; }
.q-mark { font: 700 64px/0.6 Georgia, serif; color: var(--navy); vertical-align: -18px; margin-right: 8px; }
.q figcaption { display: inline; font: 600 20px var(--head); color: var(--navy); }
.q blockquote { margin: 14px 0 0; font-size: 15px; color: #444; }
.q-nav { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.q-nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.q-count { font: 500 14px var(--head); color: var(--navy); }
.sun iframe { border: 0; max-width: 100%; border-radius: 6px; background: #fff; }
.gallery { margin-top: 50px; }
.gallery h2 { text-align: center; font-weight: 500; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.g-grid figure { margin: 0; }
.g-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }

/* 지도 */
.map { position: relative; margin-top: 56px; }
.map iframe { width: 100%; height: 400px; border: 0; display: block; filter: saturate(.9); }
.map-btn { position: absolute; right: 16px; bottom: 16px; background: #fff; color: var(--navy); font: 600 14px var(--head); padding: 10px 16px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }
.p-contact .map { margin-top: 0; }

/* 연락처 띠 */
.contact-band { background: var(--salmon); padding: 56px 0 60px; }
.cb-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-band h2 { font-size: 28px; font-weight: 500; }
.contact-band h3 { font-size: 18px; font-weight: 500; margin-top: 28px; }
.cb-info p { margin: .45em 0; color: #3a3a3a; }
.cb-info .k { display: inline-block; min-width: 72px; font-weight: 600; }
.cb-info a { color: #3a3a3a; }
.cb-intro p { margin: 0 0 14px; color: #3a3a3a; }

/* 페이지 */
.pbanner { background: var(--blue); padding: 22px 16px; text-align: center; }
.pbanner h1 { margin: 0; font: 500 clamp(20px, 3vw, 26px) var(--head); letter-spacing: .35em; text-transform: uppercase; color: var(--navy); }
.l-ko .pbanner h1 { letter-spacing: .2em; }
.page { padding: 40px 0 10px; }
.page.narrow { width: min(860px, 100% - 32px); }
.sec { margin-bottom: 44px; }
.sec h2 { font-size: 26px; font-weight: 600; }
.sec.with-img { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.sec-img { margin: 6px 0 0; position: sticky; top: 140px; }
.sec-img img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; }
.prose { font-size: 16.5px; }
.prose p { margin: 0 0 1em; }
.prose h3 { font-size: 19px; margin: 1.4em 0 .5em; color: var(--coral-d); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--coral); }
.faq details, .jobs details { border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; }
.faq summary, .jobs summary { cursor: pointer; padding: 16px 48px 16px 20px; font: 500 17px var(--head); color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker, .jobs summary::-webkit-details-marker { display: none; }
.faq summary::after, .jobs summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--coral); }
.faq details[open] summary::after, .jobs details[open] summary::after { content: '–'; }
.faq .prose, .jobs .prose { padding: 0 20px 6px; }
.jobs .apply { margin: 0 20px 18px; }
.menu-img img { border-radius: 12px; box-shadow: var(--shadow); }
.calc iframe { width: 100%; height: 1850px; border: 0; }
.privacy { font-size: 14px; color: var(--muted); margin: 26px 0 40px; }
.privacy h2 { font-size: 16px; }

/* 양식 */
.form-card { background: var(--blue); border-radius: 22px; padding: 28px clamp(18px, 4vw, 36px) 32px; margin: 10px 0 20px; }
.form-card h2 { text-align: center; font-weight: 500; }
.mform { position: relative; }
.fs { border: 0; padding: 0; margin: 0 0 22px; }
.fs legend { font: 600 18px var(--head); color: var(--navy); padding: 0; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fld { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.fld.half { grid-column: span 1; }
.lbl { font-size: 15px; color: #26313e; font-weight: 500; }
.req { color: var(--coral-d); }
.mform input:not([type=checkbox]):not([type=radio]):not([type=file]), .mform select, .mform textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; border: 1.5px solid #c7d3df; border-radius: 12px; background: #fff; color: var(--ink); min-height: 48px;
}
.contact-band .mform input:not([type=checkbox]):not([type=radio]), .contact-band .mform textarea { border-color: #fff; }
.mform textarea { resize: vertical; min-height: 110px; }
.mform :focus-visible { outline: 3px solid var(--coral); outline-offset: 1px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opts.row { flex-direction: row; flex-wrap: wrap; }
.opt { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #c7d3df; border-radius: 12px; padding: 10px 14px; cursor: pointer; min-height: 46px; }
.opts.row .opt { flex: 1 1 110px; }
.opts.row .opt:only-child { flex-grow: 0; }
.opt input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; margin: 0; }
.opt:has(input:checked) { border-color: var(--navy); background: #f2f8ff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; background: #fff; padding: 14px; border-radius: 12px; border: 1.5px solid #c7d3df; margin-bottom: 18px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--navy); }
.filebox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1.5px dashed #9fb3c7; border-radius: 12px; padding: 12px; cursor: pointer; }
.filebox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filebtn { background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 999px; font: 500 14px var(--head); }
.filename { color: var(--muted); font-size: 14px; word-break: break-all; }
.hp { position: absolute; left: -5000px; }
.bad input, .bad select, .bad textarea, .bad .opt, .consent.bad { border-color: #d92d20 !important; background-color: #fff5f4 !important; }
.bad .lbl::after { content: ' – ' attr(data-req); color: #d92d20; font-size: 13px; }
.ferr { background: #fff1f0; color: #b42318; border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.btn-send { width: 100%; font-size: 18px; padding: 15px; background: #2f2f2f; }
.btn-send:hover { background: #111; }
.form-card .btn-send { background: var(--navy); }
.btn-send[disabled] { opacity: .6; cursor: wait; }
.fdone { text-align: center; padding: 26px 10px; }
.fdone-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 36px; display: grid; place-items: center; }
.mform.done > *:not(.fdone) { display: none !important; }
.mform.done .fdone { display: block !important; }

/* 꼬리 */
.foot { background: #fff; padding: 26px 0 30px; text-align: center; font-size: 14px; color: var(--muted); }
.foot-nav { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot-nav a { color: var(--navy); text-decoration: none; }
.mbar { display: none; }

/* 태블릿 */
@media (max-width: 980px) {
  .brand-txt b { font-size: 24px; }
  .nav a { font-size: 14.5px; }
  .hero-grid { grid-template-columns: 1fr; padding: 36px 0 44px; }
  .hero-art { height: 330px; max-width: 560px; width: 100%; margin: 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sec.with-img { grid-template-columns: 1fr; gap: 20px; }
  .sec-img { position: static; max-width: 520px; }
}

/* 휴대폰 */
@media (max-width: 760px) {
  .brand img { width: 44px !important; height: 44px !important; }
  body { padding-bottom: 72px; }
  .top-row { padding: 8px 0; }
  .brand img { width: 48px; height: 48px; }
  .brand { gap: 8px; }
  .brand-txt { white-space: nowrap; }
  .brand-txt b { font-size: 18px; letter-spacing: .08em; }
  .brand-txt small { font-size: 8.6px; letter-spacing: .12em; margin-top: 3px; }
  .top-right { gap: 8px; }
  .opts.row .opt { flex: 1 1 28%; padding: 10px; }
  .phone span { display: none; }
  .phone { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); justify-content: center; }
  .lang { padding: 6px 9px; font-size: 13px; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--navy); cursor: pointer; position: relative; }
  .menu-btn span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
  .menu-btn em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: none; border-top: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 6px 0 12px; }
  .nav a { font-size: 18px; padding: 13px 4px; border-bottom: 1px solid #f0f2f5; }
  .nav a[aria-current]::after { display: none; }
  .hero h1 { font-size: 31px; }
  .hero-sub { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-art { height: 250px; }
  .hero-photo { min-height: 420px; }
  .cards, .cards-2 { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .grid { grid-template-columns: 1fr; }
  .fld.half { grid-column: 1 / -1; }
  .cb-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-band { padding: 40px 0; }
  .map iframe { height: 300px; }
  .sec h2 { font-size: 22px; }
  .pbanner h1 { letter-spacing: .2em; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.1); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .mbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 12px; color: var(--navy); text-decoration: none; font: 500 13px var(--head); }
  .mbar a span { font-size: 20px; line-height: 1.1; }
  .mbar .mbar-main { background: var(--coral); color: #fff; }
}
@media (max-width: 430px) {
  .ln-l { display: none; }
  .ln-s { display: inline; }
  .brand { flex: 1 1 auto; overflow: hidden; }
  .brand img { width: 40px !important; height: 40px !important; }
  .brand-txt b { font-size: 16px; letter-spacing: .06em; }
  .brand-txt small { font-size: 7.6px; letter-spacing: .1em; }
  .phone { width: 40px; height: 40px; }
  .menu-btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
