

.fam-section { padding: clamp(56px, 7vw, 92px) 0; position: relative; }
.fam-section .section-intro { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.fam-section .section-intro.centered { margin-inline: auto; text-align: center; }
.fam-section .section-intro h2 { color: var(--family-petroleum); font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 850; line-height: 1.04; margin: 0 0 .4em; }
.fam-section .section-intro p { color: rgba(18, 52, 59, .8); font-size: clamp(1.02rem, 1.4vw, 1.16rem); margin: 0; }


.fam-cta {
  display: inline-flex; align-items: center; gap: 9px; min-height: 50px;
  border-radius: 999px; padding: 0 24px; font-weight: 850; color: var(--family-ivory);
  background: var(--family-petroleum); box-shadow: 0 18px 52px rgba(18,52,59,.18);
  transition: transform .22s var(--family-motion), box-shadow .22s var(--family-motion);
}
.fam-cta:hover { transform: translateY(-3px); color: var(--family-ivory); box-shadow: 0 22px 60px rgba(18,52,59,.22); text-decoration: none; }
.fam-cta .arr { transition: transform .22s var(--family-motion); }
.fam-cta:hover .arr { transform: translateX(4px); }
.fam-cta-ghost {
  display: inline-flex; align-items: center; gap: 9px; min-height: 50px; border-radius: 999px;
  padding: 0 22px; font-weight: 800; color: var(--family-petroleum);
  border: 1px solid rgba(18,52,59,.18); background: rgba(255,255,255,.5); backdrop-filter: blur(12px);
  transition: transform .22s var(--family-motion), border-color .22s var(--family-motion);
}
.fam-cta-ghost:hover { transform: translateY(-2px); border-color: rgba(18,52,59,.4); color: var(--family-petroleum); text-decoration: none; }


.eco-wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 940px) { .eco-wrap { grid-template-columns: 1fr; } }

.eco-stage { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1; }
.eco-stage svg.eco-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eco-links line { stroke: rgba(18,52,59,.16); stroke-width: 1.4; transition: stroke .35s var(--family-motion), stroke-width .35s var(--family-motion); }
.eco-links line.hot { stroke: url(#ecoGrad); stroke-width: 2.6; }
.eco-orbit { position: absolute; inset: 8%; border: 1px solid rgba(18,52,59,.1); border-radius: 50%; transform: rotateX(64deg); animation: familyOrbit 22s linear infinite; pointer-events: none; }

.eco-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: clamp(70px, 16%, 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.82); border: 1px solid var(--family-border);
  box-shadow: 0 18px 50px rgba(91,76,61,.16); backdrop-filter: blur(10px); z-index: 2;
}
.eco-core img { width: 60%; }

.eco-node {
  position: absolute; transform: translate(-50%,-50%); cursor: pointer; border: 0; background: none; padding: 0;
  display: grid; place-items: center; gap: 8px; z-index: 3;
}
.eco-node .nd-dot {
  width: clamp(64px, 15vw, 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.72); border: 1px solid var(--family-border); padding: 16px;
  box-shadow: 0 16px 46px rgba(91,76,61,.12); backdrop-filter: blur(12px);
  transition: transform .4s var(--family-motion), box-shadow .4s var(--family-motion), border-color .3s var(--family-motion);
}
.eco-node .nd-dot img { width: 100%; height: 100%; object-fit: contain; }
.eco-node .nd-label { font-size: .82rem; font-weight: 800; color: var(--family-ink-muted); white-space: nowrap; }
.eco-node:hover .nd-dot, .eco-node[aria-pressed="true"] .nd-dot { transform: scale(1.09); box-shadow: 0 22px 56px rgba(18,52,59,.18); border-color: rgba(185,121,74,.5); }
.eco-node[aria-pressed="true"] .nd-label { color: var(--family-petroleum); }

.eco-detail { position: relative; min-height: 280px; }
.eco-card {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .42s var(--family-motion), transform .42s var(--family-motion);
  background: rgba(255,255,255,.68); border: 1px solid var(--family-border); border-radius: 14px;
  padding: clamp(24px, 3vw, 38px); box-shadow: 0 22px 70px rgba(91,76,61,.12); backdrop-filter: blur(16px);
}
.eco-card.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.eco-card .ec-logo { height: 34px; width: auto; margin-bottom: 18px; }
.eco-card .ec-logo.eu { height: 42px; }
.eco-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.eco-badge.live { background: rgba(21,163,110,.12); color: #0e7a52; }
.eco-badge.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok, #15a36e); }
.eco-badge.soon { background: rgba(18,52,59,.07); color: var(--family-ink-muted); }
.eco-card h3 { color: var(--family-petroleum); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 850; margin: 0 0 .2em; }
.eco-card .ec-role { font-family: var(--mono); font-size: .82rem; color: #8a481f; margin: 0 0 1em; }
.eco-card > p { color: rgba(18, 52, 59, .84); margin: 0; line-height: 1.7; }
.eco-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.eco-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--family-petroleum); font-size: .96rem; }
.eco-card li svg { color: var(--family-copper); flex: 0 0 auto; margin-top: 4px; }
.eco-card .eco-cta-row { margin-top: 24px; }


.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: stretch; }
@media (max-width: 940px) { .calc-wrap { grid-template-columns: 1fr; } }

