@font-face{
  font-family:"MontserratPS";
  src:
    url("fonts_ps/Montserrat-VariableFont_wght.woff2?v=23") format("woff2"),
    url("fonts_ps/Montserrat-VariableFont_wght.ttf?v=23") format("truetype");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"MontserratPS";
  src:
    url("fonts_ps/Montserrat-Italic-VariableFont_wght.woff2?v=23") format("woff2"),
    url("fonts_ps/Montserrat-Italic-VariableFont_wght.ttf?v=23") format("truetype");
  font-weight:100 900;
  font-style:italic;
  font-display:swap;
}

html, body, #app { background:#fff !important; }

html, body, #app { background:#fff !important; }

html, body, #app { background:#fff !important; }
/* Базовые стили страницы */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  font-family:"MontserratPS",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-synthesis: none;

  font-family:"MontserratPS",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-synthesis: none;

  font-family:"MontserratPS",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;

  font-family:"MontserratPS",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  margin: 0;
  background: #fff;
font-family:"MontserratPS",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-weight: 500;
}

/* Обёртка экрана */
.ip-screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 24px;
  font-family: inherit; color: #111;
}

/* Центрирование по высоте (для auth, меню) */
.ip-screen-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* Заголовки и тексты */
.ip-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ip-subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
}

.ip-text-muted {
  font-size: 13px;
  color: #777;
}
/* Хедер с кнопкой «назад» */
.ip-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.ip-back-btn {
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 4px 0;
  cursor: pointer;
  color: #555;
}

/* Кнопки */
.ip-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  margin-top: 12px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: #000;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ip-btn-secondary {
  background: #f2f2f3;
  color: #111;
  box-shadow: none;
}

.ip-btn-full {
  width: 100%;
}

/* Поле ввода кода */
.ip-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  margin: 12px 0 4px;
  outline: none;
  box-sizing: border-box;
}

.ip-input:focus {
  border-color: #000;
}

/* Карточка авторизации */
.ip-card-auth {
  background: #fff;
  border-radius: 18px;
  padding: 16px 14px 18px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

/* Фильтры */
.ip-filters {
  margin: 8px 0 12px;
}

.ip-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.ip-chip {
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}

.ip-chip-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Сетка полов и цветов */
.ip-grid {
  display: grid;
  gap: 10px;
}

/* Полы: 2 в ряд */
.ip-grid-floors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Цвета: 3 в ряд */
.ip-grid-colors {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Карточки */
.ip-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* КАРТИНКА ПОЛА — КРУПНАЯ, ЧТОБЫ ВЛЕЗАЛО ~4 НА ЭКРАН */
.ip-card-floor img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Картинка цвета */
.ip-card-color img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}

.ip-card-info {
  padding: 6px 8px 8px;
}

.ip-card-info-center {
  text-align: center;
}

.ip-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ip-card-subtitle {
  font-size: 11px;
  color: #666;
}

.ip-card-meta {
  font-size: 11px;
  color: #999;
}

/* Список кнопок (меню, выбор материала/оттенка) */
.ip-button-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ГРИД ГРУПП ЦВЕТОВ (квадратики) */
.ip-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.ip-group-tile {
  border-radius: 14px;
  border: 1px solid #ddd;
  padding: 14px 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.ip-group-tile:active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.ip-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ip-btn-white {
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
}
.ip-btn-white:hover {
  background: #f7f7f7;
}
ШАГ 3 — ЭКРАН reverseColors КРАСИВЫЕ КВАДРАТНЫЕ КАРТОЧКИ (как «Красный»)

Добавь в style.css:

.ip-color-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.1s;
}
.ip-color-card:hover {
  transform: translateY(-2px);
}

.ip-color-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ip-color-label {
  padding: 8px 10px;
  text-align: center;
  font-size: 14px;
}
.ip-btn-white {
  background: #fff;
  color: #333;
  border-radius: 16px;
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ddd;
  width: 100%;
  cursor: pointer;
}

.ip-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ip-color-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
}

.ip-color-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ip-color-label {
  padding: 8px 10px;
  text-align: center;
  font-size: 14px;
  color: #333;
}
/* Закреплённый выбранный цвет (большая карточка) */
.ip-selected-color {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f5f5f7;
  padding-bottom: 10px;
}

