:root {
  --text: #191f28;
  --sub: #6b7684;
  --muted: #8b95a1;
  --line: #e5e8eb;
  --layer: #f2f4f6;
  --surface: #f9fafb;
  --white: #fff;
  --blue: #3182f6;
  --blue-dark: #2272eb;
  --blue-soft: #e8f3ff;
  --danger: #f04452;
  --shadow: 0 8px 28px rgba(0, 27, 55, .08);
  --shadow-strong: 0 18px 48px rgba(0, 27, 55, .12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --content: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

button,
input,
select {
  font-family: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.fee-help:focus-visible {
  outline: 3px solid rgba(49, 130, 246, .28);
  outline-offset: 3px;
}

.age-line {
  min-height: 34px;
  padding: 7px max(var(--gutter), calc((100vw - var(--content)) / 2));
  color: var(--sub);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
}

.header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 36px;
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  height: 76px;
  margin: auto;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.logo {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.2px;
}

.logo span {
  display: inline-block;
  margin-left: 7px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  vertical-align: middle;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  margin-right: auto;
}

.header nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}

.header nav a:hover {
  color: var(--text);
  background: var(--layer);
}

.header nav a.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 184px;
  min-height: 54px;
  padding: 15px 22px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(49, 130, 246, .2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button:hover {
  background: var(--blue-dark);
  box-shadow: 0 9px 20px rgba(49, 130, 246, .26);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button b,
.text-button b {
  font: 18px/1 var(--sans);
  font-weight: 500;
}

.button.small {
  min-width: 132px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 13px;
  font-size: 14px;
}

.full {
  width: 100%;
}

.kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.1px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 56px;
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  min-height: 590px;
  margin: 42px auto 0;
  padding: 86px 72px;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 8%, rgba(49, 130, 246, .13), transparent 32%),
    linear-gradient(145deg, #f9fafb 0%, #f2f7ff 100%);
}

.grid-label {
  display: none;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-main h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -3.2px;
}

.hero-main h1 strong {
  color: var(--blue);
  font-weight: 800;
}

.lede {
  margin: 28px 0 36px;
  color: var(--sub);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -.3px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.text-button b {
  margin-left: 4px;
}

.hero-side {
  align-self: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-side span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.hero-side p {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 2.1;
}

.statement,
.page-head,
.content-section,
.notice-block,
.overview,
.profile-showcase,
.solution-block,
.compare-block,
.faq-block {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin-right: auto;
  margin-left: auto;
}

.statement {
  margin-top: 110px;
  margin-bottom: 110px;
  padding: 76px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.statement h2,
.section-title h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -2.3px;
}

.statement h2 em {
  color: var(--blue);
  font-style: normal;
}

.statement > p:last-child {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--sub);
  font-size: 16px;
}

.overview {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
  padding: 110px 0;
}

.overview-list {
  display: grid;
  gap: 12px;
}

.overview-list a {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  transition: background .18s ease, transform .18s ease;
}

.overview-list a:hover {
  background: var(--blue-soft);
  transform: translateX(3px);
}

.overview-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.overview-list h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.overview-list p {
  margin: 3px 0 0;
  color: var(--sub);
  font-size: 13px;
}

.overview-list b {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin: 90px auto;
  padding: 64px 68px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: #191f28;
}

.cta-band .kicker {
  color: #90c2ff;
}

.inverted {
  color: var(--blue);
  background: #fff;
  box-shadow: none;
}

.inverted:hover {
  color: var(--blue-dark);
  background: #f2f7ff;
}

.page-head {
  padding: 90px 72px 54px;
}

.page-head h1 {
  font-size: clamp(44px, 5vw, 60px);
}

.page-head > p:last-child {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--sub);
  font-size: 17px;
  line-height: 1.7;
}

.content-section {
  padding: 30px 0 110px;
}

.filter {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.filter button {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--sub);
  background: var(--layer);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter button:hover {
  color: var(--text);
  background: var(--line);
}

.filter button.active {
  color: #fff;
  background: var(--blue);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.profile-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 27, 55, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.profile-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.profile-photo {
  position: relative;
  display: block;
  height: 255px;
  overflow: hidden;
  background: var(--layer);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.profile-photo:hover img,
.profile-photo:focus-visible img {
  transform: scale(1.025);
}

.profile-photo.image-unavailable::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--sub);
  background: var(--layer);
  content: "이미지를 불러올 수 없습니다";
  font-size: 12px;
}

.image-status {
  display: none;
}

.profile-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.profile-number {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.profile-card h2 {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.5px;
}

.profile-card p {
  margin: 0;
  color: var(--sub);
  font-size: 12px;
}

.official-name {
  margin-top: 3px !important;
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 11px !important;
}

.profile-facts {
  margin-top: 8px !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.profile-actions {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.profile-actions a {
  display: grid;
  min-height: 40px;
  place-items: center;
  padding: 9px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-button {
  color: var(--text);
  background: var(--layer);
}

.profile-actions .apply-button {
  color: #fff;
  background: var(--blue);
}

.profile-actions .apply-button:hover {
  color: #fff;
  background: var(--blue-dark);
}

.annotation {
  margin: 22px 0 0;
  color: var(--sub);
  font-size: 12px;
}

.price-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rate-card {
  display: flex;
  padding: 34px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 27, 55, .04);
}

.rate-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 14px 34px rgba(49, 130, 246, .12);
}

.rate-card header span {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.rate-card h2 {
  margin: 16px 0 3px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.8px;
}

.rate-card header p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}

.rate-card dl {
  margin: 34px 0 26px;
}

.rate-card dl div {
  display: flex;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.rate-card dt {
  color: var(--sub);
  font-size: 14px;
}

.rate-card dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.rate-card footer {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  color: var(--sub);
  font-size: 13px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 30px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--surface);
}

.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.steps h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.steps p {
  margin: 3px 0 0;
  color: var(--sub);
  font-size: 13px;
}

.location-panel {
  align-self: start;
  padding: 32px;
  border-radius: 24px;
  background: var(--blue-soft);
}

.location-panel h2 {
  margin: 0 0 18px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
}

.location-panel > p:not(.kicker) {
  margin: 0 0 30px;
  color: var(--sub);
  font-size: 13px;
}

.location-panel div {
  padding: 14px 0;
  border-top: 1px solid rgba(49, 130, 246, .18);
}

.location-panel div span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.location-panel div strong {
  font-size: 14px;
  font-weight: 700;
}

.location-panel .text-button {
  margin-top: 22px;
}

.notice-block {
  padding: 0 0 110px;
}

.notice-block ul {
  margin: 22px 0 0;
  padding: 8px 28px;
  border-radius: 20px;
  background: var(--surface);
  list-style: none;
}

.notice-block li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.notice-block li:last-child {
  border-bottom: 0;
}

.apply-layout {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 30px;
}

#visitForm,
.apply-aside {
  padding: 34px;
  border-radius: 24px;
}

#visitForm {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 27, 55, .04);
}

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

label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: var(--layer);
  font-size: 14px;
}

input::placeholder {
  color: var(--muted);
}

input:focus,
select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, .12);
}

.form-notice {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--blue-soft);
}

.form-notice b {
  font-size: 13px;
}

.form-notice p {
  margin: 5px 0 0;
  color: var(--sub);
  font-size: 12px;
}

.apply-aside {
  background: var(--surface);
}

.apply-aside h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -1.5px;
}

