.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.wrap {
  width: min(960px, 92vw);
  margin: 54px auto 100px;
}

.tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab {
  border-radius: 999px;
  padding: 14px 34px;
  border: 1px solid #d3d5db;
  background: #f2f2f4;
  color: #454958;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  user-select: none;
}

.tab.active {
  background: var(--blue);
  color: #fff;
  border-color: #2a67a8;
}

.subtabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
}

.subtabs-wrap {
  position: sticky;
  top: 10px;
  z-index: 25;
  background: rgba(236, 236, 239, 0.95);
  border: 1px solid #d6d8df;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(3px);
}

.subtabs-wrap.hidden { display: none; }

.subtabs-context {
  font-size: 15px;
  font-weight: 800;
  color: #2f73bb;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

.subtab {
  border-radius: 999px;
  border: 1px solid #d3d5db;
  background: #fff;
  color: #454958;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.subtab.active {
  background: #2f73bb;
  color: #fff;
  border-color: #2a67a8;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 40;
  border: none;
  border-radius: 999px;
  background: #2f73bb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 85vh;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(94, 174, 144, .15), transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(86, 122, 210, .09), transparent 28%),
    linear-gradient(to right, rgba(3, 16, 13, .95), rgba(3, 16, 13, .62)),
    url('../assets/background수묵.webp') center/cover no-repeat;
  z-index: -3;
  transform: scale(1.03);
}

.decor-top,
.decor-bottom {
  position: absolute;
  pointer-events: none;
  opacity: .22;
  filter: drop-shadow(0 0 40px rgba(117, 185, 160, .15));
  z-index: -2;
}

.decor-top {
  top: -8px;
  left: -10px;
  width: min(620px, 68vw);
}

.decor-bottom {
  right: -20px;
  bottom: -40px;
  width: min(660px, 72vw);
  transform: scaleX(-1);
}

.hero-grid {
  padding: 48px 0 54px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.logo-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px;
  background: rgba(0, 0, 0, .3);
}

.eyebrow {
  margin: 0;
  color: var(--mint);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.hero-desc {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  position: relative;
  border: 1px solid rgba(142, 231, 185, .28);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(9, 30, 24, .62), rgba(7, 24, 19, .62));
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 18px 0;
  box-shadow: 0 20px 60px rgba(2, 10, 8, .6);
}

.hero-visual img {
  width: min(440px, 92%);
  object-fit: contain;
}

.section {
  padding: 36px 0 18px;
}

.section h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section p {
  margin: 0 0 18px;
  color: var(--muted);
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.branch-card {
  background: linear-gradient(180deg, rgba(10, 36, 29, .9), rgba(9, 30, 24, .95));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.branch-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.branch-body { padding: 16px; }

.branch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.branch-head h3 { margin: 0; font-size: 1.35rem; }

.branch-tag {
  border: 1px solid var(--line);
  color: var(--mint);
  font-size: .76rem;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
}

.branch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.branch-list li { margin-bottom: 6px; }
.branch-list strong { color: var(--text); }
.branch-cta { margin-top: 14px; }

.insta-wide {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(10, 34, 27, .95), rgba(12, 44, 34, .95));
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #052216;
  background: linear-gradient(135deg, #a9ffd4, #7cecbc 55%, #58d89a);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 3px rgba(121, 238, 177, .2), 0 10px 24px rgba(75, 210, 149, .3);
}

.insta-btn img { width: 16px; height: 16px; }

.floating-insta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 800;
  color: #042216;
  background: linear-gradient(135deg, #b8ffe0, #80f1bf 55%, #5dd89f);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 3px rgba(124, 240, 186, .24), 0 12px 28px rgba(58, 211, 138, .4);
}

.floating-insta img { width: 18px; height: 18px; }

footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  color: #97b2a7;
  text-align: center;
  padding: 18px;
  font-size: .9rem;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; }
  .branch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .tab { font-size: 18px; padding: 10px 20px; }
}