.ip-selected-color .ip-card-color img {
  height: 160px; /* ← ВОТ ТУТ РЕГУЛИРУЕШЬ ВЫСОТУ */
}



/* === HOME MENU v2 === */
.ip-home {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 22px;
  font-family: "MontserratPS", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #393939;
}

.ip-home-hero {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  height: auto;
  object-fit: contain;
}

.ip-home-question {
  font-size: 18px; /* ~35/2 */
  line-height: 1.2;
  text-align: center;
  margin-top: 2px;
}

.ip-home-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ip-home-card {
  border: none;
  width: 100%;
  background: #eae1d6;
  border-radius: 25px; /* ~50/2 */
  box-shadow: 0 4px 9px rgba(0,0,0,0.05);
  min-height: 66px; /* ~132/2 */
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.ip-home-card:active { transform: translateY(1px); }

.ip-home-iconWrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}

.ip-home-iconWrap img {
  width: 24px;
  height: 24px;
  display: block;
}

.ip-home-card-body {
  font-family: "MontserratPS", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
 flex: 1 1 auto; }

.ip-home-card-title {
  font-size: 16px; /* ~30/2 */
  font-weight:700;
  line-height: 1.2;
}

.ip-home-card-subtitle {
  margin-top: 4px;
  font-size: 10.5px; /* ~20/2 */
  color: #777;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ip-home-chevron {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  flex: 0 0 auto;
}

.ip-home-row {
  display: flex;
  gap: 16px;
  margin-top: 2px;
}

