:root {
  --white: #FAFAF8;
  --ink: #1a2332;
  --moss: #2d4a3e;
  --terracotta: #b85c38;
  --sand: #c4a77d;
  --steel: #5c6b73;
  --bg-light: #f0ebe3;
  --shadow-sm: 0 0.125rem 0.25rem rgba(26, 35, 50, 0.06);
  --shadow-md: 0 0.25rem 0.75rem rgba(26, 35, 50, 0.1);
  --shadow-lg: 0 0.5rem 1.5rem rgba(26, 35, 50, 0.12);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.65rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.75rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3.5rem;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --fs-xs: 0.7rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-lg: 1rem;
  --fs-xl: 1.0625rem;
  --fs-2xl: 1.25rem;
  --fs-3xl: 1.5rem;
  --fs-hero: clamp(1.15rem, 3.2vw, 1.75rem);
  --fs-section: clamp(0.875rem, 2vw, 1.125rem);
  --fs-card-title: clamp(0.875rem, 1.8vw, 1rem);
  --fs-legal-h1: clamp(0.95rem, 2vw, 1.15rem);
  --fs-legal-h2: clamp(0.85rem, 1.6vw, 0.95rem);
  --transition: 0.25s ease;
  --header-h: 2.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--moss);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--terracotta);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-section); }
h3 { font-size: var(--fs-card-title); }
h4 { font-size: var(--fs-sm); }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  background: rgba(26, 35, 50, 0.94);
  backdrop-filter: blur(0.5rem);
  border-bottom: 0.0625rem solid rgba(196, 167, 125, 0.15);
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.scrolled {
  position: fixed;
  box-shadow: var(--shadow-md);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  min-width: 1.65rem;
  background: linear-gradient(135deg, var(--moss), var(--sand));
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  color: var(--white);
  letter-spacing: 0.03em;
}

.nav-menu {
  display: none;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
  }

  .nav-menu a {
    color: var(--white);
    font-size: var(--fs-sm);
    font-weight: 500;
  }

  .nav-menu a:hover {
    color: var(--sand);
  }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  z-index: 1001;
  transition: color var(--transition);
}

.menu-toggle:hover {
  color: var(--sand);
}

.menu-toggle.active {
  display: none;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 18rem;
  height: 100vh;
  background: var(--ink);
  z-index: 1000;
  padding: calc(var(--header-h) + var(--space-lg)) var(--space-lg) var(--space-xl);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu .nav-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  list-style: none;
  visibility: visible;
  opacity: 1;
}

.mobile-menu .nav-menu li {
  border-bottom: 0.0625rem solid rgba(255,255,255,0.08);
}

.mobile-menu .nav-menu a {
  display: block;
  color: var(--white);
  font-size: var(--fs-sm);
  padding: var(--space-md) 0;
  visibility: visible;
  opacity: 1;
}

.mobile-menu .nav-menu a:hover {
  color: var(--sand);
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1001;
  transition: color var(--transition);
}

.mobile-menu-close:hover {
  color: var(--sand);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  background-image: url('../gallery/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(26, 35, 50, 0.88) 0%, rgba(45, 74, 62, 0.5) 50%, rgba(184, 92, 56, 0.25) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.3);
}

.hero p {
  font-size: var(--fs-sm);
  opacity: 0.95;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-figure {
  position: absolute;
  bottom: 12%;
  right: 8%;
  width: 4.5rem;
  height: 4.5rem;
  border: 0.15rem solid rgba(196, 167, 125, 0.5);
  border-radius: 50%;
  animation: float 5s ease-in-out infinite;
  z-index: 1;
}

.hero-figure::before {
  content: '';
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.4rem;
  height: 0.4rem;
  background: var(--sand);
  border-radius: 50%;
  animation: stitch-dot 3s ease-in-out infinite;
}

.hero-figure::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: 55%;
  background: rgba(184, 92, 56, 0.4);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-0.6rem) rotate(6deg); }
  66% { transform: translateY(-0.3rem) rotate(-4deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes stitch-dot {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  margin-top: var(--space-md);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--moss);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 0.125rem solid rgba(255,255,255,0.7);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--ink);
}

.section {
  padding: var(--space-2xl) var(--space-md);
  max-width: 75rem;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--ink);
  font-size: var(--fs-section);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-alt {
  background: var(--bg-light);
}

.card-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-0.125rem);
}

.card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

.card-icon {
  width: 100%;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--moss);
  font-size: 2rem;
}

.card-body {
  padding: var(--space-lg);
}

