/* TT Realty — стиль сайта (№982). Эталон: Sotheby's / Engel & Völkers / Christie's:
   кремовый фон, серифный дисплей + гротеск, крупное фото, воздух, тёмный низ. */
:root {
  --bg: #f6f2ea;
  --bg2: #efe8dc;
  --ink: #15201c;
  --ink2: #3c4a44;
  --mute: #7a857f;
  --line: rgba(21, 32, 28, .12);
  --accent: #1f4d3f;
  --accent2: #c9a56b;
  --white: #fffdf9;
  --dark: #0f1715;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --max: 1240px;
  --r: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 500; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.k { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent2); font-weight: 700; margin-bottom: 18px; }
.lead { color: var(--ink2); font-size: 1.12rem; max-width: 60ch; }

/* шапка */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; padding: 18px 0; transition: background .35s, box-shadow .35s, padding .35s; }
.top.on { background: rgba(246, 242, 234, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.top .wrap { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--serif); font-size: 1.45rem; letter-spacing: .04em; transition: color .35s; }
.top.on .logo { color: var(--ink); }
.logo svg { width: 38px; height: 38px; }
.nav { margin-left: auto; display: flex; gap: 26px; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .88); transition: color .35s; }
.top.on .nav { color: var(--ink2); }
.nav a:hover { opacity: .7; }
.lang { display: flex; gap: 4px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 3px; transition: border-color .35s; }
.top.on .lang { border-color: var(--line); }
.lang a { padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .85); transition: color .35s; }
.top.on .lang a { color: var(--ink2); }
.lang a[aria-current] { background: var(--accent2); color: var(--ink) !important; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none; color: #fff; cursor: pointer; }
.top.on .burger, .top.open .burger { color: var(--ink); }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: .3s; }

/* герой */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: zoom 14s ease-out forwards; }
@keyframes zoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 14, .45) 0%, rgba(10, 16, 14, .05) 35%, rgba(10, 16, 14, .72) 100%); }
.hero .wrap { position: relative; z-index: 2; padding: 150px 0 72px; }
.hero .k { color: var(--accent2); }
.hero h1 { max-width: 16ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .lead { color: rgba(255, 255, 255, .86); margin: 26px 0 36px; max-width: 56ch; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.p { background: var(--accent2); color: var(--ink); }
.btn.p:hover { background: #d9b67c; }
.btn.g { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn.g:hover { background: rgba(255, 255, 255, .12); }
.btn.d { background: var(--accent); color: #fff; }
.btn.d:hover { background: #276152; }
.scroll { position: absolute; right: 28px; bottom: 28px; z-index: 2; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); writing-mode: vertical-rl; }

/* секции */
section { padding: 110px 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.head .lead { justify-self: end; }

/* рынки */
.markets { background: var(--bg); }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mcard { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--dark); color: #fff; }
.mcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.mcard:hover img { transform: scale(1.05); }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(5, 10, 8, .85) 100%); }
.mcard .t { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 2; }
.mcard h3 { color: #fff; margin-bottom: 10px; font-size: 2rem; }
.mcard p { color: rgba(255, 255, 255, .82); font-size: .95rem; max-width: 34ch; }

/* услуги */
.services { background: var(--bg2); }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.scell { background: var(--bg2); padding: 36px 30px 40px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; transition: background .3s; }
.scell:hover { background: var(--white); }
.scell .n { font-family: var(--serif); font-size: 2.4rem; color: var(--accent2); line-height: 1; }
.scell h3 { font-size: 1.5rem; }
.scell p { color: var(--ink2); font-size: .98rem; }

/* как работаем */
.how { background: var(--bg); }
.hgrid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hgrid img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-size: 1.6rem; color: var(--accent2); line-height: 1.2; }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--ink2); font-size: .98rem; }

/* основатель */
.founder { background: var(--dark); color: #fff; }
.founder .k { color: var(--accent2); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.founder h2 { color: #fff; margin-bottom: 22px; }
.founder p { color: rgba(255, 255, 255, .78); font-size: 1.08rem; max-width: 52ch; margin-bottom: 14px; }
.monogram { aspect-ratio: 1; max-width: 420px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); display: grid; place-items: center; font-family: var(--serif); font-size: clamp(5rem, 12vw, 9rem); color: var(--accent2); letter-spacing: .06em; background: radial-gradient(120% 120% at 20% 10%, rgba(201, 165, 107, .12), transparent 60%); }

/* партнёры */
.partners { background: var(--bg2); }
.pbox { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.pbox p { color: var(--ink2); max-width: 64ch; margin-top: 16px; }

/* контакт */
.contact { background: var(--bg); }
.cgrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 77, 63, .12); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.msg { font-size: .95rem; min-height: 1.4em; color: var(--accent); }
.msg.err { color: #a33; }

/* низ */
footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 56px 0 36px; font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
footer .logo { color: #fff; }
footer p { margin-top: 14px; max-width: 60ch; }
footer .lang { border-color: rgba(255, 255, 255, .25); }
footer .lang a { color: rgba(255, 255, 255, .8); }
footer small { display: block; margin-top: 28px; color: rgba(255, 255, 255, .45); grid-column: 1 / -1; }

/* появление */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .hero img { animation: none; transform: none; } }

/* телефон и планшет */
@media (max-width: 1000px) {
  .mgrid { grid-template-columns: 1fr 1fr; }
  .sgrid { grid-template-columns: 1fr 1fr; }
  .hgrid, .fgrid, .cgrid { grid-template-columns: 1fr; gap: 36px; }
  .head { grid-template-columns: 1fr; gap: 18px; }
  .head .lead { justify-self: start; }
  .pbox { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 76px 0; }
  .wrap { width: calc(100% - 32px); }
  .nav { display: none; position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 24px; font-size: 1.3rem; color: var(--ink) !important; }
  .top.open .nav { display: flex; }
  .burger { display: block; position: relative; z-index: 2; }
  .top.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .top.open .burger span:nth-child(2) { opacity: 0; }
  .top.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .top .lang { position: relative; z-index: 2; }
  .hero .wrap { padding: 130px 0 56px; }
  .mgrid, .sgrid, .row2 { grid-template-columns: 1fr; }
  .mcard { aspect-ratio: 4 / 4.6; }
  .scroll { display: none; }
  .pbox { padding: 28px; }
  footer .wrap { grid-template-columns: 1fr; }
}