.apply-aside > p:last-child {
  margin-top: 22px;
  color: var(--sub);
  font-size: 14px;
}

body > footer {
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin: 30px auto 0;
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
}

body > footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

dialog {
  width: min(470px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

dialog::backdrop {
  background: rgba(25, 31, 40, .62);
  backdrop-filter: blur(4px);
}

.complete {
  position: relative;
  padding: 38px;
  border-radius: 24px;
  background: #fff;
}

.complete .close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--layer);
  font-size: 24px;
  cursor: pointer;
}

.complete h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.receipt {
  margin: 26px 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--blue-soft);
}

.receipt span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.receipt strong {
  display: block;
  margin: 8px 0;
  font-size: 28px;
  font-weight: 800;
}

.receipt p,
.complete > p {
  margin: 0;
  color: var(--sub);
  font-size: 12px;
}

.complete .button {
  margin-top: 22px;
}

.detail-wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin: auto;
  padding: 48px 0 110px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 28px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--sub);
  background: var(--layer);
  font-size: 13px;
  font-weight: 700;
}

.profile-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 56px;
}

.detail-image {
  overflow: hidden;
  aspect-ratio: 5 / 7;
  border-radius: 28px;
  background: var(--layer);
}

.detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-label,
.detail-section-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.detail-name {
  margin: 0;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -2px;
}