.calc-panel {
  background: rgba(255,255,255,.62); border: 1px solid var(--family-border); border-radius: 14px;
  padding: clamp(26px, 3vw, 38px); box-shadow: 0 16px 46px rgba(91,76,61,.08); backdrop-filter: blur(14px);
  display: grid; gap: 26px; align-content: start;
}
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 800; color: var(--family-petroleum); margin-bottom: 12px; }
.calc-field label .val { font-family: var(--mono); color: var(--family-copper); font-size: 1.02rem; font-weight: 700; }
.calc-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-seg button {
  flex: 1 1 auto; min-width: 76px; min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(18,52,59,.16); background: rgba(255,255,255,.5); color: var(--family-ink-muted);
  font-family: Inter, sans-serif; font-weight: 800; font-size: .92rem; transition: all .22s var(--family-motion);
}
.calc-seg button:hover { border-color: var(--family-copper); color: var(--family-petroleum); }
.calc-seg button[aria-pressed="true"] { background: var(--family-petroleum); border-color: var(--family-petroleum); color: var(--family-ivory); }

.calc-panel input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: rgba(18,52,59,.16); outline-offset: 6px; cursor: pointer;
}
.calc-panel input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--family-copper); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(91,76,61,.25); cursor: grab; transition: transform .18s var(--family-motion); }
.calc-panel input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.calc-panel input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--family-copper); border: 3px solid #fff; cursor: grab; }
.calc-foot { font-size: .82rem; color: rgba(18, 52, 59, .78); margin: 0; line-height: 1.6; }

