﻿/* ТЕРМИНАЛ — базовая тема. Палитра из брендбука. */
@import url("../fonts/fonts.css");

:root {
  --blue: #185fa5;
  --blue-dark: #0c447c;
  --blue-soft: #e6f1fb;
  --orange: #e87a20;
  --ink: #2c2c2a;
  --paper: #f1efe8;

  --line: rgba(44, 44, 42, 0.12);
  --muted: rgba(44, 44, 42, 0.62);

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1260px;

  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(12, 68, 124, 0.06), 0 8px 24px rgba(12, 68, 124, 0.05);
  --shadow-md: 0 2px 6px rgba(12, 68, 124, 0.08), 0 18px 48px rgba(12, 68, 124, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ───────────────────────── header ───────────────────────── */

.topline {
  background: var(--blue-dark);
  color: #dceaf7;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.topline .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
}
.topline a { color: #fff; font-weight: 500; }
.topline .dot { opacity: 0.4; margin: 0 10px; }
.topline .city { display: inline-flex; align-items: center; gap: 7px; }
.topline .city::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 239, 232, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.brand__desc {
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 4px;
  font-size: 15px;
  font-weight: 500;
}
.menu a { position: relative; padding: 6px 0; color: rgba(44, 44, 42, 0.82); }
.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.menu a:hover { color: var(--ink); }
.menu a:hover::after { transform: scaleX(1); }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav__phone {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nav__phone span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--blue-dark);
  box-shadow: inset 0 0 0 1.5px rgba(12, 68, 124, 0.25);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 9px; }
.btn--accent { background: var(--orange); }
.btn--accent:hover { background: #d16a13; }

/* ───────────────────────── hero ───────────────────────── */

.hero { position: relative; overflow: hidden; padding: 84px 0 0; }
.hero::before {
  content: "";
  position: absolute;
  top: -320px; right: -180px;
  width: 780px; height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 95, 165, 0.16), rgba(24, 95, 165, 0) 66%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

/* декоративное «табло» на фоне первого экрана */
.hero__deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%), linear-gradient(to right, transparent 0%, #000 58%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%), linear-gradient(to right, transparent 0%, #000 58%, #000 100%);
  mask-composite: intersect;
}
.deco-rows {
  position: absolute;
  right: -230px;
  top: -80px;
  width: 720px;
  opacity: 0.12;
  animation: drift 60s linear infinite;
  will-change: transform;
}
.deco-row {
  display: flex;
  align-items: baseline;
  gap: 26px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(24, 95, 165, 0.45);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.05em;
  color: var(--blue-dark);
  white-space: nowrap;
}


@keyframes drift {
  from { transform: rotate(-9deg) translateY(0); }
  to { transform: rotate(-9deg) translateY(-50%); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
}

.hero h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(33px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero__slogan {
  margin: 20px 0 0;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
}

.hero__lead {
  margin: 26px 0 0;
  max-width: 54ch;
  font-size: clamp(16px, 1.35vw, 19px);
  color: rgba(44, 44, 42, 0.78);
}
.hero__lead b { font-weight: 600; color: var(--ink); }

/* поиск */
.search {
  margin: 38px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr auto;
  gap: 10px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field select,
.field input {
  appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  min-width: 0;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%232c2c2a' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.field select:focus, .field input:focus {
  outline: 2px solid rgba(24, 95, 165, 0.35);
  outline-offset: 1px;
  border-color: var(--blue);
}
.search .btn { height: 48px; }

.seg {
  display: inline-flex;
  padding: 4px;
  background: var(--blue-soft);
  border-radius: 10px;
  height: 48px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-dark);
  opacity: 0.65;
}
.seg button[aria-pressed="true"] { background: #fff; opacity: 1; box-shadow: var(--shadow-sm); }

/* назначение бизнеса */
.purpose {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  color: rgba(44, 44, 42, 0.85);
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue-dark); background: #fff; }

/* ───────────────────────── табло ───────────────────────── */

.board { margin: 56px 0 0; }

.board__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.board__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--blue-dark);
  margin: 0;
}
.board__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.board__meta::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2fa96b;
  box-shadow: 0 0 0 4px rgba(47, 169, 107, 0.14);
}

.table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.table__head,
.row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 178px 104px 176px;
  gap: 18px;
  align-items: center;
  padding: 0 22px;
}
.table__head {
  height: 46px;
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.row {
  min-height: 86px;
  border-top: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease;
}
.row:hover { background: var(--blue-soft); }
.row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.row:hover::before { transform: scaleY(1); }

.row__code {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.row__main { min-width: 0; }
.row__name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__addr {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__type { font-size: 14px; color: rgba(44, 44, 42, 0.8); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--rent { background: var(--blue-soft); color: var(--blue-dark); }
.tag--sale { background: rgba(232, 122, 32, 0.14); color: #b4560b; }

.row__price {
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue-dark);
  white-space: nowrap;
}
.row__price i {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.board__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* появление строк табло */
.row {
  animation: rowIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.row:nth-of-type(1) { animation-delay: 0.05s; }
.row:nth-of-type(2) { animation-delay: 0.12s; }
.row:nth-of-type(3) { animation-delay: 0.19s; }
.row:nth-of-type(4) { animation-delay: 0.26s; }
.row:nth-of-type(5) { animation-delay: 0.33s; }
.row:nth-of-type(6) { animation-delay: 0.4s; }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ───────────────────────── секции ───────────────────────── */

.section { padding: 96px 0 0; }
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: block; } }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
  max-width: 22ch;
  text-wrap: balance;
}
.section__note { max-width: 40ch; font-size: 15.5px; color: var(--muted); margin: 0; }

.cards {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 178px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(24, 95, 165, 0.3); }
.cat__icon { width: 34px; height: 34px; color: var(--blue); }
.cat__name { display: block; margin: 16px 0 0; font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; }
.cat__hint { display: block; margin: 5px 0 0; font-size: 13.5px; color: var(--muted); }
.cat__arrow {
  position: absolute;
  top: 22px; right: 22px;
  color: var(--orange);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.22s ease;
}
.cat:hover .cat__arrow { opacity: 1; transform: none; }

/* почему */
.why {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.why__item { padding: 26px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.why__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.why__title { margin: 14px 0 6px; font-size: 16.5px; font-weight: 650; }
.why__text { margin: 0; font-size: 14.5px; color: var(--muted); }

/* собственникам */
.owners {
  margin: 96px 0 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-dark), #093560 62%);
  color: #e9f1fa;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.owners::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 130px rgba(255, 255, 255, 0.03);
}
.owners h2 { color: #fff; max-width: 18ch; }
.owners p { max-width: 48ch; color: rgba(233, 241, 250, 0.78); font-size: 16px; }
.owners .btn { margin-top: 26px; }
.owners__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* форма */
.contact {
  margin: 96px 0 0;
  padding-top: 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact h2 { max-width: none; }
.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}
.contact__form .field input { background: #fbfaf7; }
.legal { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; line-height: 1.5; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.contact__info { display: grid; gap: 22px; align-content: start; }
.contact__phone { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; color: var(--blue-dark); letter-spacing: -0.02em; }
.contact__row { display: flex; gap: 10px; flex-wrap: wrap; }

/* футер */
.foot { margin-top: 96px; background: #0a2f52; color: rgba(233, 241, 250, 0.72); padding: 54px 0 34px; font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot .brand__name { color: #fff; }
.foot .brand__desc { color: rgba(233, 241, 250, 0.55); }
.foot h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: #fff; }
.foot__bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(233, 241, 250, 0.55);
}

/* ───────────────────────── адаптив ───────────────────────── */

@media (max-width: 1300px) {
  .nav__phone { display: none; }
  .menu { gap: 15px; font-size: 14.5px; }
}

@media (max-width: 1080px) {
  .menu { display: none; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 34px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .search { grid-template-columns: 1fr; }
  .search .btn { width: 100%; }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 820px) {
  .hero__deco { display: none; }
  .wrap { padding: 0 18px; }
  .topline .wrap { height: auto; padding: 8px 18px; font-size: 12.5px; flex-wrap: wrap; gap: 6px; }
  .nav .wrap { height: 66px; gap: 12px; }
  .brand__desc { display: none; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 15px; letter-spacing: 0.1em; }
  .nav__right { gap: 10px; }
  .nav__right .btn { height: 38px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
  .nav__phone { display: none; }
  .hero { padding-top: 52px; }
  .hero h1 { max-width: 100%; }

  .table__head { display: none; }
  .table { border-radius: 16px; }
  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "main deal" "addr addr" "price price";
    gap: 4px 14px;
    padding: 16px 18px 18px;
    min-height: 0;
    row-gap: 6px;
    align-items: start;
  }
  .row__code { display: none; }
  .row__main { grid-area: main; }
  .row__name { white-space: normal; }
  .row__type { display: none; }
  .row > .tag { grid-area: deal; justify-self: end; }
  .row__price { grid-area: price; text-align: left; padding-top: 6px; border-top: 1px dashed var(--line); }
  .row__addr { grid-area: addr; white-space: normal; }

  .board__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .board__foot .btn { width: 100%; }

  .cards { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .owners { padding: 34px 24px; border-radius: 18px; }
  .contact__form { padding: 22px; }
  .foot__grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding-top: 64px; }
  .owners, .contact, .foot { margin-top: 64px; }
}