.ip-home-pill {
  border: none;
  border-radius: 25px;
  box-shadow: 0 4px 9px rgba(0,0,0,0.05);
  min-height: 66px;
  padding: 10px 12px;
  flex: 1 1 0;
  cursor: pointer;
  font-family: "MontserratPS", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ip-home-pill-pink {
  background: #d48b9e;
  color: #fff;
}

.ip-home-pill-beige {
  background: #eae1d6;
  color: #393939;
}

.ip-home-footer {
  margin-top: auto;
  text-align: center;
  font-size: 11px;
  color: #111;
  opacity: 0.6;
  padding-top: 10px;
  font-weight:100;}


/* === HOME MENU EXACT (390x844) === */
.ip-home-wrap{
  --s: min(1, calc(100vw / 390));
  width: 100%;
  height: calc(844px * var(--s));
  display: flex;
  justify-content: center;
  background: #fff;
}

.ip-home-stage{
  width: 390px;
  height: 844px;
  position: relative;
  transform: scale(var(--s));
  transform-origin: top center;
  background: #fff;
  font-family: "MontserratPS",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color: #393939;
  overflow: hidden;
}

.ip-home-hero{
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: auto;
  display: block;
  pointer-events: none;
}

.ip-home-q{
  font-weight:500;
  font-weight:500;
  position: absolute;
  left: 0;
  top: 518px; /* 1036/2 */
  width: 390px;
  text-align: center;
  font-size: 18px; /* ~35/2 */
  line-height: 1.2;
  font-weight:500;
}

.ip-home-card{
  position: absolute;
  left: 24px;        /* чуть шире как в макете */
  width: 342px;      /* шире */
  height: 66px;      /* 132/2 */
  border-radius: 25px; /* 50/2 (визуально pill) */
  background: rgb(234,225,214);
  box-shadow: 0px 4px 8.46px 0.54px rgba(0,0,0,0.05);
  border: none;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.ip-home-card:active { transform: translateY(1px); }

.ip-home-card--walls{ top: 551px; }  /* 1102/2 */
.ip-home-card--floors{ top: 627px; } /* 1254/2 */

.ip-home-icwrap{
  width: 48px;
  height: 48px;
  border-radius:14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}

.ip-home-icwrap img{
  max-width: 26px;
  max-height: 26px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ip-home-card-body{
  font-family: "MontserratPS", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
 flex: 1 1 auto; }

.ip-home-card-title{
  font-weight:700;
  font-weight: 700;
  font-size: 16px; /* ~30/2 */
  font-weight: 700;
  line-height: 1.2;
}

.ip-home-card-sub{
  font-weight:400;
  font-weight:400;
  margin-top: 4px;
  font-size: 10px; /* ~20/2 */
  color: rgb(119,119,119);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ip-home-chevron{
  height: 18px;
  width: auto;
  opacity: 0.55;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

.ip-home-pill{
  position: absolute;
  top: 703px; /* 1406/2 */
  width: 165px; /* 312/2 */
  height: 66px;  /* 132/2 */
  border-radius: 25px;
  border: none;
  box-shadow: 0px 4px 8.46px 0.54px rgba(0,0,0,0.05);
  font-weight: 700;
  font-size: 16px; /* ~30/2 */
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.ip-home-pill--guide{
  left: 24px;
  background: rgb(212,139,158);
  color: #fff;
}

.ip-home-pill--sub{
  left: 201px; /* сдвиг под новые отступы */
  background: rgb(234,225,214);
  color: rgb(57,57,57);
}

.ip-home-footer{
  font-weight:100;
  font-weight: 100;
  position: absolute;
  left: 0;
  top: 818px; /* 1636/2 */
  width: 390px;
  text-align: center;
  font-size: 11px; /* ~10-12 */
  opacity: 0.6;
}

/* ==== HOME MOCK MATCH OVERRIDES v1 ==== */
.ip-home{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

/* вопрос */
.ip-home-question{
  font-weight: 500;
  color: #2f2f2f;
}

/* карточка */
.ip-home-card{
  border-radius: 25px;
  background: #eae1d6;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  padding: 12px 14px;
  gap: 12px;
}

/* иконка слева */
.ip-home-iconWrap{
  border-radius: 24px;           /* было 14px — из-за этого “не iOS” */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* типографика в карточке */
.ip-home-card-title{
  font-weight: 600;              /* ключ: было 700 => “пережирнено” */
  color: #1f1f1f;
  letter-spacing: -0.01em;
}

.ip-home-card-subtitle{
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(57,57,57,0.55);
}

/* стрелка */
.ip-home-chevron{
  width: 16px;
  height: 16px;
  opacity: 0.35;
}

/* нижние кнопки */
.ip-home-row{
  gap: 12px;
}

.ip-home-pill{
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* ==== HOME TEXT/PILLS TUNING v2 ==== */
.ip-home-card-subtitle{
  white-space: pre-line;              /* чтобы \n стал переносом */
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: rgba(57,57,57,0.55);
}

.ip-home-pill{
  height: 66px;                       /* как в макете */
  padding: 0;                         /* убираем лишнюю посадку текста */
  font-weight: 600;                   /* менее “пережирнено” */
  line-height: 1.1;
}

/* ==== HOME BOTTOM BUTTONS MATCH v1 ==== */
.ip-home .ip-home-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  width: 100%;
}

.ip-home .ip-home-pill{
  min-height: 66px;
  padding: 12px 14px;
  width: 100%;
  font-weight: 600;
}

/* ==== HOME bottom row: match Photoshop mock (2x -> /2) ==== */
.ip-home{
  padding-left: 34px;   /* 68/2 */
  padding-right: 34px;  /* 68/2 */
}

/* gap между 2 карточками по макету: (1254-1102)/2 - 66 = 10px */
.ip-home .ip-home-cards{
  gap: 10px !important;
}

/* нижний ряд: такой же вертикальный шаг, как между карточками */
.ip-home .ip-home-row{
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 9px !important;          /* (398-(68+312))/2 = 9px */
  margin-top: 10px !important;  /* как gap между карточками */
  width: 100%;
}

/* кнопки нижнего ряда: высота как у верхних (132/2=66), радиус (50/2=25) */
.ip-home .ip-home-pill{
  height: 66px !important;
  min-height: 66px !important;
  border-radius: 25px !important;
  padding: 0 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

  /* тень по макету (4,8.46,0.54)/2 */
  box-shadow: 0px 2px 4.23px 0.27px rgba(0,0,0,0.05) !important;

  /* жирность ты просил “менее жирными” — ставлю 600 (если надо строго bold как в PS — скажешь) */
  font-weight: 600 !important;
}


/* ==== HOME cards typography alignment (tight + centered) ==== */

/* центрируем содержимое карточки по высоте */
.ip-home .ip-home-card{
  display: flex;
  align-items: center;    /* вертикальный центр */
}

/* блок текста — тоже по центру, и с маленьким gap */
.ip-home .ip-home-card-body{
  display: flex;
  flex-direction: column;
  justify-content: center; /* вертикальный центр внутри */
  gap: 2px;                /* меньше расстояние между title/subtitle */
}

/* убираем возможные отступы, которые раздувают расстояние */
.ip-home .ip-home-card-title{
  margin: 0;
  line-height: 1.05;
}

.ip-home .ip-home-card-subtitle,
.ip-home .ip-home-card-sub{
  margin: 0;
  padding: 0;
  line-height: 1.1;
}


/* ==== HOME: tighten title/subtitle + center within card (final override) ==== */
.ip-home .ip-home-card-body{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* центрируем текстовый блок по высоте карточки */
  gap: 2px !important;                /* меньше расстояние между title и subtitle */
}

.ip-home .ip-home-card-title{
  margin: 0 !important;
  line-height: 1.12 !important;
}

.ip-home .ip-home-card-subtitle{
  margin-top: 0 !important;  /* убираем текущие 4px */
  line-height: 1.1 !important;
}

/* ===== HOME CARD TEXT FIX (TITLE + SUBTITLE) ===== */

/* Центрируем текст внутри карточки */
.ip-home-card-body{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* вертикальный центр */
}

/* Заголовок */
.ip-home-card-title{
  margin: 0 !important;
  line-height: 1.1 !important;
}

/* Подзаголовок — УБИРАЕМ ЛИШНЕЕ РАССТОЯНИЕ */
.ip-home-card-sub,
.ip-home-card-subtitle{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.1 !important;
}

/* ==== APP TYPOGRAPHY (NON-HOME) ==== */
/* Только экраны приложения (карточки/фильтры/списки). Главный экран .ip-home-* не трогаем. */
.ip-screen h1,
.ip-screen h2,
.ip-screen .ip-title,
.ip-screen .ip-card-title {
  font-weight: 700;
}

.ip-screen p,
.ip-screen li,
.ip-screen .ip-subtitle,
.ip-screen .ip-card-subtitle {
  font-weight: 400;
}

.ip-screen small,
.ip-screen .ip-text-muted,
.ip-screen .ip-card-meta {
  font-weight: 300;
}

.ip-screen .ip-chip {
  font-weight: 500;
}

/* ==== CHIP TEXT COLOR FIX ==== */
/* По умолчанию текст чёрный (убираем синий системный цвет) */
.ip-chip,
.ip-chip:visited,
.ip-chip:focus,
.ip-chip:active {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  appearance: none;
  -webkit-appearance: none;
}

/* Активная кнопка — как сейчас: чёрная заливка + белый текст */
.ip-chip-active,
.ip-chip-active:focus,
.ip-chip-active:active {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* ===== USER GUIDE ===== */

.ip-guide{
  font-size: 14px;
  line-height: 1.55;
  color: #111;
}

.ip-guide h3{
  margin: 18px 0 8px;
  font-size: 16px;
}

.ip-guide p{
  margin: 0 0 10px;
}

.ip-guide ul,
.ip-guide ol{
  padding-left: 18px;
  margin: 0 0 12px;
}

.ip-guide-warn{
  background: #f3eee8;
  border-radius: 12px;
  padding: 12px;
  margin: 14px 0;
  font-size: 13px;
}

.ip-guide-sign{
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
}

/* ==== COLORS TEXT COLOR FIX ==== */
/* Текст у цветов — всегда чёрный (убираем синий link-color). Главный экран не трогаем. */
.ip-screen .ip-color-label,
.ip-screen .ip-card-color .ip-card-title,
.ip-screen .ip-card-color .ip-card-subtitle,
.ip-screen .ip-selected-color,
.ip-screen .ip-selected-color * {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

/* Если внутри карточек/цветов есть ссылки — тоже делаем чёрными */
.ip-screen .ip-card-color a,
.ip-screen .ip-card-color a:visited,
.ip-screen .ip-card-color a:active,
.ip-screen .ip-card-color a:focus {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  text-decoration: none;
}

/* ==== GROUP TILES TEXT COLOR FIX ==== */
/* Кнопки-группы цветов (Бежевые/Серые/...) — всегда чёрный текст */
.ip-screen .ip-group-grid button,
.ip-screen .ip-group-grid a,
.ip-screen .ip-group-tile,
.ip-screen .ip-group-tile * {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  text-decoration: none;
}

.ip-screen .ip-group-grid a:visited,
.ip-screen .ip-group-grid a:active,
.ip-screen .ip-group-grid a:focus {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  text-decoration: none;
}