.calc-out {
  position: relative; overflow: hidden; border-radius: 14px; padding: clamp(28px, 3.5vw, 42px);
  background: linear-gradient(165deg, var(--family-petroleum) 0%, var(--family-petroleum-dark) 100%);
  color: var(--family-ivory); box-shadow: 0 26px 70px rgba(18,52,59,.28); display: flex; flex-direction: column;
}
.calc-out::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,90,31,.28), transparent 68%); pointer-events: none; }
.calc-out .o-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; color: rgba(246,239,231,.6); margin: 0 0 10px; }
.calc-out .o-big { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 850; line-height: 1; letter-spacing: -.02em; color: #fff; }
.calc-out .o-big .cur { color: #ff9d76; font-size: .5em; vertical-align: .35em; margin-right: 3px; }
.calc-out .o-big .per { font-size: .3em; color: rgba(246,239,231,.6); font-weight: 700; }
.calc-out .o-sub { color: rgba(246,239,231,.78); margin: 12px 0 0; font-size: .96rem; line-height: 1.6; }
.calc-rows { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid rgba(246,239,231,.16); display: grid; gap: 11px; }
.calc-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.calc-rows dt { color: rgba(246,239,231,.72); font-size: .92rem; }
.calc-rows dd { margin: 0; font-family: var(--mono); color: #fff; font-size: .95rem; }
.calc-out .calc-cta { margin-top: auto; padding-top: 24px; }
.calc-out .fam-cta { width: 100%; background: var(--family-ivory); color: var(--family-petroleum); }
.calc-out .fam-cta:hover { color: var(--family-petroleum); background: #fff; }


.chat-wrap { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (max-width: 940px) { .chat-wrap { grid-template-columns: 1fr; } }

.phone {
  width: 100%; max-width: 372px; margin-inline: auto; background: #0d252a; border-radius: 34px; padding: 12px;
  box-shadow: 0 44px 100px -36px rgba(18,52,59,.5); border: 1px solid rgba(255,255,255,.06);
}
.phone-screen { background: #ece5db; border-radius: 24px; overflow: hidden; height: 532px; display: flex; flex-direction: column; }
.phone-bar { background: var(--family-petroleum); color: #fff; padding: 13px 15px; display: flex; align-items: center; gap: 11px; }
.phone-bar .pb-ava { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: 0 0 auto; padding: 5px; }
.phone-bar .pb-ava img { width: 100%; height: 100%; object-fit: contain; }
.phone-bar .pb-name { font-weight: 800; font-size: .96rem; line-height: 1.2; }
.phone-bar .pb-status { font-size: .75rem; color: rgba(255,255,255,.7); }
.phone-body { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 13px; font-size: .9rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.07); opacity: 0; transform: translateY(8px); animation: chatBubbleIn .4s var(--family-motion) forwards; }
@keyframes chatBubbleIn { to { opacity: 1; transform: none; } }
.bubble.in { align-self: flex-start; background: #fff; color: var(--family-petroleum); border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #d8efe0; color: var(--family-petroleum); border-top-right-radius: 4px; }
.bubble .t { display: block; text-align: right; font-size: .62rem; color: rgba(18,52,59,.42); margin-top: 3px; }
.chat-sys { align-self: center; font-size: .72rem; color: var(--family-ink-muted); background: rgba(255,255,255,.6); padding: 5px 12px; border-radius: 999px; margin: 6px 0; }
.typing { align-self: flex-start; background: #fff; padding: 12px 14px; border-radius: 13px; border-top-left-radius: 4px; display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb0aa; animation: typedot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typedot { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-replay-row { text-align: center; margin-top: 16px; }

.chat-points { display: grid; gap: 16px; }
.chat-point { display: flex; gap: 14px; align-items: flex-start; }
.chat-point .cp-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(185,121,74,.14); color: var(--family-copper); display: grid; place-items: center; flex: 0 0 auto; }
.chat-point b { display: block; color: var(--family-petroleum); margin-bottom: 2px; }
.chat-point p { margin: 0; color: rgba(18, 52, 59, .8); font-size: .95rem; line-height: 1.55; }
.chat-points .fam-cta { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .eco-orbit, .typing i { animation: none; }
  .bubble { animation: none; opacity: 1; transform: none; }
}


body.family-site .family-footer {
  background: linear-gradient(180deg, var(--family-petroleum) 0%, var(--family-petroleum-dark) 100%);
  color: rgba(246, 239, 231, .72);
  border-top: 1px solid rgba(246, 239, 231, .12);
}
body.family-site .family-footer .family-brand,
body.family-site .family-footer .family-brand span { color: var(--family-ivory); }
body.family-site .family-footer .footer-grid p,
body.family-site .family-footer .foot-bottom { color: rgba(246, 239, 231, .62); }
body.family-site .family-footer .foot-legal { color: rgba(246, 239, 231, .58); border-top-color: rgba(246, 239, 231, .14); }
body.family-site .family-footer .footer-links { color: rgba(246, 239, 231, .82); }
body.family-site .family-footer a { color: rgba(246, 239, 231, .82); }
body.family-site .family-footer a:hover { color: #e0a878; }
body.family-site .family-footer .foot-legal strong { color: var(--family-ivory); }
body.family-site .family-footer .foot-legal a { color: #e3ad81; }


body.family-site .legal { padding: 116px 0 80px; }
body.family-site .legal .wrap { max-width: 860px; }
body.family-site .legal h1 { color: var(--family-petroleum); font-weight: 850; }
body.family-site .legal h2 { color: var(--family-petroleum); font-weight: 800; font-size: 1.3rem; margin-top: 2em; }
body.family-site .legal p, body.family-site .legal li { color: rgba(18, 52, 59, .82); }
body.family-site .legal .updated { color: var(--family-ink-muted); font-family: var(--mono); font-size: .9rem; }
body.family-site .legal a { color: var(--family-copper); }
body.family-site .legal a:hover { color: var(--family-petroleum); }

body.family-site .legal .notice {
  background: rgba(185, 121, 74, .1); border: 1px solid rgba(185, 121, 74, .3);
  border-left: 1px solid rgba(185, 121, 74, .3); border-radius: 12px; padding: 16px 20px;
  color: var(--family-petroleum); margin: 24px 0;
}

body.family-site .contact-grid { gap: 36px; }
body.family-site .legal .card {
  background: var(--family-panel); border: 1px solid var(--family-border); border-radius: 14px;
  padding: 28px; box-shadow: 0 16px 46px rgba(91, 76, 61, .08); backdrop-filter: blur(12px);
}
body.family-site .field label { color: var(--family-petroleum); font-weight: 700; }
body.family-site .field input, body.family-site .field textarea {
  background: rgba(255, 255, 255, .7); border: 1px solid var(--family-border); border-radius: 10px;
}
body.family-site .field input:focus-visible, body.family-site .field textarea:focus-visible {
  border-color: var(--family-copper); box-shadow: 0 0 0 3px rgba(185, 121, 74, .25); outline: none;
}
body.family-site .legal .card .btn-primary {
  background: var(--family-petroleum); color: var(--family-ivory); box-shadow: 0 16px 44px rgba(18, 52, 59, .18);
}
body.family-site .info-row { margin-bottom: 18px; }
body.family-site .info-row .ico { background: rgba(185, 121, 74, .14); color: var(--family-copper); }
body.family-site .info-row strong { color: var(--family-petroleum); }
body.family-site .info-row a { color: var(--family-copper); }


.ambient-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; transition: transform .6s var(--family-motion, cubic-bezier(.16,1,.3,1)); }
.ambient-orb.o1 { width: 42rem; height: 42rem; top: -12rem; right: -10rem; background: radial-gradient(circle, rgba(185,121,74,0.16), transparent 70%); animation: ambOrb 18s ease-in-out infinite; }
.ambient-orb.o2 { width: 34rem; height: 34rem; top: 42%; left: -14rem; background: radial-gradient(circle, rgba(18,52,59,0.09), transparent 70%); animation: ambOrb 24s ease-in-out infinite reverse; }
.ambient-orb.o3 { width: 30rem; height: 30rem; bottom: -10rem; right: 18%; background: radial-gradient(circle, rgba(185,121,74,0.12), transparent 70%); animation: ambOrb 30s ease-in-out infinite 3s; }
@keyframes ambOrb { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(36px,-28px) scale(1.05); } 66% { transform: translate(-20px,20px) scale(.97); } }

body.family-site > .family-header, body.family-site > main, body.family-site > .family-footer { position: relative; z-index: 1; }
[data-tilt] { transition: transform .35s var(--family-motion, cubic-bezier(.16,1,.3,1)); }
.magnetic-on { transition: transform .35s var(--family-motion, cubic-bezier(.16,1,.3,1)); }
@media (prefers-reduced-motion: reduce) { .ambient-orb { animation: none !important; } }


.family-end { display: inline-flex; align-items: center; gap: 12px; justify-self: end; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(18,52,59,0.12); background: rgba(255,255,255,0.55); }
.lang-opt { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; color: rgba(18,52,59,0.55); transition: color .2s var(--family-motion, ease), background .2s var(--family-motion, ease); }
.lang-opt:hover { color: var(--family-petroleum); text-decoration: none; }
.lang-opt.is-active { background: var(--family-petroleum); color: var(--family-ivory); box-shadow: 0 6px 16px rgba(18,52,59,0.18); }
.lang-opt.is-active:hover { color: var(--family-ivory); }
.lang-flag { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); flex: 0 0 auto; }
.lang-flag svg { width: 100%; height: 100%; display: block; }
@media (max-width: 420px) { .lang-opt { padding: 5px 7px; } .lang-opt:not(.is-active) span:not(.lang-flag) { display: none; } }
