/* Agestate (agestate.moscow) — главная по макету NRM + AGALAROV */

/* ITC Garamond Narrow Book — Figma: TEST GaramondNarrowBookITC */
@font-face {
  font-family: 'ITC Garamond Book Narrow Cyrillic';
  src: url('/assets/fonts/itc-garamond-narrow/ITC%20Garamond%20Book%20Narrow%20Cyrillic.woff2') format('woff2'),
       url('/assets/fonts/itc-garamond-narrow/ITC%20Garamond%20Book%20Narrow%20Cyrillic.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ae-bg: #fafafa;
  --ae-text: #131315;
  --ae-muted: #989898;
  --ae-white: #ffffff;
  --ae-gold: #ffd04e;
  --ae-burgundy: #800020;
  --ae-container: 1160px;
  --ae-font-display: 'ITC Garamond Book Narrow Cyrillic', Georgia, 'Times New Roman', serif;
  --ae-font-body: 'Inter', system-ui, sans-serif;
}
h2, h3 {font-weight: 400;}

.page--agestate {
  background: var(--ae-bg);
  color: var(--ae-text);
  font-family: var(--ae-font-body);
}

html.ae-menu-open {
  overflow: hidden;
}

.page--agestate .only-desktop { display: block; }
.page--agestate .only-mobile { display: none; }

/* Header */
.ae-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 42px 0 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.ae-header.is-scrolled {
  position: fixed;
  padding: 16px 0;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(19, 19, 21, 0.08);
}
.ae-header__inner {
  max-width: var(--ae-container);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ae-header__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.ae-header__logo-icon {
  height: 53px;
  width: auto;
  display: block;
}
.ae-header__logo-wordmark {
  height: 23px;
  width: auto;
  display: block;
  transition: filter 0.25s ease;
}
.ae-header.is-scrolled .ae-header__logo-wordmark {
  filter: brightness(0);
}

/* Burger — Figma Frame 484: 3 lines, gap 4px, #D4D4D4 */
.ae-header__burger {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.ae-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #d4d4d4;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.ae-header.is-scrolled .ae-header__burger span {
  background: #989898;
}
.ae-header__burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.ae-header__burger.is-open span:nth-child(2) {
  opacity: 0;
}
.ae-header__burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Overlay menu */
.ae-menu[hidden] {
  display: none !important;
}
.ae-menu.is-open {
  display: block;
}
.ae-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.ae-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 21, 0.55);
}
.ae-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  padding: 32px 40px 40px;
  background: var(--ae-bg);
  display: flex;
  flex-direction: column;
  gap: 48px;
  box-shadow: -8px 0 40px rgba(19, 19, 21, 0.12);
}
.ae-menu__close {
  align-self: flex-end;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: var(--ae-white);
  cursor: pointer;
}
.ae-menu__close::before,
.ae-menu__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ae-text);
  transform-origin: center;
}
.ae-menu__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.ae-menu__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ae-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ae-menu__link {
  font-family: var(--ae-font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ae-text);
  text-decoration: none;
}
.ae-menu__link:hover { color: var(--ae-burgundy); }
.ae-menu__contacts {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ae-menu__icon img {
  width: 24px;
  height: 24px;
  display: block;
}
.ae-menu__phone {
  color: var(--ae-text);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.04em;
}

/* Hero */
.ae-hero {
  position: relative;
  min-height: 823px;
  overflow: hidden;
  color: var(--ae-white);
}
.ae-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ae-hero__media.is-fading .ae-hero__layer--bg {
  opacity: 0.35;
  transition: opacity 0.35s ease;
}
.ae-hero__layer--bg.ae-hero__layer--offset {
  background-size: 111% auto;
  background-position: 48% -11%;
}
.ae-hero__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ae-hero__layer--bg {
  z-index: 0;
  transition: opacity 0.35s ease;
}
.ae-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 12, 28, 0.15) 0%, rgba(11, 12, 28, 0.55) 100%);
  pointer-events: none;
}
.ae-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  margin: 0 auto;
  min-height: 823px;
  padding: 120px 330px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.ae-hero__brand-left {
  font-family: var(--ae-font-display);
  font-size: clamp(48px, 5.2vw, 100px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ae-gold);
  margin: 65px 0 0;
}
.ae-hero__brand-right {
  font-family: var(--ae-font-display);
  font-size: clamp(48px, 5.2vw, 100px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: right;
  color: var(--ae-white);
  margin: 65px 0 0;
}
.ae-hero__card {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  max-width: 300px;
  margin-bottom: 40px;
  position: relative;
}
.ae-hero__card-bar {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  height: 26px;
  background: var(--ae-burgundy);
  border-radius: 2px;
  transition: width 0.35s ease;
}
.ae-hero__card-text {
  margin: 0;
  padding: 48px 20px 24px;
  font-family: var(--ae-font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.06em;
  background: rgba(19, 19, 21, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 4px;
}
.ae-hero__card-text em {
  font-family: var(--ae-font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--ae-burgundy);
  padding: 0 4px;
}
.ae-hero__nav {
  position: absolute;
  left: 80px;
  bottom: 80px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.ae-hero__nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--ae-white);
  background: transparent;
  color: var(--ae-white);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.ae-hero__nav-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* Section common */
.ae-section {
  padding: 80px 16px;
}
.ae-section__inner {
  max-width: var(--ae-container);
  margin: 0 auto;
}
.ae-section__title {
  font-family: var(--ae-font-display);
  font-size: clamp(40px, 4.2vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 45px;
  color: var(--ae-text);
}
.ae-section__title .gold { color: var(--ae-burgundy); font-style: italic; }

/* Selection tiles */
.ae-selections__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ae-selections__row {
  display: flex;
  gap: 20px;
}
.ae-tile {
  position: relative;
  display: block;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--ae-white);
  min-height: 275px;
  flex: 1;
}
.ae-tile--wide { flex: 1.52; max-width: 688px; }
.ae-tile--narrow { flex: 1; max-width: 452px; }
.ae-tile__img {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  transition: transform 0.4s ease;
}
.ae-tile:hover .ae-tile__img { transform: scale(1.03); }
.ae-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 19, 21, 0) 30%, rgba(19, 19, 21, 0.65) 100%);
}
.ae-tile__title {
  position: absolute;
  left: 24px;
  bottom: 24px;
  margin: 0;
  font-family: var(--ae-font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
}
.ae-tile__arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ae-white);
  display: grid;
  place-items: center;
  font-size: 18px;
}

