/* RG Distribución & Multiservicios — стили. Система: ../MARCA.md. Три цвета знака, один шрифт, одно движение. */
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/source-sans-3-latin.woff2) format("woff2");
}
:root {
  --neg: #010101; --nar: #F49521; --bg: #F7F4EE; --bl: #fff; --tx2: #5B564E; --lin: rgb(1 1 1 / .14);
  --gut: 20px; --hdr: 60px;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --e: cubic-bezier(.2, .7, .2, 1); --d: .52s;
  --tan: .7106;            /* тангенс среза ноги R (35,4°) */
}
@media (min-width: 900px) { :root { --gut: clamp(32px, 5vw, 80px); --hdr: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; color: var(--neg); font: 400 17px/1.5 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
html, body, a, button { touch-action: manipulation; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
h1, h2, p, ul { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--neg); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.skip { position: fixed; z-index: 100; left: var(--gut); top: 8px; padding: 12px 16px; background: var(--neg); color: var(--bl); transform: translateY(-300%); }
.skip:focus { transform: none; }

/* ---------- шапка ---------- */
.cab { position: sticky; top: 0; z-index: 50; height: var(--hdr); padding: 0 var(--gut); display: flex; align-items: center; gap: 12px; background: var(--bg); }
.cab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lin); }
.cab__logo { display: flex; align-items: center; height: 44px; margin-right: auto; }
.cab__logo svg { height: 30px; width: auto; aspect-ratio: 1134.88 / 419.95; }
.cab__wa { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; background: var(--nar); color: var(--neg); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 0 14px 0 0; white-space: nowrap; }
.wa { width: 20px; height: 20px; fill: currentColor; flex: none; }
.cab__menu { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; height: 44px; width: 86px; font-weight: 600; font-size: 16px; }
.cab__menu i { position: relative; width: 20px; height: 12px; flex: none; }
.cab__menu i::before, .cab__menu i::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--neg); transition: transform .25s var(--e); }
.cab__menu i::before { top: 0; } .cab__menu i::after { bottom: 0; }
.cab__menu[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.cab__menu[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }
.cab__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); padding: 8px var(--gut) 20px; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--e), visibility 0s .25s; border-bottom: 1px solid var(--lin); }
.cab__nav a { display: flex; align-items: center; min-height: 56px; font-size: 24px; font-weight: 700; text-decoration: none; border-top: 1px solid var(--lin); }
.cab__nav a:first-child { border-top: 0; }
.cab.abierto .cab__nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--e); }
.velo { position: fixed; inset: 0; z-index: 40; background: rgb(1 1 1 / .38); }
@media (min-width: 900px) {
  .cab { gap: 28px; }
  .cab__logo svg { height: 36px; }
  .cab__menu { display: none; }
  .cab__nav { position: static; flex-direction: row; gap: 4px; padding: 0; visibility: visible; opacity: 1; transform: none; border: 0; background: none; transition: none; }
  .cab__nav a { min-height: 44px; padding: 0 14px; font-size: 16px; font-weight: 600; border: 0; }
  .cab__wa { padding: 0 18px; }
  .velo { display: none; }
}

