:root {
  color-scheme: light;
  --ink: #28332b;
  --muted: #59645c;
  --sage: #58704f;
  --line: #dfe5da;
  --paper: #fff;
  --tint: #f7f8f4;
  --warm: #fbf7f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, blockquote { margin: 0; }
body { min-width: 0; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, li, dt, dd { overflow-wrap: anywhere; }
h1, h2, h3, h4, p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.25; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
[hidden] { display: none !important; }
:where(a, button):focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }
.skip-link { position: absolute; top: 8px; left: 12px; z-index: 20; padding: 10px 16px; background: #fff; border: 2px solid var(--sage); border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
section[id] { scroll-margin-top: 6rem; }
.container { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 64px; }
.section-tint { background: var(--tint); }
.section-title { margin-bottom: 36px; text-align: center; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.section-title::after { content: ""; display: block; width: 56px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, #92a486, #d6b59e, transparent); transform-origin: center; }
.section-intro { max-width: 720px; margin: -12px auto 36px; text-align: center; color: var(--muted); }
.section-action { margin: 36px 0 0; text-align: center; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: #fff; }
html:not(.js) .site-header { position: static; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 14px; }
.header-inner > .brand { min-width: 0; max-width: calc(100% - 56px); }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.primary-navigation { display: flex; flex-wrap: wrap; gap: 8px 20px; width: 100%; padding-block: 8px 2px; }
.primary-navigation a { padding-block: 4px; font-size: 0.95rem; text-decoration: none; }
.primary-navigation a:hover, .footer-navigation a:hover { color: var(--sage); text-decoration: underline; }
.menu-toggle { display: none; flex-shrink: 0; width: 44px; height: 44px; margin-left: auto; padding: 7px 11px; border: 0; border-radius: 8px; background: var(--tint); }
.menu-toggle span { display: block; width: 22px; height: 2px; margin-block: 5px; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
.menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
.js .menu-toggle { display: block; }
.js .site-header:not(.menu-open) .primary-navigation { display: none; }
.js .menu-open .primary-navigation { max-height: calc(100vh - 7rem); max-height: calc(100svh - 7rem); overflow-y: auto; overscroll-behavior: contain; }

.hero { padding-block: 64px; background: linear-gradient(125deg, #f4f7f0, #fffaf6 60%, #f7e7df); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 32px; }
.hero h1 { max-width: 20ch; margin-bottom: 24px; font-size: clamp(2.2rem, 4.5vw, 3.9rem); line-height: 1.15; letter-spacing: -0.025em; }
.hero h1 span { color: var(--sage); }
.hero-description { max-width: 56ch; margin-bottom: 28px; color: var(--muted); font-size: 1.1rem; }
.hero-art { display: flex; align-items: center; justify-content: center; min-width: 0; padding-block: 24px; }
.hero-art img { width: 100%; max-width: 600px; }
.button, .button-secondary { display: inline-flex; justify-content: center; align-items: center; min-width: 0; max-width: 100%; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; text-align: center; text-decoration: none; overflow-wrap: anywhere; transition: background-color 160ms ease, box-shadow 160ms ease; }
.button { color: #293629; background: linear-gradient(100deg, #dce5d5, #f2cfbe); }
.button:hover { box-shadow: 0 4px 16px #536a4126; }
.button-secondary { border-color: var(--line); background: #fff; }
.button-secondary:hover { background: var(--tint); }

.about-grid, .credentials-grid, .services-grid, .methods-grid, .contact-grid, .footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.about-grid { align-items: center; gap: 36px; }
.about-copy { min-width: 0; }
.portrait { width: 100%; max-width: 360px; justify-self: center; border-radius: 24px; overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 7 / 9; object-fit: cover; border-radius: 24px; }
.about-copy p { color: var(--muted); }
.credentials-grid { margin-top: 28px; gap: 20px; }
.credential { min-width: 0; padding-top: 20px; border-top: 1px solid #cad4c3; }
.credential p, .credential ul { margin-bottom: 0; }
.credential ul { margin-top: 12px; color: var(--muted); }
.service { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.service h3 { margin: 0; font-size: 1.3rem; }
.service p { margin: 12px 0 0; color: var(--muted); }
.service p:empty { display: none; }
.method { display: flex; gap: 16px; min-width: 0; padding-block: 24px; border-top: 1px solid var(--line); }
.method > div { min-width: 0; }
.method-number { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e6ecdf; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.method h3 { margin-bottom: 12px; font-size: 1.3rem; }
.method p { margin: 0; color: var(--muted); }
.method-slogan { margin: 36px 0 0; padding: 28px 24px; border-radius: 18px; background: linear-gradient(110deg, #e5ebdf, #f4e3d8, #f7f1e8); font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-style: italic; text-align: center; }

.cases-list { display: grid; gap: 24px; }
.case { min-width: 0; padding: 24px; border: 1px solid #ece4d8; border-radius: 20px; background: var(--warm); }
.case h3 { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #e6ddd0; }
.case-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.case-details dt { font-weight: 600; }
.case-details dd { margin: 0 0 16px; color: var(--muted); }
.case-details dd:last-child { margin-bottom: 0; }
.testimonials-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 880px; margin-inline: auto; }
.testimonial { min-width: 0; padding: 24px; border-left: 3px solid #bcccb0; background: #fafbf8; }
.testimonial blockquote p { margin: 0; }
.testimonial footer { margin-top: 20px; color: var(--sage); font-weight: 600; }
.testimonial-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.review-arrow { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.4rem; }
.review-arrow:hover { background: #e6ecdf; }
.review-status { min-width: 4ch; color: var(--muted); text-align: center; }
.review-dots { display: flex; align-items: center; justify-content: center; }
.review-dots button { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.review-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ccd3c7; }
.review-dots button[aria-current="true"]::after, .review-dots button[aria-pressed="true"]::after { background: var(--sage); }

.contact-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.contact-panel h3 { margin-bottom: 24px; }
.contact-details { margin: 0; }
.contact-details dt { margin-bottom: 4px; color: var(--muted); font-size: 0.95rem; }
.contact-details dd { margin: 0 0 20px; font-size: 1.1rem; }
.privacy-note { margin: 24px 0 0; color: var(--muted); font-size: 0.95rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #e8eedf; text-decoration: none; }
.social-link:last-child { background: #f3e5dc; }
.social-link:hover { text-decoration: underline; }

.site-footer { padding-top: 48px; background: linear-gradient(110deg, #e6ecdf, #f4e3d8, #f7f1e8); }
.footer-grid { gap: 32px; }
.site-footer .brand { margin-bottom: 16px; font-size: 1.5rem; }
.site-footer h3 { margin-bottom: 16px; font-size: 1.2rem; }
.site-footer p { color: var(--muted); }
.footer-navigation a { display: block; width: fit-content; margin-block: 8px; text-decoration: none; }
.footer-contacts a { display: inline-block; }
.footer-contacts p { margin-bottom: 10px; }
.copyright { margin: 36px 0 0; padding-block: 24px; border-top: 1px solid #cbd5c4; font-size: 0.875rem; text-align: center; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #cbd5c4; }
.footer-legal a, .text-button { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; padding-block: 8px; }
.text-button { max-width: 100%; padding-inline: 0; border: 0; background: transparent; font: inherit; line-height: inherit; text-align: left; text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.text-button:hover { color: var(--sage); }

.legal-document { max-width: 900px; }
.legal-document > h1 { margin-bottom: 20px; font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-document h2 { margin: 32px 0 16px; font-size: 1.5rem; }
.legal-document h3 { margin: 24px 0 12px; font-size: 1.2rem; }
.legal-document section { min-width: 0; }
.legal-document p, .legal-document li, .legal-document dd { color: var(--muted); }
.legal-document ul, .legal-document ol { padding-left: 1.35rem; }
.legal-document dt { margin-top: 16px; font-weight: 600; }
.legal-document dd { margin: 4px 0 16px; }
.legal-document code { overflow-wrap: anywhere; }
.legal-date { font-size: 0.95rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; }

.cookie-banner { position: fixed; z-index: 30; right: 12px; bottom: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 12px; max-width: 1152px; margin-inline: auto; padding: 16px; border: 1px solid #cbd5c4; border-radius: 18px; background: #fff; box-shadow: 0 6px 32px #28332b26; }
.cookie-banner__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.cookie-copy { min-width: 0; }
.cookie-copy h2 { margin-bottom: 8px; font-size: 1.25rem; }
.cookie-copy p { margin-bottom: 8px; font-size: 0.95rem; }
.cookie-copy p:last-child { margin-bottom: 0; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.cookie-actions .button, .cookie-actions .button-secondary { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; line-height: 1.3; }
.cookie-status { color: var(--muted); }
.cookie-banner--flow { position: static; width: calc(100% - 16px); margin: 16px auto; }

@media (min-width: 36rem) {
  .container { padding-inline: 32px; }
  .credentials-grid, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .section { padding-block: 80px; }
  .about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; }
  .credentials-grid { grid-template-columns: minmax(0, 1fr); }
  .methods-grid, .contact-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-details { grid-template-columns: 100px minmax(0, 1fr); gap: 14px 18px; }
  .case-details dd { margin: 0; }
  .cookie-banner { right: 24px; bottom: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 24px; padding: 24px; }
  .cookie-banner__inner { grid-template-columns: minmax(0, 1fr) minmax(200px, 0.5fr); align-items: center; gap: 24px; }
  .cookie-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 64rem) {
  .header-inner { flex-wrap: nowrap; gap: 24px; padding-block: 16px; }
  .primary-navigation, .js .site-header:not(.menu-open) .primary-navigation { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; min-width: 0; width: auto; margin-left: auto; padding: 0; }
  .js .menu-open .primary-navigation { max-height: none; overflow: visible; }
  .primary-navigation a { white-space: nowrap; font-size: 0.875rem; }
  .menu-toggle, .js .menu-toggle { display: none; }
  .hero { padding-block: 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; }
  .hero-art { padding: 0; }
  .credentials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid, .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr); gap: 32px; padding: 32px; }
  .case h3 { margin: 0; padding: 0 28px 0 0; border-bottom: 0; border-right: 1px solid #e6ddd0; }
}

@media (max-width: 35.99rem) and (max-height: 40rem) {
  .hero { padding-block: 40px; }
}

@media (max-height: 32rem) {
  .site-header { position: static; }
  .hero { padding-block: 40px; }
  .cookie-banner { right: 8px; bottom: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); left: 8px; padding: 12px; }
  .cookie-banner__inner { gap: 8px; }
  .cookie-copy h2 { margin-bottom: 6px; font-size: 1.1rem; }
  .cookie-copy p { margin-bottom: 6px; font-size: 0.875rem; line-height: 1.4; }
  .cookie-actions .button, .cookie-actions .button-secondary { padding-block: 8px; font-size: 0.875rem; }
}

@media (max-height: 17rem) {
  .cookie-banner { position: static; width: calc(100% - 16px); margin: 16px auto; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes soft-arrive {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes line-arrive {
    from { opacity: 0.35; transform: scaleX(0.25); }
    to { opacity: 1; transform: scaleX(1); }
  }
  @keyframes feather-flight {
    0%, 20%, 48%, 100% { transform: translate(0, 0) rotate(0); }
    24% { transform: translate(0, 3px) rotate(1deg); }
    30% { transform: translate(var(--feather-sway), calc(var(--feather-lift) * -0.65)) rotate(calc(var(--feather-tilt) * -1)); }
    36% { transform: translate(calc(var(--feather-sway) * -0.3), calc(var(--feather-lift) * -1)) rotate(calc(var(--feather-tilt) * -0.5)); }
    42% { transform: translate(calc(var(--feather-sway) * -1), calc(var(--feather-lift) * -0.4)) rotate(var(--feather-tilt)); }
    46% { transform: translate(calc(var(--feather-sway) * -0.3), 2px) rotate(calc(var(--feather-tilt) * 0.25)); }
  }
  @keyframes menu-arrive {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .motion-enabled .hero-copy h1,
  .motion-enabled .hero-description,
  .motion-enabled .hero-copy .button,
  .motion-enabled .hero-art { animation: soft-arrive 640ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .motion-enabled .hero-description { animation-delay: 100ms; }
  .motion-enabled .hero-copy .button { animation-delay: 180ms; }
  .motion-enabled .hero-art { animation-delay: 240ms; }
  .motion-enabled .hero-art img { --feather-sway: 8px; --feather-lift: 22px; --feather-tilt: 3deg; animation: feather-flight 22s ease-in-out infinite; animation-play-state: paused; transform-origin: center; pointer-events: none; }
  .motion-enabled:not(.motion-page-hidden) .hero.motion-in-view .hero-art img { animation-play-state: running; }
  .motion-enabled .reveal-item.is-revealed { animation: soft-arrive 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) backwards; }
  .motion-enabled .section-title.is-revealed::after { animation: line-arrive 580ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) backwards; }
  .motion-enabled .testimonial:not([hidden]) { animation: soft-arrive 380ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .motion-enabled .button,
  .motion-enabled .button-secondary,
  .motion-enabled .review-arrow,
  .motion-enabled .social-link { transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
  .motion-enabled .service,
  .motion-enabled .method,
  .motion-enabled .case,
  .motion-enabled .contact-panel { transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease; }
  .motion-enabled .portrait img { transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1); }
  .motion-enabled .method-number { transition: transform 240ms ease, background-color 200ms ease; }
  .motion-enabled .review-dots button::after { transition: transform 180ms ease, background-color 180ms ease; }
  .motion-enabled .review-dots button[aria-current="true"]::after { transform: scale(1.25); }
  .motion-enabled .primary-navigation a,
  .motion-enabled .footer-navigation a { position: relative; transition: color 180ms ease; }
  .motion-enabled .primary-navigation a::after,
  .motion-enabled .footer-navigation a::after { content: ""; position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 200ms ease; }
  .motion-enabled .primary-navigation a:focus-visible::after,
  .motion-enabled .footer-navigation a:focus-visible::after { transform: scaleX(1); }
  .motion-enabled .button:focus-visible,
  .motion-enabled .button-secondary:focus-visible,
  .motion-enabled .review-arrow:focus-visible,
  .motion-enabled .social-link:focus-visible { border-color: var(--sage); }
  .motion-enabled .button:active,
  .motion-enabled .button-secondary:active,
  .motion-enabled .social-link:active { transform: translateY(0) scale(0.985); }
  .motion-enabled .review-arrow:active { transform: scale(0.95); }
  .motion-enabled .cookie-actions .button,
  .motion-enabled .cookie-actions .button-secondary { transition-duration: 140ms; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 64rem) and (min-height: 32.01rem) {
  .motion-enabled .hero-art img { --feather-sway: 16px; --feather-lift: 48px; --feather-tilt: 6deg; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 63.99rem) {
  .motion-enabled .site-header.menu-open .primary-navigation { animation: menu-arrive 220ms ease-out backwards; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .motion-enabled .button:hover,
  .motion-enabled .button-secondary:hover,
  .motion-enabled .social-link:hover,
  .motion-enabled .review-arrow:hover { transform: translateY(-2px); }
  .motion-enabled .service:hover,
  .motion-enabled .method:hover,
  .motion-enabled .case:hover,
  .motion-enabled .contact-panel:hover { transform: translateY(-3px); border-color: #a4b599; }
  .motion-enabled .portrait:hover img { transform: scale(1.025); }
  .motion-enabled .method:hover .method-number { transform: rotate(-3deg); background: #dce6d3; }
  .motion-enabled .review-dots button:hover::after { transform: scale(1.4); }
  .motion-enabled .primary-navigation a:hover,
  .motion-enabled .footer-navigation a:hover { text-decoration: none; }
  .motion-enabled .primary-navigation a:hover::after,
  .motion-enabled .footer-navigation a:hover::after { transform: scaleX(1); }
  .motion-enabled .cookie-actions .button:hover,
  .motion-enabled .cookie-actions .button-secondary:hover { transform: translateY(-1px); }
  .motion-enabled .button:active,
  .motion-enabled .button-secondary:active,
  .motion-enabled .social-link:active { transform: translateY(0) scale(0.985); }
  .motion-enabled .review-arrow:active { transform: scale(0.95); }
  .motion-enabled .cookie-actions .button:active,
  .motion-enabled .cookie-actions .button-secondary:active { transform: translateY(0) scale(0.985); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .motion-enabled .hero-copy h1,
  .motion-enabled .hero-description,
  .motion-enabled .hero-art,
  .motion-enabled .hero-art img,
  .motion-enabled .reveal-item,
  .motion-enabled .testimonial { opacity: 1 !important; transform: none !important; }
  .motion-enabled .button,
  .motion-enabled .button-secondary,
  .motion-enabled .service,
  .motion-enabled .method,
  .motion-enabled .case,
  .motion-enabled .contact-panel,
  .motion-enabled .portrait img,
  .motion-enabled .method-number,
  .motion-enabled .primary-navigation,
  .motion-enabled .social-link,
  .motion-enabled .review-arrow,
  .motion-enabled .review-dots button::after,
  .motion-enabled .section-title::after { transform: none !important; }
}

@media print {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .site-header { position: static; }
  .cookie-banner, .menu-toggle, .testimonial-controls { display: none !important; }
  .hero-copy h1, .hero-description, .hero-art, .hero-art img, .reveal-item, .testimonial { opacity: 1 !important; transform: none !important; }
  .portrait img, .section-title::after, .button, .button-secondary, .service, .method, .case, .contact-panel, .method-number, .social-link, .review-arrow, .review-dots button::after, .primary-navigation { transform: none !important; }
}