/* Gallery — Figma Frame 459: rows of 2, last row single, height 400px */
.ae-gallery {
  padding-left: 20px;
  padding-right: 20px;
}
.ae-gallery__inner {
  max-width: 1880px;
}
.ae-gallery .ae-section__title {
  margin-bottom: 75px;
  letter-spacing: -0.04em;
}
.ae-gallery__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ae-gallery__row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}
.ae-gallery__item {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 400px;
  overflow: hidden;
  background: #989898;
}
.ae-gallery__row--single .ae-gallery__item {
  flex: 1 1 100%;
}
.ae-gallery__img {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
}
.ae-gallery__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  background: linear-gradient(180deg, rgba(19, 19, 22, 0) 0%, rgba(19, 19, 22, 0.75) 100%);
}
.ae-gallery__label span {
  font-family: var(--ae-font-display);
  font-size: 32px;
  color: var(--ae-white);
  letter-spacing: -0.02em;
}

/* Why — Figma: title + horizontal cards over bg photo */
.ae-why {
  position: relative;
  padding: 80px 16px 100px;
  overflow: hidden;
}
.ae-why__bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat url('/assets/img/agestate/why-bg.png');
  z-index: 0;
}
.ae-why__inner {
  position: relative;
  z-index: 1;
  max-width: var(--ae-container);
  margin: 0 auto;
}
.ae-why__title {
  font-family: var(--ae-font-display);
  font-size: clamp(40px, 4.2vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: left;
  margin: 0 0 64px;
  color: var(--ae-text);
}
.ae-why__title em {
  font-style: italic;
  color: var(--ae-text);
}
.ae-why__slider {
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.ae-why__slider::-webkit-scrollbar {
  display: none;
}
.ae-why__track {
  display: flex;
  gap: 20px;
  width: max-content;
}
.ae-why__slide {
  flex: 0 0 570px;
  width: 570px;
  min-height: 316px;
  box-sizing: border-box;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.75);
  backdrop-filter: blur(4px);
  scroll-snap-align: start;
}
.ae-why__num {
  font-family: var(--ae-font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ae-burgundy);
  margin: 0;
}
.ae-why__slide-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ae-why__slide-title {
  font-family: var(--ae-font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ae-text);
}
.ae-why__slide-text {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.06em;
  color: var(--ae-text);
}

/* Lead form — Figma Frame 460 */
.ae-lead-section {
  padding: 80px 16px 100px;
  background: var(--ae-bg);
}
.ae-lead-section__inner {
  max-width: var(--ae-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.ae-lead {
  flex: 1;
  max-width: 683px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.ae-lead__copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 635px;
}
.ae-lead__title {
  font-family: var(--ae-font-display);
  font-size: clamp(32px, 3.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ae-text);
}
.ae-lead__title em {
  font-style: italic;
  color: var(--ae-burgundy);
}
.ae-lead__subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.06em;
  color: var(--ae-text);
}
.ae-lead__form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
.ae-lead__input {
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 20px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #f3f3f3;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.06em;
  font-family: var(--ae-font-body);
  color: var(--ae-text);
}
.ae-lead__input::placeholder {
  color: #a3a3a3;
}
.ae-lead__btn {
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 20px;
  border: none;
  border-radius: 30px;
  background: var(--ae-burgundy);
  color: var(--ae-white);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.06em;
  cursor: pointer;
  white-space: nowrap;
}
.ae-lead__visual {
  flex-shrink: 0;
  width: 323px;
}
.ae-lead__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 398px;
  object-fit: contain;
}

.ae-header--solid {
  position: relative;
  padding: 42px 0 20px;
  background: var(--ae-bg);
}
.ae-header--solid .ae-header__logo-wordmark {
  filter: brightness(0);
}
.ae-header--solid .ae-header__burger span {
  background: #989898;
}

/* Catalog page */
.page--agestate-catalog {
  background: var(--ae-bg);
}
.ae-search--catalog {
  padding-top: 24px;
}
.ae-search--catalog .ae-section__title {
  margin-bottom: 60px;
}
.ae-catalog {
  padding: 0 16px 80px;
}
.ae-catalog__toolbar {
  margin: 40px 0;
}
.ae-catalog__sort {
  display: grid;
  gap: 6px;
}
.ae-catalog__sort-label {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--ae-muted);
}
.ae-catalog__sort-select {
  width: min(100%, 373px);
  height: 54px;
  padding: 0 40px 0 18px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: var(--ae-white);
  font-family: var(--ae-font-body);
  font-size: 18px;
  color: var(--ae-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23131315' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.ae-catalog__loading,
.ae-catalog__error {
  text-align: center;
  padding: 40px 16px;
  font-size: 16px;
  color: var(--ae-muted);
}
.ae-catalog__error {
  color: var(--ae-burgundy);
}
.page--agestate-catalog .catalog-grid__list {
  max-width: none;
  margin: 0;
  padding: 0;
}
.page--agestate-catalog .catalog-card {
  border-radius: 0;
}
.page--agestate-catalog .catalog-card__title {
  font-family: var(--ae-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.page--agestate-catalog .catalog-card__price {
  font-family: var(--ae-font-display);
  font-weight: 400;
}
.page--agestate-catalog .catalog-pagination {
  margin-top: 32px;
}


/* Full-width feature banner (golf course) */
.ae-feature {
  width: 100%;
  background: var(--ae-bg);
}
.ae-feature__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ae-search {
  margin-bottom:30px;
}
.ae-search__form {
  width: 100%;
}
.ae-search__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ae-search__row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.ae-search__row--bottom .ae-search__btn {
  flex: 1;
  min-width: 140px;
}
.ae-search .filter-group {
  flex: 1;
  min-width: 0;
}
.ae-search .filter-group--area {
  flex: 1.2;
}
.ae-search .filter-group__label {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--ae-muted);
  margin-bottom: 6px;
}
.ae-search .filter-group__dropdown {
  width: 100%;
  height: 54px;
  padding: 0 40px 0 18px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: var(--ae-white);
  font-family: var(--ae-font-body);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ae-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23131315' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

/* Bedrooms stepper */
.ae-search__stepper {
  display: flex;
  align-items: stretch;
  height: 54px;
  border: 1px solid #e0e0e0;
  background: var(--ae-white);
}
.ae-search__stepper-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 18px;
  border: none;
  background: transparent;
  font-family: var(--ae-font-body);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ae-text);
  -moz-appearance: textfield;
}
.ae-search__stepper-input::-webkit-outer-spin-button,
.ae-search__stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ae-search__stepper-controls {
  display: flex;
  flex-direction: column;
  width: 54px;
  flex-shrink: 0;
  border-left: 1px solid #e0e0e0;
}
.ae-search__stepper-btn {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: var(--ae-white);
  font-family: var(--ae-font-body);
  font-size: 18px;
  line-height: 1;
  color: var(--ae-text);
  cursor: pointer;
}
.ae-search__stepper-btn + .ae-search__stepper-btn {
  border-top: 1px solid #e0e0e0;
}
.ae-search__stepper-btn:hover:not(:disabled) {
  background: #f5f5f5;
}
.ae-search__stepper-btn:disabled {
  color: #c8c8c8;
  cursor: default;
}

/* Area range — single field, two halves */
.ae-search__area {
  display: flex;
  height: 54px;
  border: 1px solid #e0e0e0;
  background: var(--ae-white);
}
.ae-search__area-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 18px;
  margin: 0;
}
.ae-search__area-field + .ae-search__area-field {
  border-left: 1px solid #e0e0e0;
}
.ae-search__area-hint {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #c8c8c8;
}
.ae-search__area-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--ae-font-body);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ae-text);
  -moz-appearance: textfield;
}
.ae-search__area-field input::-webkit-outer-spin-button,
.ae-search__area-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ae-search__area-field input::placeholder {
  color: var(--ae-text);
  opacity: 1;
}