/* ---------- кнопка и ссылка ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 24px; background: var(--nar); color: var(--neg); text-decoration: none; font-weight: 700; font-size: 18px; border-radius: 0 20px 0 0; white-space: nowrap; }
.btn .wa { width: 22px; height: 22px; }
.enl { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn, .cab__wa { transition: background-color .18s, color .18s; }
  .btn:hover, .cab__wa:hover { background: var(--neg); color: var(--bl); }
  .cont .btn:hover { background: var(--bl); color: var(--neg); }
  .cab__nav a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color .18s; }
  .cab__nav a:hover { text-decoration-color: var(--neg); }
  .enl:hover { text-decoration-color: var(--nar); }
}

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: flex-end; background: #17150f; color: var(--bl); overflow: hidden; }
.hero__f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(1 1 1 / .9) 0%, rgb(1 1 1 / .68) 34%, rgb(1 1 1 / .18) 66%, rgb(1 1 1 / .06) 100%); pointer-events: none; }
.hero__c { position: relative; z-index: 1; padding: 0 var(--gut) clamp(12px, 2.4svh, 20px); }
.hero__t { font-weight: 800; font-size: clamp(38px, 12vw, 56px); line-height: .98; letter-spacing: -.022em; }
.hero__t .ln { display: block; }
.hero__a { margin-top: clamp(12px, 2.4svh, 20px); }
.hero__p { color: rgb(255 255 255 / .9); font-size: 17px; line-height: 1.42; max-width: 36ch; }
.hero__b { margin-top: clamp(14px, 2.8svh, 24px); display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.hero__b .enl { align-self: flex-start; }
.hero__pie { margin: 6px 0 0; font-size: 12px; color: rgb(255 255 255 / .62); }
@media (max-height: 610px) and (max-width: 899px) { .hero__b .enl { display: none; } }
@media (hover: hover) and (pointer: fine) { .hero .btn:hover { background: var(--bl); color: var(--neg); } }
@media (min-width: 900px) {
  .hero__c { padding-bottom: clamp(20px, 4svh, 40px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }
  .hero__t { font-size: min(7.4vw, 16svh, 132px); line-height: .94; letter-spacing: -.028em; }
  .hero__a { margin: 0 0 8px; max-width: 420px; justify-self: end; }
  .hero__p { font-size: 20px; line-height: 1.4; }
  .hero__b { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
  .hero__pie { grid-column: 1 / -1; margin-top: 14px; }
}

/* ---------- общие для секций ---------- */
.pant { scroll-margin-top: var(--hdr); }
.t2 { font-weight: 800; font-size: clamp(34px, 9.6vw, 44px); line-height: 1; letter-spacing: -.02em; }
.tx { color: var(--tx2); max-width: 34ch; }
.rot { font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- что делаем ---------- */
.serv { min-height: calc(100svh - var(--hdr)); padding: clamp(24px, 5svh, 48px) var(--gut) clamp(20px, 4svh, 40px); display: flex; flex-direction: column; }
.serv__c .tx { margin-top: 10px; }
.serv__l { margin-top: auto; padding-top: 20px; }
.fila { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: clamp(48px, 8.4svh, 66px); padding: 4px 0; border-top: 1px solid var(--lin); text-decoration: none; font-weight: 700; font-size: clamp(20px, 5.7vw, 26px); line-height: 1.1; letter-spacing: -.01em; }
.serv__l li:last-child .fila { border-bottom: 1px solid var(--lin); }
.fila span, .fila .fl { position: relative; z-index: 1; }
.fl { width: 22px; height: 22px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .fila::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -.5); background: var(--nar); transform: scaleX(0); transform-origin: 0 50%; transition: transform .32s var(--e); }
  .fila:hover::before, .fila:focus-visible::before { transform: scaleX(1); }
  .fila .fl { transition: transform .32s var(--e); }
  .fila:hover .fl { transform: translateX(6px); }
}
@media (min-width: 900px) {
  .serv { min-height: 0; padding-top: clamp(64px, 12svh, 128px); padding-bottom: clamp(64px, 12svh, 128px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; }
  .serv__c { position: sticky; top: calc(var(--hdr) + 40px); }
  .t2 { font-size: clamp(48px, 5vw, 76px); }
  .serv__c .tx { margin-top: 18px; font-size: 20px; }
  .serv__l { margin: 0; padding: 0; }
  .fila { min-height: 78px; font-size: clamp(28px, 2.8vw, 40px); }
  .fl { width: 28px; height: 28px; }
}

/* ---------- объекты: названия крупным набором, группы под рубрикой ---------- */
.obr { min-height: calc(100svh - var(--hdr)); padding: clamp(24px, 5svh, 48px) var(--gut) clamp(20px, 4svh, 40px); display: flex; flex-direction: column; }
.obr .t2 { font-size: clamp(30px, 8.4vw, 40px); }
.obr__c .tx { margin-top: 10px; }
.obr__l { margin-top: auto; padding-top: 20px; }
.obr__g { border-top: 1px solid var(--lin); padding: clamp(6px, 1.3svh, 12px) 0 clamp(8px, 1.6svh, 14px); }
.obr__g:last-child { border-bottom: 1px solid var(--lin); }
.obr__g .rot { margin: 0 0 4px; color: var(--tx2); }
.obr__g ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 0; }
.obr__g li { font-weight: 700; font-size: clamp(20px, 5.5vw, 24px); line-height: 1.24; letter-spacing: -.01em; }
@media (max-height: 610px) and (max-width: 899px) {
  #servicios .fila { min-height: 47px; }
  #alquiler { padding-top: 16px; padding-bottom: 12px; }
  #alquiler .t2 { font-size: clamp(27px, 7.8vw, 32px); }
  #alquiler .tx { margin-top: 6px; font-size: 15px; line-height: 1.35; }
  #alquiler .fila { min-height: 41px; font-size: clamp(18px, 5.2vw, 20px); }
  .foto { margin-top: 8px; min-height: 44px; }
  .foto figcaption { font-size: 11px; margin-top: 3px; }
  .serv__c + .serv__l, .obr__c + .obr__l { padding-top: 8px; }
  .obr { padding-top: 18px; padding-bottom: 14px; }
  .obr .t2 { font-size: clamp(25px, 7.4vw, 30px); }
  .obr__c .tx { margin-top: 6px; font-size: 15px; line-height: 1.35; }
  .obr__l { padding-top: 10px; }
  .obr__g { padding: 6px 0 8px; }
  .obr__g .rot { font-size: 12.5px; margin-bottom: 1px; }
  .obr__g ul { column-gap: 16px; }
  .obr__g li { font-size: clamp(17.5px, 5.4vw, 20px); line-height: 1.22; }
}
@media (min-width: 900px) {
  .obr { min-height: 0; padding-top: clamp(64px, 12svh, 128px); padding-bottom: clamp(64px, 12svh, 128px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; }
  .obr .t2 { font-size: clamp(44px, 4.4vw, 68px); }
  .obr__c { position: sticky; top: calc(var(--hdr) + 40px); }
  .obr__c .tx { margin-top: 18px; font-size: 20px; }
  .obr__l { margin: 0; padding: 0; }
  .obr__g { padding: 22px 0 26px; }
  .obr__g .rot { margin-bottom: 8px; }
  .obr__g ul { column-gap: 40px; }
  .obr__g li { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.3; }
}

/* ---------- раскрывающиеся строки: фото, описание, WhatsApp ---------- */
.acd summary { list-style: none; cursor: pointer; width: 100%; }
.acd summary::-webkit-details-marker { display: none; }
.mas { width: 22px; height: 22px; flex: none; position: relative; z-index: 1; transition: transform .28s var(--e); }
.acd[open] .mas { transform: rotate(45deg); }
.acd__c { padding: 4px 0 22px; display: grid; gap: 14px; }
.acd[open] .acd__c { animation: sube .36s var(--e) both; }
.acd__c img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-top-left-radius: clamp(28px, 9vw, 56px); background: #d9d4c9; }
.acd__t p { margin: 0; font-size: 18px; line-height: 1.4; }
.acd__t .btn { margin-top: 14px; width: 100%; }
.acd__t .acd__pie { margin-top: 10px; font-size: 12px; color: var(--tx2); }
.serv__l li:last-child .acd[open] > .fila { border-bottom: 0; }
.serv__l li:last-child .acd[open] .acd__c { border-bottom: 1px solid var(--lin); }
@media (min-width: 900px) {
  .mas { width: 28px; height: 28px; }
  .acd__c { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; padding: 8px 0 34px; align-items: start; }
  .acd__t p { font-size: 21px; }
  .acd__t .btn { width: auto; margin-top: 20px; }
}

/* ---------- объекты: названия поверх затемнённого кадра стройки ---------- */
.obr { position: relative; background: #14120e; color: var(--bl); overflow: hidden; }
.obr__f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(1 1 1 / .74) 0%, rgb(1 1 1 / .8) 100%); pointer-events: none; }
.obr__c, .obr__l { position: relative; z-index: 1; }
.obr .tx { color: rgb(255 255 255 / .84); }
.obr .obr__g { border-top-color: rgb(255 255 255 / .26); }
.obr .obr__g:last-of-type { border-bottom: 1px solid rgb(255 255 255 / .26); }
.obr .obr__g .rot { color: var(--nar); }
.obr__pie { margin: 8px 0 0; font-size: 12px; color: rgb(255 255 255 / .6); }

