/* Первый экран главной — вёрстка по рендеру, см. _home-redesign/SPEC.md.
   Классы с префиксом sy-, чтобы не пересечься со стилями движка. */
/* SkyYou Home — главная. Вёрстка по рендеру 5.png, см. SPEC.md */

:root {
  --bg-top: #FAFCFF;
  --bg-bottom: #EFF5FB;
  --card: #FFFFFF;
  --soft: #F5F8FA;
  --navy: #0B1330;
  --menu: #060C33;
  --muted: #495772;
  --hint: #8B93AB;
  --accent: #0F5AEC;
  --accent-2: #2F6FE0;
  --accent-light: #4987F9;
  --star: #FEB60D;
  --line: #E8EEF7;
  --icon-bg: #EFF4FF;

  --shadow-card: 0 12px 32px rgba(27, 42, 91, .10);
  --shadow-search: 0 16px 40px rgba(27, 42, 91, .10);
  --shadow-sm: 0 4px 14px rgba(27, 42, 91, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

#syHome body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, #FAFCFF 0%, #F8FAFD 55%, #F6F9FC 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#syHome a { color: inherit; text-decoration: none; }
#syHome img { display: block; max-width: 100%; }

.sy-wrap { width: 1312px; margin: 0 auto; }

/* ================= шапка ================= */

.sy-hdr { display: flex; align-items: center; gap: 40px; padding: 26px 0 24px; }

.sy-logo { display: flex; align-items: center; gap: 14px; }
.sy-logo-mark {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #4A8CF5, #0F5AEC);
  display: flex; align-items: center; justify-content: center;
}
.sy-logo-name { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 27px; font-weight: 600; line-height: 1.1; }
.sy-logo-sub { display: block; font-size: 13px; color: var(--hint); margin-top: 2px; }

.sy-nav { display: flex; align-items: center; gap: 34px; margin-left: 44px; }
.sy-nav a { white-space: nowrap; font-size: 16px; font-weight: 500; color: var(--menu); position: relative; padding-bottom: 10px; }
.sy-nav a:hover { color: var(--accent); }
.sy-nav a.sy-is-active { color: var(--navy); font-weight: 600; }
.sy-nav a.sy-is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.sy-hdr-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.sy-lang { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--menu); }
.sy-burger {
  width: 56px; height: 56px; border-radius: 50%; background: var(--card);
  box-shadow: var(--shadow-sm); border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.sy-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); }
.sy-burger span:nth-child(2) { width: 14px; }

/* ================= hero ================= */

.sy-hero { position: relative; padding-top: 34px; }
.sy-hero-grid { display: grid; grid-template-columns: 500px 1fr; gap: 20px; align-items: start; }

.sy-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #004DE1; margin-bottom: 26px;
}

#syHome h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 76px; font-weight: 600; line-height: 1.05; letter-spacing: -.015em;
  color: var(--navy);
}
#syHome h1 .sy-accent { display: block; font-style: italic; color: var(--accent-light); }

.sy-hero-lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 30px 0 34px; max-width: 400px; }

.sy-btn-primary {
  display: inline-flex; align-items: center; gap: 26px;
  height: 59px; padding: 0 10px 0 32px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(90deg, #0E5AEC 0%, #3077FB 100%);
  color: #fff; font-family: inherit; font-size: 17px; font-weight: 600;
  box-shadow: 0 10px 26px rgba(15, 90, 236, .32);
  transition: transform .2s, box-shadow .2s;
}
.sy-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15, 90, 236, .40); }
.sy-btn-primary .sy-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* фото спальни со скруглённым левым краем — на рендере это большая дуга */
.sy-hero-photo { position: relative; margin-top: -46px; margin-right: calc((1312px - 100vw) / 2); }
.sy-hero-photo > img {
  width: 100%; height: 494px; object-fit: cover;
  /* левая кромка — полукруг: R = половине высоты, иначе дуга «косит» */
  border-radius: 247px 0 40px 247px;
}

