:root {
  --aes-ivory: #f7f3ef;
  --aes-paper: #fcfaf7;
  --aes-sand: #ddd0c4;
  --aes-rose: #b9867d;
  --aes-terracotta: #9f6259;
  --aes-wine: #683c43;
  --aes-brown: #342a29;
  --aes-muted: #746865;
  --aes-line: rgba(104, 60, 67, .18);
  --aes-shell: min(1240px, calc(100% - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; overflow-x: hidden; background: var(--aes-ivory); color: var(--aes-brown); font-family: "Outfit", sans-serif; font-weight: 300; line-height: 1.65; }
body, button, a { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.aes-shell { width: var(--aes-shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 18px; top: -80px; padding: 10px 16px; background: var(--aes-wine); color: white; transition: top .2s; }
.skip-link:focus { top: 18px; }

.aes-demo-bar { min-height: 34px; padding: 8px max(24px, calc((100% - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #282123; color: #c8babc; font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.aes-demo-bar a { color: #eee7e3; border-bottom: 1px solid rgba(255,255,255,.28); }
.aes-header { position: sticky; z-index: 20; top: 0; background: rgba(247,243,239,.96); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); transition: border-color .25s, box-shadow .25s; }
.aes-header.scrolled { border-color: var(--aes-line); box-shadow: 0 10px 30px rgba(60,40,41,.05); }
.aes-header-inner { min-height: 92px; display: flex; align-items: center; gap: 36px; }
.aes-brand { min-width: 255px; display: flex; flex-direction: column; line-height: 1.15; }
.aes-brand strong { font-family: "Gilda Display", serif; font-size: 19px; font-weight: 400; letter-spacing: .01em; }
.aes-brand small { margin-top: 7px; color: var(--aes-muted); font-size: 8px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.aes-header nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.aes-header nav a { position: relative; color: #655b59; font-size: 12px; font-weight: 400; }
.aes-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--aes-terracotta); transition: right .22s; }
.aes-header nav a:hover::after, .aes-header nav a:focus-visible::after { right: 0; }
.aes-header-cta { flex: 0 0 auto; padding: 13px 18px; border: 1px solid var(--aes-wine); color: var(--aes-wine); font-size: 10px; font-weight: 500; letter-spacing: .03em; transition: background .2s, color .2s; }
.aes-header-cta:hover, .aes-header-cta:focus-visible { background: var(--aes-wine); color: white; }
.menu-toggle { width: 42px; height: 42px; padding: 0; display: none; position: relative; border: 1px solid var(--aes-line); background: transparent; cursor: pointer; }
.menu-toggle span { width: 18px; height: 1px; display: block; position: absolute; left: 50%; top: 50%; background: var(--aes-brown); transform-origin: center; transition: transform .2s; }
.menu-toggle span:first-child { transform: translate(-50%, -4px); }
.menu-toggle span:last-child { transform: translate(-50%, 4px); }

.aes-hero { position: relative; min-height: 710px; background: linear-gradient(90deg, var(--aes-paper) 0 61%, #eee4dd 61% 100%); }
.aes-hero-layout { min-height: 710px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); align-items: center; gap: 70px; }
.aes-hero-copy { padding: 72px 0 80px; position: relative; z-index: 2; }
.aes-eyebrow, .aes-label { margin: 0 0 24px; color: var(--aes-terracotta); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.aes-label.light { color: #d8aaa5; }
.aes-hero h1, .aes-section-intro h2, .aes-care h2, .aes-structure h2, .aes-about h2, .aes-contact h2 { margin: 0; font-family: "Gilda Display", serif; font-weight: 400; line-height: 1.02; letter-spacing: -.028em; }
.aes-hero h1 { max-width: 690px; font-size: clamp(54px, 5.1vw, 82px); }
.aes-hero h1 em { color: var(--aes-terracotta); font-weight: 400; }
.aes-hero-copy > p:not(.aes-eyebrow) { max-width: 570px; margin: 30px 0 0; color: var(--aes-muted); font-size: 17px; line-height: 1.8; }
.aes-actions { margin-top: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.aes-button { min-height: 50px; padding: 14px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; background: var(--aes-wine); border: 1px solid var(--aes-wine); color: white; font-size: 11px; font-weight: 500; letter-spacing: .03em; transition: transform .2s, background .2s; }
.aes-button:hover, .aes-button:focus-visible { background: #543037; transform: translateY(-2px); }
.aes-button.light { background: #f3eae4; border-color: #f3eae4; color: var(--aes-wine); }
.aes-button.light:hover, .aes-button.light:focus-visible { background: white; }
.aes-text-link { color: var(--aes-wine); font-size: 11px; font-weight: 500; border-bottom: 1px solid var(--aes-line); }
.aes-hero-image { margin: 52px 0; position: relative; align-self: stretch; min-height: 590px; display: flex; align-items: center; }
.aes-hero-image::before { content: ""; position: absolute; inset: 8% 8% 3% -8%; border: 1px solid rgba(159,98,89,.28); }
.aes-hero-image img { width: 100%; height: 570px; position: relative; z-index: 1; object-fit: cover; object-position: center 42%; }
.aes-hero-image figcaption { position: absolute; z-index: 2; left: -38px; bottom: 54px; padding: 17px 22px; display: flex; gap: 20px; background: rgba(252,250,247,.92); color: var(--aes-muted); font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(8px); }
.aes-hero-image figcaption span + span::before { content: "·"; margin-right: 20px; color: var(--aes-rose); }
.aes-hero-line { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--aes-wine); }

.aes-treatments { padding: 130px 0 124px; background: var(--aes-paper); }
.aes-section-intro { display: grid; grid-template-columns: .6fr 1.25fr .85fr; gap: 56px; align-items: start; }
.aes-section-intro h2 { max-width: 570px; font-size: clamp(42px, 4vw, 62px); }
.aes-section-intro > p:last-child { margin: 4px 0 0; color: var(--aes-muted); font-size: 14px; line-height: 1.8; }
.aes-treatment-list { margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 74px; }
.aes-treatment-list article { min-height: 144px; padding: 28px 0 25px; display: grid; grid-template-columns: minmax(170px, .78fr) 1.22fr; gap: 28px; border-top: 1px solid var(--aes-line); }
.aes-treatment-list article:last-child { grid-column: 1 / -1; max-width: calc(50% - 37px); }
.aes-treatment-list h3 { margin: 0; font-family: "Gilda Display", serif; font-size: 25px; font-weight: 400; line-height: 1.25; }
.aes-treatment-list p { margin: 2px 0 0; color: var(--aes-muted); font-size: 13px; line-height: 1.75; }

.aes-care { padding: 130px 0; background: var(--aes-wine); color: #f4eeea; }
.aes-care-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 110px; align-items: start; }
.aes-care-title h2 { max-width: 580px; font-size: clamp(45px, 4.5vw, 66px); }
.aes-care-title > p:last-child { max-width: 580px; margin: 30px 0 0; color: #cabbb8; font-size: 15px; line-height: 1.8; }
.aes-care-list article { padding: 30px 0; display: grid; grid-template-columns: .75fr 1fr; gap: 38px; border-top: 1px solid rgba(255,255,255,.18); }
.aes-care-list article:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.aes-care-list h3 { margin: 0; font-family: "Gilda Display", serif; font-size: 24px; font-weight: 400; line-height: 1.25; }
.aes-care-list p { margin: 0; color: #cbbdb9; font-size: 13px; line-height: 1.75; }

.aes-structure { padding: 130px 0; background: #eee4dd; }
.aes-structure-frame { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(390px, .72fr); align-items: center; }
.aes-structure-frame > img { width: 100%; height: 680px; object-fit: cover; object-position: center; }
.aes-structure-panel { margin-left: -64px; padding: 68px 65px; position: relative; z-index: 2; background: var(--aes-paper); box-shadow: 0 28px 70px rgba(62,43,42,.1); }
.aes-structure h2 { font-size: clamp(42px, 4vw, 58px); }
.aes-structure-panel > p:not(.aes-label) { margin: 27px 0 32px; color: var(--aes-muted); font-size: 14px; line-height: 1.8; }
.aes-structure ul { margin: 0; padding: 0; list-style: none; }
.aes-structure li { padding: 14px 0; border-top: 1px solid var(--aes-line); color: #665b59; font-size: 12px; }
.aes-structure li:last-child { border-bottom: 1px solid var(--aes-line); }

.aes-about { padding: 135px 0; background: var(--aes-paper); }
.aes-about-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 115px; align-items: start; }
.aes-about h2 { max-width: 650px; font-size: clamp(44px, 4.2vw, 64px); }
.aes-about-copy { padding-top: 46px; }
.aes-about-copy p { margin: 0 0 22px; color: var(--aes-muted); font-size: 14px; line-height: 1.85; }
.aes-about-copy .aes-about-lead { margin-bottom: 27px; color: var(--aes-brown); font-family: "Gilda Display", serif; font-size: 27px; line-height: 1.35; }
.aes-principles { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; }
.aes-principles span { padding: 15px 18px 15px 0; border-top: 1px solid var(--aes-line); color: var(--aes-wine); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.aes-principles span:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--aes-line); }

.aes-contact { padding: 110px 0; background: #b9786f; color: white; }
.aes-contact-panel { display: grid; grid-template-columns: 1fr .74fr; gap: 110px; align-items: end; }
.aes-contact h2 { max-width: 650px; font-size: clamp(48px, 5vw, 74px); }
.aes-contact-panel > div:last-child { padding-bottom: 5px; }
.aes-contact-panel > div:last-child p { max-width: 430px; margin: 0 0 30px; color: #f2dfdc; font-size: 14px; line-height: 1.8; }

.aes-footer { padding: 64px 0 25px; background: #241e20; color: #e7dfe0; }
.aes-footer-main { padding-bottom: 48px; display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.aes-footer .aes-brand small { color: #9d888b; }
.aes-footer-contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.aes-footer-contacts a, .aes-footer-contacts .aes-contact-item { display: inline-flex; align-items: center; gap: 9px; color: #c2b4b6; font-size: 11px; }
.aes-footer-contacts svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.aes-footer-notices { padding-top: 22px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.12); color: #88777a; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.aes-footer-notices p { margin: 0; }
.aes-footer-notices a { color: #b9aaad; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1180px) {
  :root { --aes-shell: min(100% - 56px, 1120px); }
  .aes-header-inner { gap: 24px; }
  .aes-brand { min-width: 235px; }
  .aes-brand strong { font-size: 17px; }
  .aes-header nav { gap: 19px; }
  .aes-header-cta { padding-inline: 14px; }
  .aes-hero-layout { gap: 48px; }
  .aes-section-intro { grid-template-columns: .45fr 1.15fr .8fr; gap: 38px; }
  .aes-treatment-list { column-gap: 50px; }
  .aes-treatment-list article { grid-template-columns: 1fr; gap: 12px; }
  .aes-care-layout, .aes-about-layout { gap: 70px; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 82px; }
  .aes-demo-bar { padding-inline: 28px; }
  .aes-header-inner { min-height: 78px; }
  .aes-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 28px; flex-direction: column; align-items: flex-start; gap: 22px; background: var(--aes-paper); border-top: 1px solid var(--aes-line); box-shadow: 0 20px 30px rgba(48,35,35,.08); }
  .aes-header nav.open { display: flex; }
  .aes-header nav a { font-family: "Gilda Display", serif; font-size: 23px; }
  .aes-header-cta { margin-left: auto; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
  .aes-hero { background: linear-gradient(180deg, var(--aes-paper) 0 55%, #eee4dd 55% 100%); }
  .aes-hero-layout { padding: 55px 0 75px; grid-template-columns: 1fr; }
  .aes-hero-copy { padding: 20px 0 5px; }
  .aes-hero-image { width: min(100%, 680px); min-height: 0; margin: 0 auto; }
  .aes-hero-image img { height: 650px; }
  .aes-hero-image::before { inset: 7% -3% -3% 7%; }
  .aes-hero-image figcaption { left: -18px; bottom: 30px; }
  .aes-section-intro { grid-template-columns: 1fr; gap: 18px; }
  .aes-section-intro .aes-label { margin-bottom: 4px; }
  .aes-section-intro > p:last-child { max-width: 600px; margin-top: 10px; }
  .aes-treatment-list { margin-top: 58px; }
  .aes-care-layout, .aes-about-layout { grid-template-columns: 1fr; }
  .aes-care-list { margin-top: 8px; }
  .aes-structure-frame { grid-template-columns: 1fr; }
  .aes-structure-frame > img { height: 580px; }
  .aes-structure-panel { width: calc(100% - 54px); margin: -70px auto 0; padding: 58px; }
  .aes-about-copy { max-width: 720px; padding-top: 0; }
  .aes-contact-panel { grid-template-columns: 1fr; gap: 48px; }
  .aes-footer-main { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  :root { --aes-shell: calc(100% - 36px); }
  .aes-demo-bar { min-height: 42px; padding: 8px 18px; font-size: 8px; line-height: 1.35; }
  .aes-demo-bar span { max-width: 200px; }
  .aes-header-inner { min-height: 72px; gap: 12px; }
  .aes-brand { min-width: 0; flex: 1; }
  .aes-brand strong { font-size: 15px; }
  .aes-brand small { display: none; }
  .aes-header-cta { display: none; }
  .aes-hero-layout { padding-top: 40px; gap: 38px; }
  .aes-hero-copy { padding-top: 8px; }
  .aes-eyebrow, .aes-label { margin-bottom: 18px; font-size: 9px; }
  .aes-hero h1 { font-size: clamp(46px, 14vw, 61px); }
  .aes-hero-copy > p:not(.aes-eyebrow) { margin-top: 23px; font-size: 15px; }
  .aes-actions { margin-top: 31px; align-items: flex-start; flex-direction: column; gap: 20px; }
  .aes-hero-image img { height: 480px; object-position: center 38%; }
  .aes-hero-image figcaption { left: 0; right: 0; bottom: 0; justify-content: center; gap: 10px; padding: 14px 10px; font-size: 7px; }
  .aes-hero-image figcaption span + span::before { margin-right: 10px; }
  .aes-treatments, .aes-care, .aes-structure, .aes-about { padding: 88px 0; }
  .aes-section-intro h2, .aes-care-title h2, .aes-structure h2, .aes-about h2 { font-size: 43px; }
  .aes-treatment-list { grid-template-columns: 1fr; }
  .aes-treatment-list article, .aes-treatment-list article:last-child { max-width: none; grid-column: auto; min-height: 0; padding: 25px 0; }
  .aes-treatment-list h3 { font-size: 24px; }
  .aes-care-layout, .aes-about-layout { gap: 50px; }
  .aes-care-list article { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .aes-structure-frame > img { height: 390px; }
  .aes-structure-panel { width: calc(100% - 22px); margin-top: -38px; padding: 42px 28px; }
  .aes-principles { grid-template-columns: 1fr; }
  .aes-principles span:nth-child(even) { padding-left: 0; border-left: 0; }
  .aes-principles span:last-child { border-bottom: 1px solid var(--aes-line); }
  .aes-contact { padding: 86px 0; }
  .aes-contact h2 { font-size: 50px; }
  .aes-footer { padding-top: 50px; }
  .aes-footer-contacts { align-items: flex-start; flex-direction: column; gap: 17px; }
  .aes-footer-notices { flex-direction: column; gap: 7px; }
}

@media (max-width: 390px) {
  .aes-demo-bar a { max-width: 92px; text-align: right; }
  .aes-hero h1 { font-size: 45px; }
  .aes-button { width: 100%; }
  .aes-structure-panel { padding-inline: 24px; }
}