.card-body h3 {
  margin-bottom: var(--space-sm);
  color: var(--ink);
  font-size: var(--fs-card-title);
}

.card-body p {
  font-size: var(--fs-sm);
  color: var(--steel);
  margin-bottom: var(--space-md);
}

.intro-block {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-2xl);
}

.intro-block p {
  font-size: var(--fs-sm);
  color: var(--steel);
  line-height: 1.6;
}

.footer {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-inner {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer-col p,
.footer-col address {
  font-size: var(--fs-xs);
  opacity: 0.9;
  line-height: 1.6;
  font-style: normal;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: var(--white);
  font-size: var(--fs-xs);
  opacity: 0.9;
}

.footer-links a:hover {
  color: var(--sand);
  opacity: 1;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 0.0625rem solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: var(--fs-xs);
  opacity: 0.8;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  border: 0.0625rem solid var(--steel);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--moss);
}

.form-group textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.form-check input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--moss);
}

.form-check label {
  font-size: var(--fs-xs);
  color: var(--steel);
}

.contact-wrap {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 36.875rem;
}

.map-wrap iframe {
  width: 100%;
  height: 36.875rem;
  min-height: 36.875rem;
  border: none;
}

.legal-page {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) var(--space-md);
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page h1 {
  font-size: var(--fs-legal-h1);
  margin-bottom: var(--space-lg);
  color: var(--ink);
}

.legal-page h2 {
  font-size: var(--fs-legal-h2);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  font-size: var(--fs-sm);
  color: var(--steel);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.legal-page ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.home-button {
  display: inline-block;
  margin-top: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  background: var(--moss);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.home-button:hover {
  background: var(--terracotta);
  color: var(--white);
}

.table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0;
  border-radius: var(--radius-sm);
  border: 0.0625rem solid rgba(95, 99, 104, 0.2);
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.legal-page table th,
.legal-page table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 0.0625rem solid rgba(95, 99, 104, 0.2);
}

.legal-page table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--ink);
}

body.footer-at-bottom {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.footer-at-bottom main {
  flex: 1;
}

.thank-you-page,
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.thank-you-page p,
.error-page p {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  color: var(--steel);
}

.thank-you-page .btn,
.error-page .btn {
  margin-right: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.error-page .btn-secondary {
  background: transparent;
  color: var(--moss);
  border: 0.125rem solid var(--moss);
}

.error-page .btn-secondary:hover {
  background: var(--moss);
  color: var(--white);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.popup-overlay.active .popup-box {
  transform: scale(1);
}

.popup-box h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.popup-box p {
  font-size: var(--fs-sm);
  color: var(--steel);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.popup-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.popup-actions .btn {
  margin-top: 0;
  flex: 1;
}

.popup-box .btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--steel);
}

.popup-box .btn-secondary:hover {
  background: var(--steel);
  color: var(--white);
  border-color: var(--steel);
}

.voice-block {
  padding: var(--space-lg);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border-left: 0.2rem solid var(--terracotta);
}

.voice-block .voice-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: var(--space-xs);
}

.voice-block p {
  font-size: var(--fs-sm);
  color: var(--ink);
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.voice-block .voice-role {
  font-size: var(--fs-xs);
  color: var(--steel);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-md) 0;
}

.strip-inner span {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.pricing-table {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pricing-table {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--white);
  border: 0.0625rem solid rgba(95, 99, 104, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--moss);
}

.pricing-card h3 {
  font-size: var(--fs-card-title);
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.pricing-card .price {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: var(--space-md);
}

.pricing-card p {
  font-size: var(--fs-sm);
  color: var(--steel);
  margin-bottom: var(--space-lg);
}

.pricing-card .btn {
  margin-top: var(--space-md);
}

.pricing-card .small {
  font-size: var(--fs-xs);
  color: var(--steel);
  margin-bottom: var(--space-sm);
}

.pricing-card-icon {
  width: 100%;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--moss);
  font-size: 1.75rem;
}

.page-hero {
  padding: calc(var(--header-h) + var(--space-2xl)) var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--ink) 0%, var(--moss) 100%);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: var(--fs-section);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  font-size: var(--fs-sm);
  opacity: 0.95;
}

@media (max-width: 319px) {
  .section,
  .legal-page,
  .footer-inner {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .hero-figure {
    width: 3.25rem;
    height: 3.25rem;
    right: 5%;
  }
}

.contact-strip {
  background: var(--moss);
  color: var(--white);
}

.contact-strip .strip-inner span {
  color: rgba(255,255,255,0.9);
}