.sy-badge-users {
  position: absolute; right: 78px; top: 52px;
  background: var(--card); border-radius: 20px; padding: 18px 20px;
  box-shadow: var(--shadow-card); width: 190px;
}
.sy-badge-row { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.sy-badge-count {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sy-badge-avatars { height: 28px; width: auto; }
.sy-badge-num { font-size: 19px; font-weight: 700; }
.sy-badge-text { font-size: 14px; color: var(--menu); line-height: 1.3; }
.sy-badge-note { font-size: 13px; color: var(--hint); margin-top: 8px; line-height: 1.35; }

.sy-play {
  position: absolute; left: -18px; bottom: 68px;
  width: 76px; height: 76px; border-radius: 50%; background: var(--card);
  box-shadow: var(--shadow-card); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sy-play-arc { position: absolute; left: -40px; bottom: 52px; width: 156px; height: 156px; pointer-events: none; }
.sy-play-arc text { font-size: 11px; fill: var(--menu); letter-spacing: .04em; }

/* ================= строка поиска ================= */

.sy-search {
  display: flex; align-items: center;
  height: 102px; margin: 27px 37px 0; padding: 0 17px 0 10px;
  background: var(--card); border-radius: 32px; box-shadow: var(--shadow-search);
}
.sy-field { display: flex; align-items: center; gap: 14px; flex: 1; padding: 0 18px; position: relative; }
.sy-field + .sy-field::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 44px; background: var(--line);
}
.sy-field-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--icon-bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sy-field > span:not(.sy-field-icon) { display: flex; flex-direction: column; min-width: 0; }
.sy-field-label { display: block; white-space: nowrap; font-size: 16px; font-weight: 600; line-height: 1.2; }
.sy-field-value { display: block; white-space: nowrap; font-size: 15px; color: var(--hint); margin-top: 3px; }
.sy-field-chev { margin-left: auto; color: var(--hint); }
.sy-search-go {
  width: 68px; height: 68px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 90, 236, .32);
}

/* ================= нижний блок ================= */

.sy-bottom { display: grid; grid-template-columns: 494px 1fr; gap: 41px; margin-top: 43px; padding-bottom: 46px; }

.sy-promo { position: relative; height: 219px; border-radius: 24px; overflow: hidden; }
.sy-promo img { width: 100%; height: 100%; object-fit: cover; }
.sy-promo-body {
  position: absolute; inset: 0; padding: 34px 32px;
  background: linear-gradient(100deg, rgba(151,168,187,.92) 0%, rgba(186,200,217,.72) 30%, rgba(209,221,235,.42) 46%, rgba(233,239,247,0) 62%);
}
.sy-promo h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 600; color: #0B1330; }
.sy-promo h2 span { color: var(--accent); }
.sy-promo p { font-size: 15px; color: #24304F; margin-top: 10px; line-height: 1.45; }
.sy-btn-white {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 20px;
  height: 44px; padding: 0 10px 0 22px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--card); color: var(--navy); font-family: inherit; font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.sy-btn-white .sy-circle {
  width: 28px; height: 28px; border-radius: 50%; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center;
}

.sy-stats {
  display: grid; grid-template-columns: .9fr 1.15fr 1.15fr; align-items: center;
  height: 80px; margin-top: 22px; padding: 0 16px;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-sm);
}
.sy-stat { display: flex; align-items: center; gap: 12px; position: relative; }
.sy-stat + .sy-stat::before {
  content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 36px; background: var(--line);
}
.sy-stat-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sy-stat-icon.blue { background: #EAF1FF; color: #2F6FE0; }
.sy-stat-icon.green { background: #E7F6EE; color: #1E9E5A; }
.sy-stat-icon.orange { background: #FFF2E2; color: #F09322; }
.sy-stat > span:last-child { display: flex; flex-direction: column; }
.sy-stat-num { display: block; font-size: 19px; font-weight: 700; line-height: 1.1; }
.sy-stat-cap { display: block; font-size: 12px; white-space: nowrap; color: var(--hint); }

.sy-cats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sy-cats-head h2 { font-size: 22px; font-weight: 600; }
.sy-cats-all { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }

.sy-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.sy-cat { position: relative; height: 231px; border-radius: 18px; overflow: hidden; display: block; }
.sy-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sy-cat:hover img { transform: scale(1.04); }
.sy-cat-fav {
  position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center;
}
.sy-cat-foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to top, rgba(20, 30, 60, .45), transparent);
}
.sy-cat-name { font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.sy-cat-rate {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700;
}
.sy-cat-rate svg { color: var(--star); }