/* ---------- фирма: оранжевая плоскость с углом буквы G ---------- */
.nos { min-height: calc(100svh - var(--hdr)); display: flex; padding: 0; }
.nos__p { flex: 1; background: var(--nar); border-top-left-radius: clamp(56px, 16vw, 180px); padding: clamp(28px, 6svh, 72px) var(--gut) clamp(28px, 5svh, 48px); display: flex; flex-direction: column; }
.nos__t { margin-top: clamp(10px, 2svh, 18px); font-weight: 800; line-height: .86; letter-spacing: -.03em; font-size: clamp(40px, 12vw, 60px); }
.nos__t span { display: block; }
.nos__t b { display: block; font-weight: 900; font-size: clamp(112px, 37vw, 190px); margin-left: -.04em; font-variant-numeric: lining-nums; }
.nos__x { margin-top: auto; padding-top: 24px; font-size: 19px; line-height: 1.38; font-weight: 500; max-width: 38ch; }
.nos__z { margin-top: 14px; font-weight: 800; }
@media (max-height: 610px) and (max-width: 899px) { .nos__x { font-size: 17px; padding-top: 14px; } .nos__z { margin-top: 8px; } .nos__t b { font-size: min(37vw, 24svh); } }
@media (min-width: 900px) {
  .nos { min-height: 0; padding-left: var(--gut); }
  .nos__p { padding: clamp(56px, 10svh, 112px) var(--gut) clamp(56px, 10svh, 104px) clamp(48px, 6vw, 112px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }
  .rot { grid-column: 1 / -1; align-self: start; }
  .nos__t { margin-top: 24px; font-size: clamp(56px, 5.4vw, 88px); }
  .nos__t b { font-size: clamp(200px, 23vw, 400px); }
  .nos__x { margin: 0; padding: 0 0 clamp(8px, 2vw, 34px); font-size: 22px; }
}

/* ---------- контакты: чёрная лента знака (слева срез 35°, справа скругление) ---------- */
.cont { min-height: calc(100svh - var(--hdr)); padding: clamp(24px, 5svh, 56px) 0 0; display: flex; background: var(--bg); }
.cont__b { --w: clamp(96px, 30vw, 300px); position: relative; flex: 1; background: var(--neg); color: var(--bl); border-bottom-right-radius: clamp(40px, 11vw, 120px); padding: clamp(36px, 7svh, 72px) var(--gut) calc(var(--w) * var(--tan) + 28px); display: flex; flex-direction: column; }
.cont__b::after { content: ""; position: absolute; left: -1px; bottom: -1px; width: var(--w); height: calc(var(--w) * var(--tan)); background: var(--bg); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.cont__t { font-weight: 800; font-size: clamp(36px, 10.6vw, 50px); line-height: 1; letter-spacing: -.022em; max-width: 12ch; }
.cont__a { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; align-items: stretch; }
.cont__a p { font-size: 19px; color: rgb(255 255 255 / .82); margin-bottom: 18px; }
.cont__a .cont__d { margin: 2px 0 0; font-size: 16px; line-height: 1.35; color: rgb(255 255 255 / .82); }
.cont__d span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .62); }
.cont__n { align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; margin-top: 6px; font-weight: 700; font-size: 22px; letter-spacing: .01em; text-decoration: none; font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 900px) {
  .cont { min-height: 0; padding: clamp(56px, 10svh, 112px) var(--gut) 0 0; }
  .cont__b { padding: clamp(64px, 11svh, 120px) clamp(48px, 6vw, 112px) clamp(64px, 11svh, 120px) calc(var(--w) + var(--gut)); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }
  .cont__t { font-size: clamp(56px, 6vw, 104px); max-width: 15ch; }
  .cont__a { margin: 0; padding: 0; align-items: flex-start; }
  .cont__a p { font-size: 22px; }
}

