/* ═══════════════════════════════════════════════════════════════
   Bodrum Coffee · Invest — лендинг проекта «Мадениет»
   Фирменная гамма брендбука: тил / чёрный / карамель на креме
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('assets/fonts/onest-cyr-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('assets/fonts/onest-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('assets/fonts/onest-lat-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('assets/fonts/onest-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F6F4EE;
  --ink: #2D2A26;
  --ink-soft: #6C675C;
  --accent: #005C5D;
  --accent-deep: #044A4B;
  --orange: #C7893E;
  --card: #FFFFFF;
  --line: rgba(43, 43, 43, .10);
  --r-lg: 24px;
  --shadow: 0 18px 44px rgba(43, 36, 26, .10);
  --pad: clamp(20px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Onest', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.hero__title, .sec-title, .stat__num, .partner__title, .footer__giant,
.phase__side b, .fc__kpi b, .fact b {
  font-family: 'Market Fresh', 'Onest', -apple-system, sans-serif;
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  padding: 12px 26px; border: none; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(0, 92, 93, .32); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px) scale(1.02); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 18px; }

/* ── Шапка ── */
.topbar {
  position: relative; margin: 14px auto 0;
  width: min(1240px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border-radius: 999px; padding: 10px 12px 10px 18px;
  box-shadow: 0 8px 30px rgba(43,36,26,.10); z-index: 5;
}
.topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar__emblem { width: 38px; height: 38px; }
.topbar__name { font-weight: 800; letter-spacing: .02em; font-size: 15px; }
.topbar__name i { font-style: normal; color: var(--orange); font-weight: 800; }

/* ── Хиро ── */
.hero { position: relative; min-height: 92svh; padding: 6vh var(--pad) 40px; overflow: clip; }
.hero__beans { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner {
  position: relative; z-index: 1; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: center; min-height: 78vh;
}
.hero__eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.hero__title { font-size: clamp(46px, 6.6vw, 96px); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.hero__line { display: block; overflow: hidden; }
.hero__line span { display: inline-block; transform: translateY(110%); animation: heroline 1s cubic-bezier(.2,.75,.15,1) forwards; }
.hero__line:nth-child(2) span { animation-delay: .12s; color: var(--accent); }
@keyframes heroline { to { transform: none; } }
.hero__sub { margin-top: 22px; font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-soft); max-width: 52ch; }
.hero__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; flex-direction: column; gap: 14px; }
.stat { border-radius: var(--r-lg); padding: 22px 22px 18px; }
.stat--white { background: var(--card); box-shadow: var(--shadow); }
.stat--accent { background: var(--accent); color: #fff; box-shadow: 0 18px 44px rgba(0,92,93,.30); }
.stat__num { font-size: clamp(32px, 3.2vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat__unit { font-size: .55em; }
.stat__label { margin-top: 6px; font-size: 15px; opacity: .82; }

/* ── Локация ── */
.loc { padding: 110px var(--pad) 90px; }
.sec-title { font-size: clamp(34px, 4.6vw, 62px); letter-spacing: -.035em; line-height: 1.04; font-weight: 800; max-width: 1240px; margin: 0 auto; }
.loc__sub { max-width: 1240px; margin: 18px auto 0; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 19px); max-width: 62ch; }
.loc__map { max-width: 1240px; margin: 40px auto 0; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(12px, 2vw, 28px); }
.lm { width: 100%; height: auto; display: block; }
.lm__blocks rect { fill: rgba(45,42,38,.05); }
.lm__green { fill: rgba(0,92,93,.07); }
.lm__ave1-bed, .lm__ave2-bed { fill: none; stroke: rgba(45,42,38,.09); stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.lm__ave2-bed { stroke-width: 36; }
.lm__flow1 { fill: none; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.lm__flow2 { fill: none; stroke: rgba(0,92,93,.16); stroke-width: 36; stroke-linecap: round; stroke-linejoin: round; }
.lm__ave1, .lm__ave2 { fill: none; stroke: rgba(45,42,38,.30); stroke-width: 3.5; stroke-dasharray: 2 12; stroke-linecap: round; }
.lm__stream {
  fill: none; stroke: rgba(199,137,62,.8); stroke-width: 3;
  stroke-dasharray: 5 26; stroke-linecap: round;
  animation: lmstream 2.6s linear infinite;
}
@keyframes lmstream { to { stroke-dashoffset: -62; } }
.lm__avename { font-size: 16px; font-weight: 700; fill: var(--ink-soft); letter-spacing: .02em; }
.lm__poi ellipse, .lm__poi rect { fill: rgba(45,42,38,.08); }
.lm__poi text { font-size: 13.5px; font-weight: 700; fill: var(--ink-soft); }
.lm__poiname { font-size: 13.5px; font-weight: 700; fill: rgba(108,103,92,.75); }
.lm__pt circle { fill: var(--accent); }
.lm__pt .lm__core { fill: #fff; }
.lm__pt text { font-size: 16.5px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; }
.lm__star circle { fill: var(--orange); }
.lm__ring { fill: none !important; stroke: var(--orange); stroke-width: 3.5; transform-box: fill-box; transform-origin: center; animation: lmpulse 2.2s ease-in-out infinite; }
@keyframes lmpulse { 0%,100% { transform: scale(.82); opacity: .95; } 50% { transform: scale(1.12); opacity: .3; } }
.lm__starname { font-size: 21px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 5px; }
.lm__starsub { font-size: 14px; font-weight: 800; fill: var(--orange); letter-spacing: .04em; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 4px; }
.gmap__legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.gmap__legend i { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 7px; vertical-align: -2px; }
.gmap__lg1 { background: var(--accent); }
.gmap__lg2 { background: var(--orange); }
.gmap__lg3 { background: linear-gradient(90deg, rgba(199,137,62,.6), rgba(199,137,62,.15)); border-radius: 4px; width: 22px !important; }
.loc__facts { max-width: 1240px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; }
.fact b { display: block; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.02em; color: var(--accent); }
.fact span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 14.5px; }

/* ── Сделка ── */
.deal { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); margin: 0 10px; padding: clamp(60px, 8vw, 100px) var(--pad); }
.sec-title--onink { color: var(--bg); }
.deal__phases { max-width: 1240px; margin: 44px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.phase { background: rgba(246,244,238,.06); border: 1px solid rgba(246,244,238,.14); border-radius: var(--r-lg); padding: 26px; }
.phase__tag { font-size: 13.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.phase__split { display: flex; gap: 6px; margin-top: 18px; border-radius: 14px; overflow: hidden; }
.phase__side { padding: 18px 14px; min-width: 0; flex: 0 0 var(--w); }
.phase__side b { display: block; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.02em; line-height: 1; }
.phase__side span { display: block; margin-top: 4px; font-size: 12.5px; opacity: .85; }
.phase__side--inv { background: var(--accent); color: #fff; }
.phase__side--uk { background: rgba(246,244,238,.16); }
.phase__note { margin-top: 16px; font-size: 14px; color: rgba(246,244,238,.65); }
.deal__arrow { display: grid; place-items: center; font-size: 42px; color: var(--orange); }
.deal__row { max-width: 1240px; margin: 26px auto 0; display: flex; gap: 12px; flex-wrap: wrap; }
.deal__chip { background: rgba(246,244,238,.08); border: 1px solid rgba(246,244,238,.16); border-radius: 999px; padding: 12px 20px; font-size: 14.5px; color: rgba(246,244,238,.85); }
.deal__chip b { color: var(--bg); }

/* ── Прогноз ── */
.fc { padding: 110px var(--pad); }
.fc__sub { max-width: 1240px; margin: 18px auto 0; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 19px); }
.fc__wrap { max-width: 1240px; margin: 40px auto 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.fc__left { background: var(--accent); color: #F2FBF9; border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 40px); }
.ctl { display: block; }
.ctl__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15.5px; margin-bottom: 10px; color: rgba(242,251,249,.85); }
.ctl__row b { font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ctl input[type=range] { width: 100%; height: 26px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.ctl input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
.ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; margin-top: -10px; box-shadow: 0 4px 14px rgba(0,0,0,.3); border: none; }
.ctl input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
.ctl input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.fc__share { margin: 14px 0 22px; font-size: 14.5px; color: rgba(242,251,249,.8); background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 14px; }
.fc__share b { color: #fff; }
.fc__kpis { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.fc__kpi b { display: block; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.03em; line-height: 1; }
.fc__kpi span { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(242,251,249,.7); }
.fc__note { margin-top: 26px; font-size: 12.5px; color: rgba(242,251,249,.55); }
.fc__chart { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(14px, 2vw, 28px); }
#fcSvg { width: 100%; height: auto; display: block; }
.fcbar { fill: rgba(0,92,93,.28); }
.fcbar--post { fill: rgba(199,137,62,.35); }
.fcline { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.fcgoal { stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 7 7; }
.fcgoal-label { font-size: 15px; font-weight: 800; fill: var(--orange); }
.fcpay { font-size: 15px; font-weight: 800; fill: var(--accent); }
.fcaxis { font-size: 12px; fill: var(--ink-soft); font-weight: 600; }

/* ── Оператор ── */
.op { padding: 0 var(--pad) 110px; }
.op__grid { max-width: 1240px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Форма ── */
.partner { position: relative; padding: 40px var(--pad) 120px; text-align: center; overflow: clip; }
.partner__seal { width: 150px; margin: 0 auto 8px; position: relative; }
.seal { width: 100%; animation: sealspin 22s linear infinite; }
.seal__text { font-size: 15.5px; font-weight: 700; letter-spacing: .18em; fill: var(--accent); }
.seal__emblem { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; }
@keyframes sealspin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.partner__title { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -.04em; font-weight: 800; }
.partner__sub { margin-top: 14px; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 20px); }
.form { max-width: 660px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1.5px solid transparent; border-radius: 16px;
  padding: 16px 18px; outline: none; box-shadow: 0 6px 18px rgba(43,36,26,.06);
  transition: border-color .25s, box-shadow .25s;
}
.form input:focus { border-color: var(--accent); box-shadow: 0 6px 22px rgba(0,92,93,.16); }
.form__hp { position: absolute; left: -9999px; height: 0; opacity: 0; pointer-events: none; }
.form__submit { margin-top: 6px; }
.form__consent { font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.form__status { text-align: center; font-weight: 700; min-height: 1.4em; }
.form__status.ok { color: #1F7A4A; }
.form__status.err { color: #C0533E; }
.partner__contact { margin-top: 26px; color: var(--ink-soft); }
.partner__contact a { font-weight: 800; color: var(--ink); text-decoration: none; }

/* ── Футер ── */
.footer { background: var(--accent); color: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 56px var(--pad) 26px; overflow: clip; }
.footer__giant {
  text-align: center; white-space: nowrap;
  font-size: clamp(28px, 9.1vw, 150px); line-height: 1; font-weight: 800; letter-spacing: -.035em;
  color: rgba(255,255,255,.94); user-select: none;
}
.footer__legal { margin-top: 34px; text-align: center; font-size: 13.5px; opacity: .6; }

/* ── Адаптив ── */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__stats { flex-direction: row; flex-wrap: wrap; }
  .hero__stats .stat { flex: 1 1 200px; }
  .fc__wrap { grid-template-columns: 1fr; }
  .op__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* шапка: компакт, ничего не режется */
  .topbar { padding: 8px 8px 8px 12px; margin-top: 10px; }
  .topbar__name { font-size: 0; }              /* текст прячем, бейдж остаётся */
  .topbar__name i { font-size: 14px; }
  .topbar .btn { padding: 10px 16px; font-size: 14px; }
  .topbar__emblem { width: 34px; height: 34px; }
  /* хиро: плотнее, статы столбиком на всю ширину */
  .hero { padding: 2vh var(--pad) 30px; min-height: 0; }
  .hero__inner { gap: 26px; }
  .hero__eyebrow { margin-bottom: 12px; font-size: 12.5px; }
  .hero__sub { margin-top: 16px; }
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { flex-direction: column; }
  .hero__stats .stat { flex: none; width: 100%; }
  /* ритм секций */
  .loc { padding: 70px var(--pad) 60px; }
  .fc { padding: 70px var(--pad); }
  .op { padding: 0 var(--pad) 70px; }
  .partner { padding: 30px var(--pad) 90px; }
  .deal { padding: 50px var(--pad) 56px; }
  /* сделка: плашки долей читаемы */
  .phase { padding: 20px; }
  .phase__side { padding: 14px 10px; }
  .phase__side span { font-size: 10px; letter-spacing: -.01em; }
  .phase__side { padding: 12px 8px; }
  .deal__chip { font-size: 13px; padding: 10px 14px; }
  /* график: подписи под мобильный масштаб SVG */
  .fcaxis { font-size: 22px; }
  .fcgoal-label { font-size: 26px; }
  .fcpay { font-size: 26px; }
  .fcgoal { stroke-width: 4; }
  .fcline { stroke-width: 6; }
  /* легенда карты */
  .gmap__legend { gap: 10px 16px; font-size: 12.5px; }
  .loc__facts { grid-template-columns: 1fr; }
  .deal { margin: 0 6px; }
  .deal__phases { grid-template-columns: 1fr; }
  .deal__arrow { transform: rotate(90deg); }
  .form__row { grid-template-columns: 1fr; }
  .op__grid { grid-template-columns: 1fr; }
  .lm__pt text { font-size: 23px; }
  .lm__starname { font-size: 28px; }
  .lm__starsub { font-size: 19px; }
  .lm__avename { font-size: 21px; }
  .lm__poi text, .lm__poiname { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__line span { animation: none; transform: none; }
  .seal, .lm__ring, .lm__stream { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__beans { display: none; }
}
