/* Golden House TWA — PIK Style */
/* Минималистичный, архитектурный, чистый */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  
  --accent: #FF4D00;
  --success: #00C853;
  --warning: #FFB300;
  
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', sans-serif;
  
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 200ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.4;
  min-height: 100vh;
  min-height: 100dvh;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
input, textarea { font-family: inherit; border: none; outline: none; }
ul, ol { list-style: none; }

/* App Container */
#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 300ms var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header — ПИК стиль: минимализм */
.header {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  border-radius: 50%;
  transition: background var(--duration) var(--ease);
}

.header__back:active { background: var(--gray-100); }

.header__center {
  flex: 1;
  text-align: center;
}

.header__logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header__title {
  font-size: 17px;
  font-weight: 600;
}

.header__spacer { width: 40px; }

/* Content */
.content {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Welcome */
.welcome {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* Hero Section — главный экран в стиле ПИК */
.hero {
  margin: -24px -16px 32px;
  padding: 40px 16px;
  background: var(--black);
  color: var(--white);
}

.hero__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: 15px;
  color: var(--gray-400);
  font-weight: 400;
}

/* Menu Grid — в стиле ПИК: простые карточки */
.menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.menu__item {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  background: var(--gray-50);
  border-radius: 16px;
  text-align: left;
  transition: all var(--duration) var(--ease);
  animation: slideUp 400ms var(--ease) backwards;
}

.menu__item:nth-child(1) { animation-delay: 0ms; }
.menu__item:nth-child(2) { animation-delay: 50ms; }
.menu__item:nth-child(3) { animation-delay: 100ms; }
.menu__item:nth-child(4) { animation-delay: 150ms; }
.menu__item:nth-child(5) { animation-delay: 200ms; }
.menu__item:nth-child(6) { animation-delay: 250ms; }

.menu__item:active {
  transform: scale(0.98);
  background: var(--gray-100);
}

.menu__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--black);
}

.menu__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--black);
}

.menu__subtitle {
  font-size: 13px;
  color: var(--gray-600);
}

