:root {
  --color-page: #f4f6f8;
  --color-surface: #ffffff;
  --color-text: #1f2a33;
  --color-muted: #66737f;
  --color-line: #d9e0e7;
  --color-accent: #128061;
  --color-accent-dark: #0d624b;
  --shadow-card: 0 24px 70px rgba(26, 42, 58, 0.16);
  --radius-card: 8px;
  --radius-soft: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background:
    linear-gradient(135deg, rgba(18, 128, 97, 0.14), transparent 38%),
    var(--color-page);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 18px;
  display: grid;
  place-items: center;
}

.business-card {
  width: min(100%, 430px);
  background: var(--color-surface);
  border: 1px solid rgba(217, 224, 231, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.brand-strip {
  min-height: 84px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-line);
  background: #ffffff;
}

.brand-logo {
  width: min(260px, 82%);
  height: auto;
}

.home-page .business-card {
  width: min(100%, 620px);
}

.home-page .brand-strip {
  min-height: 64px;
  padding: 18px 24px;
}

.home-page .brand-logo {
  width: min(210px, 62%);
}

.home-layout {
  display: block;
  padding: 34px 28px;
}

.home-content {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.home-content .intro-text {
  margin-left: auto;
  margin-right: auto;
}

.home-content .primary-link {
  margin-left: auto;
  margin-right: auto;
}

.profile-layout {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.profile-frame {
  width: 178px;
  height: 178px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  outline: 1px solid var(--color-line);
  box-shadow: 0 18px 40px rgba(31, 42, 51, 0.18);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.company-lockup {
  width: min(280px, 86%);
  min-height: 86px;
  margin: 22px auto 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-soft);
  background: #fbfcfd;
}

.company-logo {
  max-height: 54px;
  object-fit: contain;
}

.card-footer {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--color-line);
  background: #fbfcfd;
}

.intro-text {
  margin: 18px 0 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.primary-link {
  min-height: 46px;
  margin-top: 20px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-soft);
  color: #ffffff;
  background: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.site-shell,
.card-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 28px 18px;
}

.gallery-page,
.card-page {
  color: var(--theme-text, var(--color-text));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-accent, var(--color-accent)) 14%, transparent), transparent 42%),
    var(--theme-page, var(--color-page));
}

.gallery-header {
  padding: 10px 0 28px;
}

.gallery-logo {
  width: min(220px, 70%);
  margin-bottom: 24px;
}

.gallery-header h1,
.gallery-section h2,
.card-hero h1,
.content-section h2,
.qr-section h2,
.share-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.gallery-header h1 {
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1;
}

.gallery-section {
  padding: 24px 0;
}

.gallery-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 5vw, 2rem);
}

.gallery-grid {
  display: grid;
  gap: 14px;
}

.gallery-card {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 42, 51, 0.08);
}

.gallery-card h3 {
  margin: 10px 0;
  font-size: 1.25rem;
}

.gallery-card p {
  margin: 0 0 18px;
  color: var(--color-muted);
  line-height: 1.5;
}

.gallery-card a {
  min-height: 42px;
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-soft);
  color: #ffffff;
  background: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.gallery-tag {
  color: var(--color-accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.real-example {
  border-color: rgba(18, 128, 97, 0.28);
}

.card-shell {
  max-width: 620px;
}

.smart-card {
  overflow: hidden;
  border: 1px solid var(--theme-line, var(--color-line));
  border-radius: var(--radius-card);
  color: var(--theme-text, var(--color-text));
  background: var(--theme-surface, var(--color-surface));
  box-shadow: var(--shadow-card);
}

.card-hero,
.content-section,
.qr-section,
.share-section,
.commercial-footer,
.real-footer {
  padding: 24px;
}

.card-hero {
  text-align: center;
}

.card-hero .eyebrow {
  color: var(--theme-accent-dark, var(--color-accent-dark));
}

.card-hero h1 {
  font-size: clamp(2rem, 10vw, 3.35rem);
  line-height: 1;
}

.subtitle {
  margin: 12px auto 0;
  max-width: 32rem;
  color: var(--theme-muted, var(--color-muted));
  line-height: 1.55;
}

.primary-cta,
.secondary-cta,
.quick-actions a,
.share-section button,
.commercial-footer a,
.menu-list a {
  min-height: 44px;
  border-radius: var(--radius-soft);
  font-weight: 700;
  text-decoration: none;
}

.primary-cta {
  margin-top: 22px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--theme-accent, var(--color-accent));
}

.secondary-cta {
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-accent-dark, var(--color-accent-dark));
  border: 1px solid var(--theme-line, var(--color-line));
  background: transparent;
}