.detail-official-name {
  margin-top: 7px !important;
}

.detail-store {
  margin: 12px 0 30px;
  color: var(--sub);
}

.detail-intro,
.detail-note {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--surface);
}

.detail-intro {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.75;
}

.detail-intro p:last-child {
  margin: 0;
}

.detail-intro .detail-section-label {
  margin-bottom: 8px;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.detail-facts div,
.detail-answers div {
  min-width: 0;
  padding: 17px 18px;
  border-radius: 16px;
  background: var(--surface);
}

.detail-facts dt,
.detail-answers dt {
  margin-bottom: 4px;
  color: var(--sub);
  font-size: 12px;
}

.detail-facts dd,
.detail-answers dd {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fee-help {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: help;
}

.fee-help:focus::after,
.fee-help:hover::after {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 0;
  width: 230px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--text);
  box-shadow: var(--shadow);
  content: attr(aria-label);
  font: 12px/1.55 var(--sans);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.detail-tags li {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
}

.detail-answers {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.detail-answers dd {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.detail-note {
  margin: 26px 0;
  color: var(--sub);
  font-size: 12px;
}

.detail-note b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.detail-error {
  padding: 80px 0;
  font-size: 16px;
}

.detail-cta {
  margin-top: 14px;
}

.detail-source {
  margin: 14px 0 0;
  color: var(--sub);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 980px) {
  .header nav {
    gap: 0;
  }

  .header nav a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 72px 56px;
  }

  .hero-side {
    display: none;
  }

  .overview,
  .profile-showcase,
  .guide-grid,
  .apply-layout,
  .profile-detail {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview {
    gap: 42px;
  }

  .profile-detail {
    gap: 34px;
  }

  .detail-image {
    max-height: 760px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .age-line {
    padding: 7px 20px;
  }

  .header {
    height: 66px;
    gap: 12px;
  }

  .header nav {
    display: none;
  }

  .header .button {
    min-width: 118px;
    min-height: 42px;
    margin-left: auto;
    padding: 9px 14px;
    font-size: 13px;
  }

  .home-hero {
    margin-top: 20px;
    padding: 60px 28px;
    border-radius: 26px;
  }

  .hero-main h1 {
    font-size: 42px;
    letter-spacing: -2.2px;
  }

  .lede {
    margin: 24px 0 30px;
    font-size: 16px;
  }

  .lede br {
    display: none;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .actions .text-button {
    justify-content: center;
  }

  .statement {
    margin-top: 72px;
    margin-bottom: 72px;
    padding: 42px 24px;
    border-radius: 24px;
  }

  .overview {
    padding: 78px 0;
  }

  .cta-band {
    align-items: stretch;
    flex-direction: column;
    margin: 68px auto;
    padding: 42px 26px;
    border-radius: 24px;
  }

  .cta-band .button {
    width: 100%;
  }

  .page-head {
    padding: 66px 0 38px;
  }

  .page-head h1 {
    font-size: 44px;
    letter-spacing: -2.2px;
  }

  .page-head > p:last-child {
    font-size: 15px;
  }

  .content-section {
    padding-top: 16px;
    padding-bottom: 80px;
  }

  .profile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .profile-card {
    min-height: 310px;
    border-radius: 18px;
  }

  .profile-photo {
    height: 190px;
  }

  .profile-info {
    padding: 14px;
  }

  .profile-card h2 {
    margin-top: 7px;
    font-size: 18px;
  }

  .profile-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 13px;
  }

  .price-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .rate-card,
  #visitForm,
  .apply-aside,
  .location-panel {
    padding: 24px;
  }

  .notice-block {
    padding-bottom: 80px;
  }

  .notice-block ul {
    padding: 6px 20px;
  }

  body > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .detail-wrap {
    padding-top: 28px;
    padding-bottom: 80px;
  }

  .detail-name {
    font-size: 40px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .fee-help:focus::after,
  .fee-help:hover::after {
    right: 0;
    left: auto;
  }
}

@media (max-width: 430px) {
  .logo {
    font-size: 21px;
  }

  .logo span {
    display: none;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    height: 320px;
  }

  .profile-actions {
    grid-template-columns: 1fr 1.15fr;
  }
}