/* Projects List — карточки проектов */
.projects {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project {
  display: block;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-align: left;
  animation: slideUp 400ms var(--ease) backwards;
  transition: transform var(--duration) var(--ease);
}

.project:active { transform: scale(0.98); }

.project__image {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project__emoji {
  font-size: 64px;
  opacity: 0.9;
}

.project__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  color: var(--black);
}

.project__badge--done { background: var(--success); color: var(--white); }
.project__badge--building { background: var(--warning); color: var(--black); }

.project__body { padding: 16px; }

.project__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.project__class {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  background: var(--gray-100);
  border-radius: 4px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.project__type {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.project__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.project__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-600);
}

.project__location svg { width: 14px; height: 14px; }

.project__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

/* Detail Page */
.detail__hero {
  position: relative;
  height: 240px;
  margin: -24px -16px 24px;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail__emoji { font-size: 80px; }

.detail__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
}

.detail__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.detail__subtitle {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.detail__stat {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
}

.detail__stat-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail__stat-value {
  font-size: 16px;
  font-weight: 600;
}

.detail__section {
  margin-bottom: 24px;
}

.detail__section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail__list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}

.detail__list-item svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* Filter Section */
.filter {
  margin-bottom: 24px;
}

.filter__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.filter__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter__btn {
  padding: 10px 16px;
  background: var(--gray-50);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  transition: all var(--duration) var(--ease);
}

.filter__btn:active { transform: scale(0.95); }

.filter__btn--active {
  background: var(--black);
  color: var(--white);
}

/* About Section */
.about__hero {
  text-align: center;
  padding: 32px 0;
  margin-bottom: 24px;
}

.about__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.about__tagline {
  font-size: 15px;
  color: var(--gray-500);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.about__stat {
  padding: 20px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  text-align: center;
  animation: slideUp 400ms var(--ease) backwards;
}

.about__stat:nth-child(1) { animation-delay: 0ms; }
.about__stat:nth-child(2) { animation-delay: 50ms; }
.about__stat:nth-child(3) { animation-delay: 100ms; }
.about__stat:nth-child(4) { animation-delay: 150ms; }

.about__stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about__stat-label {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about__text {
  margin-bottom: 24px;
}

.about__text p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Construction Progress */
.construction {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.construction__item {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 16px;
  animation: slideUp 400ms var(--ease) backwards;
}

.construction__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.construction__name {
  font-size: 16px;
  font-weight: 600;
}

.construction__date {
  font-size: 12px;
  color: var(--gray-500);
}

.construction__status {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.progress {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress__bar {
  height: 100%;
  background: var(--black);
  border-radius: 3px;
  transition: width 800ms var(--ease);
}

.progress__text {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

/* Promos */
.promos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo {
  padding: 20px;
  background: var(--gray-50);
  border-radius: 16px;
  position: relative;
  animation: slideUp 400ms var(--ease) backwards;
}

.promo__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--white);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}

.promo__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 80px;
}

.promo__desc {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.5;
}

.promo__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo__date {
  font-size: 12px;
  color: var(--gray-500);
}

.promo__btn {
  padding: 10px 20px;
  background: var(--black);
  color: var(--white);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}

/* Contact Form */
.contact__context {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 24px;
}

.contact__context-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact__context-value {
  font-size: 16px;
  font-weight: 600;
}

.form { margin-bottom: 32px; }

.form__group { margin-bottom: 16px; }

.form__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: 12px;
  font-size: 16px;
  transition: all var(--duration) var(--ease);
}

.form__input:focus,
.form__textarea:focus {
  background: var(--white);
  box-shadow: 0 0 0 2px var(--black);
}

.form__textarea {
  resize: none;
  min-height: 100px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.divider span {
  font-size: 13px;
  color: var(--gray-500);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.contact__link:active {
  transform: scale(0.98);
  background: var(--gray-100);
}

.contact__link--tg {
  background: #0088CC;
  color: var(--white);
}

.contact__link--tg:active { background: #0077B5; }

/* Success */
.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  flex: 1;
}

.success__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  font-size: 32px;
  margin-bottom: 24px;
  animation: slideUp 500ms var(--ease);
}

.success__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success__text {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:active { background: var(--gray-900); }

.btn--secondary {
  background: var(--gray-100);
  color: var(--black);
}

.btn--secondary:active { background: var(--gray-200); }

/* Footer */
.footer {
  text-align: center;
  padding: 32px 16px 24px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

.footer__text {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.results-count {
  font-size: 14px;
  color: var(--gray-600);
}

.results-filter {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 50%;
}

.results-filter svg {
  width: 20px;
  height: 20px;
}

/* Apartment Grid */
.apt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.apt-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-align: left;
  animation: slideUp 400ms var(--ease) backwards;
  transition: transform var(--duration) var(--ease);
}

.apt-card:active { transform: scale(0.98); }

.apt-card__image {
  position: relative;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
}

.apt-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  background: var(--black);
  color: var(--white);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.apt-card__body { padding: 12px; }

.apt-card__price {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.apt-card__info {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.apt-card__project {
  font-size: 11px;
  color: var(--gray-500);
}

/* Apartment Detail */
.apt-detail__image {
  height: 220px;
  margin: -24px -16px 20px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
}

.apt-detail__price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.apt-detail__perm2 {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.apt-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.apt-detail__stat {
  padding: 14px;
  background: var(--gray-50);
  border-radius: 12px;
}

.apt-detail__stat-label {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.apt-detail__stat-value {
  font-size: 15px;
  font-weight: 600;
}

.apt-detail__project {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 20px;
}

.apt-detail__project-label {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.apt-detail__project-name {
  font-size: 16px;
  font-weight: 600;
}

/* Empty State */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty__text {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.filter-actions .btn { flex: 1; }

.btn--small {
  padding: 12px 16px;
  font-size: 14px;
}

/* Filter Options Wrap */
.filter__options--wrap {
  flex-wrap: wrap;
}

/* Project Count */
.project__count {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 8px;
}

/* Contact Context */
.contact__context-project {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Menu Large Item */
.menu__item--large {
  grid-column: span 2;
  background: var(--black);
  color: var(--white);
}

.menu__item--large .menu__subtitle {
  color: var(--gray-400);
}