.content-section,
.qr-section,
.share-section {
  border-top: 1px solid var(--theme-line, var(--color-line));
}

.content-section h2,
.qr-section h2,
.share-section h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.pill-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list li {
  padding: 9px 12px;
  border: 1px solid var(--theme-line, var(--color-line));
  border-radius: 999px;
  color: var(--theme-text, var(--color-text));
  background: color-mix(in srgb, var(--theme-accent, var(--color-accent)) 8%, transparent);
  font-size: 0.92rem;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  padding-left: 24px;
  position: relative;
  color: var(--theme-muted, var(--color-muted));
}

.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 0.55em;
  left: 2px;
  border-radius: 50%;
  background: var(--theme-accent, var(--color-accent));
}

.quick-actions,
.share-section {
  display: grid;
  gap: 10px;
}

.quick-actions {
  padding: 0 24px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-actions a,
.share-section button,
.commercial-footer a,
.menu-list a {
  padding: 11px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-line, var(--color-line));
  color: var(--theme-text, var(--color-text));
  background: color-mix(in srgb, var(--theme-surface, var(--color-surface)) 88%, #ffffff);
  text-align: center;
}

.share-section button {
  cursor: pointer;
}

.qr-section {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.qr-section img {
  width: 160px;
  height: 160px;
}

.visual-gallery {
  display: grid;
  gap: 12px;
}

.visual-placeholder {
  min-height: 126px;
  padding: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--theme-line, var(--color-line));
  border-radius: var(--radius-soft);
  color: var(--theme-muted, var(--color-muted));
  background: color-mix(in srgb, var(--theme-accent, var(--color-accent)) 10%, transparent);
  font-weight: 700;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-list div {
  min-width: 0;
}

.contact-list dt {
  color: var(--theme-muted, var(--color-muted));
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.menu-list {
  display: grid;
  gap: 10px;
}

.note {
  margin: 0;
  padding: 18px 24px;
  color: var(--theme-muted, var(--color-muted));
  border-top: 1px solid var(--theme-line, var(--color-line));
  text-align: center;
}

.feedback {
  min-height: 20px;
  margin: 0;
  color: var(--theme-muted, var(--color-muted));
  text-align: center;
}

.commercial-footer,
.real-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  border-top: 1px solid var(--theme-line, var(--color-line));
  text-align: center;
}

.commercial-footer p {
  margin: 0;
  font-weight: 700;
}

.real-footer a {
  color: var(--theme-muted, var(--color-muted));
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-accent, var(--color-accent)) 34%, transparent);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .business-card {
    width: 720px;
  }

  .profile-layout {
    grid-template-columns: 178px 1fr;
    align-items: center;
    text-align: left;
  }

  .profile-frame {
    margin: 0;
  }

  .profile-content {
    text-align: left;
  }

  .home-content {
    text-align: center;
  }

  .home-page .home-layout {
    display: block;
    padding: 46px 42px;
  }

  .company-lockup {
    margin-left: 0;
  }

  .site-shell,
  .card-shell {
    padding: 44px 28px;
  }

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

  .one-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-hero,
  .content-section,
  .qr-section,
  .share-section,
  .commercial-footer,
  .real-footer {
    padding: 30px;
  }

  .quick-actions {
    padding: 0 30px 30px;
  }

  .visual-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding: 16px 12px;
  }

  .brand-strip,
  .profile-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .profile-frame {
    width: 148px;
    height: 148px;
  }

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