@media (max-height: 610px) and (max-width: 899px) {
  .cont { padding-top: 14px; }
  .cont__b { padding-top: 24px; --w: clamp(72px, 22vw, 120px); padding-bottom: calc(var(--w) * var(--tan) + 14px); }
  .cont__t { font-size: clamp(30px, 9vw, 38px); }
  .cont__a { padding-top: 14px; }
  .cont__a p { font-size: 17px; margin-bottom: 12px; }
  .cont__n { min-height: 44px; margin-top: 2px; font-size: 20px; }
  .cont__a .cont__d { font-size: 15px; }
}

/* ---------- подвал ---------- */
.pie { padding: clamp(40px, 8svh, 72px) var(--gut) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; color: var(--tx2); font-size: 15px; line-height: 1.45; }
.pie__logo { width: min(240px, 62vw); }
.pie__logo svg { width: 100%; height: auto; }
@media (min-width: 900px) { .pie { flex-direction: row; align-items: flex-end; justify-content: space-between; } .pie p { text-align: right; } }

/* ---------- движение: «встаёт на место» ---------- */
@keyframes sube { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes baja { from { opacity: 0; transform: translate3d(0, -22px, 0); } to { opacity: 1; transform: none; } }
@keyframes entra { from { opacity: 0; transform: translate3d(-24px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes ve { to { opacity: 1; } }
html.js .m, html.js .ln { opacity: 0; }
html.js.va .m-izq  { animation: baja var(--d) var(--e) .05s both; }
html.js.va .m-neg  { animation: entra .62s var(--e) .16s both; }
html.js.va .m-g    { animation: baja var(--d) var(--e) .34s both; }
html.js.va .m-der  { animation: baja var(--d) var(--e) .46s both; }
html.js.va .m-lema { animation: ve .4s linear .78s both; }
html.js.va .ln { animation: sube var(--d) var(--e) both; }
html.js.va .hero__t .ln:nth-child(1) { animation-delay: .1s; }
html.js.va .hero__t .ln:nth-child(2) { animation-delay: .2s; }
html.js.va .hero__p { animation-delay: .32s; }
html.js.va .hero__b { animation-delay: .42s; }
html.js.va .hero__pie { animation-delay: .5s; }
/* если скрипт не дошёл до старта — показать через 4 с */
@keyframes ve2 { to { opacity: 1; } }
html.js:not(.va) .m, html.js:not(.va) .ln { animation: ve2 .01s linear 4s both; }
html.js .ap { opacity: 0; transform: translate3d(0, 18px, 0); }
html.js .ap.cerca { will-change: transform, opacity; }
html.js .ap.hecho { opacity: 1; transform: none; transition: opacity var(--d) var(--e), transform var(--d) var(--e); }
html.js .ap.hecho + .ap.hecho { transition-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
  html.js .m, html.js .ln, html.js .ap { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .fila::before, .fila .fl, .cab__nav, .cab__menu i::before, .cab__menu i::after { transition: none !important; }
}