.ae-search__btn {
  height: 54px;
  padding: 0 32px;
  border: none;
  border-radius: 30px;
  background: var(--ae-burgundy);
  color: var(--ae-white);
  font-family: var(--ae-font-body);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

/* Footer */
.ae-footer {
  background: var(--ae-text);
  color: var(--ae-white);
  padding: 48px 16px 32px;
}
.ae-footer__inner {
  max-width: var(--ae-container);
  margin: 0 auto;
}
.ae-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ae-footer__logo img { height: 48px; filter: brightness(0) invert(1); }
.ae-footer__contacts { text-align: right; }
.ae-footer__address {
  margin-bottom: 12px;
  font-size: 14px;
}
.ae-footer__address a { color: var(--ae-white); text-decoration: none; }
.ae-footer__socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.ae-footer__phone { color: var(--ae-white); text-decoration: none; font-size: 16px; }
.ae-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}
.ae-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.ae-footer__copy {
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-size: 10px;
}
.ae-footer__bottom a { color: rgba(255, 255, 255, 0.6); }

/* Responsive */
@media (max-width: 1024px) {
  .ae-hero__inner {
    padding: 100px 40px 100px;
    grid-template-columns: 1fr;
  }
  .ae-hero__brand-right { text-align: left; }
  .ae-hero__card { grid-column: 1; justify-self: start; }
  .ae-selections__row { flex-direction: column; }
  .ae-tile--wide, .ae-tile--narrow { max-width: none; }
  .ae-gallery__row { flex-direction: column; }
  .ae-gallery__item { height: 320px; }
  .ae-why__slide {
    flex-basis: min(570px, calc(100vw - 32px));
    width: min(570px, calc(100vw - 32px));
  }
  .ae-lead-section__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .ae-lead__visual {
    width: min(100%, 323px);
    margin: 0 auto;
  }
  .ae-lead__form { flex-direction: column; }
  .ae-search__row { flex-direction: column; align-items: stretch; }
  .ae-search__row--bottom .ae-search__btn { width: 100%; }
}

@media (max-width: 768px) {
  .page--agestate .only-desktop { display: none; }
  .page--agestate .only-mobile { display: block; }
  .ae-header { padding-top: 24px; }
  .ae-header.is-scrolled { padding: 12px 0; }
  .ae-header__logo-icon { height: 40px; }
  .ae-header__logo-wordmark { height: 18px; }
  .ae-menu__panel { width: 100%; padding: 24px 20px 32px; }
  .ae-hero { min-height: 640px; }
  .ae-hero__inner { min-height: 640px; padding: 90px 20px 80px; }
  .ae-hero__nav { left: 20px; bottom: 24px; }
  .ae-section { padding: 48px 16px; }
}
