/* ═══════════════════════════════════════════════
   Стили секций сайта ООО «УИФПА»
   Новые секции добавлять сюда с комментарием.
   ═══════════════════════════════════════════════ */

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s, border .3s;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

#nav.scrolled {
  background: rgba(10, 12, 18, .97);
  border-bottom: 1px solid var(--gold-b);
}

.nav-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}

.nav-badge {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 13px;
  color: #0a0c12;
  line-height: 1.2;
  text-align: center;
  flex-shrink: 0;
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
}

.nav-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .9rem;
  color: var(--text);
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  padding: .6rem 1.5rem;
  font-size: .88rem;
}

/* ─── HERO ─── */
@keyframes hero-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,12,18,.97) 0%, rgba(14,18,28,.9) 60%, rgba(10,12,18,.97) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-circle {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 650px;
  height: 650px;
  border: 1px solid rgba(201,169,110,.05);
  border-radius: 50%;
  pointer-events: none;
  animation: hero-spin 60s linear infinite;
}

.hero-circle::before {
  content: '';
  position: absolute;
  inset: 80px;
  border: 1px solid rgba(201,169,110,.07);
  border-radius: 50%;
}

.hero-circle::after {
  content: '';
  position: absolute;
  inset: 160px;
  border: 1px solid rgba(201,169,110,.1);
  border-radius: 50%;
}

.hero-cnt {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--px) 4rem;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  max-width: 740px;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--text);
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  overflow: hidden;
  max-width: 880px;
}

.hst {
  padding: 1.5rem 1.5rem;
  border-right: 1px solid var(--gold-b);
}
.hst:last-child { border-right: none; }

.hst-num {
  font-family: var(--fd);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .35rem;
}

.hst-lbl {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ─── ABOUT ─── */
#about { background: var(--bg2); }

.about-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.atext p {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
}

.aadv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-top: 2.5rem;
}

.aadv-i {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .98rem;
  color: var(--text);
}

.aadv-i::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}

.certs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert {
  background: var(--bg3);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cert-ic {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--fd);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.cert strong {
  display: block;
  font-family: var(--fb);
  font-weight: 500;
  color: var(--white);
  font-size: .95rem;
  margin-bottom: .3rem;
}

.cert span {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── SERVICES ─── */
#services { background: var(--bg); }

.srv-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-b);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  overflow: hidden;
}

.srv {
  background: var(--bg2);
  padding: 2rem 1.75rem;
  transition: background var(--tr);
}
.srv:hover { background: var(--bg3); }

.srv-n {
  font-family: var(--fd);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,169,110,.11);
  line-height: 1;
  margin-bottom: .75rem;
}

.srv-ic {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
  color: var(--gold);
}

.srv-t {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .8rem;
}

.srv-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.srv-ul li {
  font-size: .9rem;
  color: var(--muted);
  padding-left: .9rem;
  position: relative;
  line-height: 1.5;
}

.srv-ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ─── PORTFOLIO ─── */
#portfolio { background: var(--bg2); }

.port-g {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.port-c {
  background: var(--bg3);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  overflow: hidden;
  transition: var(--tr);
}
.port-c:hover {
  border-color: rgba(201,169,110,.4);
  transform: translateY(-4px);
}

.port-ph {
  height: 220px;
  background: var(--bg4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.port-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.port-pat {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

.port-lbl {
  position: relative;
  z-index: 1;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .5px;
  text-align: center;
  line-height: 2;
  padding: 0 1rem;
}

.port-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(10,12,18,.9);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 20px;
  border: 1px solid var(--gold-b);
}

.port-info { padding: 1.5rem; }

.port-name {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .4rem;
}

.port-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.port-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold-b);
}

.port-sum {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
}

.port-type {
  font-size: .78rem;
  color: var(--muted);
}

/* ─── CURRENT ─── */
#current { background: var(--bg); }

.cur-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.cur-tot-n {
  font-family: var(--fd);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.cur-tot-l {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .3rem;
}

.cur-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--gold-b);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  overflow: hidden;
}

.cur-i {
  background: var(--bg2);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: background .2s;
}
.cur-i:hover { background: var(--bg3); }

.cur-n {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(201,169,110,.2);
  width: 2.5rem;
  flex-shrink: 0;
}

.cur-name {
  flex: 1;
  min-width: 200px;
  font-size: .98rem;
  color: var(--white);
  line-height: 1.5;
}

.cur-city {
  font-size: .8rem;
  color: var(--muted);
  padding: .3rem .75rem;
  border: 1px solid var(--gold-b);
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── TEAM ─── */
#team { background: var(--bg2); }

.team-g {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 560px));
  gap: 1.5rem;
}

.team-c {
  background: var(--bg3);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  overflow: hidden;
}

.team-ph {
  aspect-ratio: 1146 / 928;
  background: var(--bg4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.team-pat {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.team-ico {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold);
}

.team-info { padding: 1.75rem; }

.team-name {
  font-family: var(--fd);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .25rem;
}

.team-role {
  font-size: .78rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.team-desc {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.8;
}

.team-add {
  background: transparent;
  border: 1px dashed var(--gold-b);
  border-radius: var(--rl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  text-align: center;
  padding: 2rem;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.85;
}

/* ─── INVESTORS ─── */
#investors { background: var(--bg); }

.inv-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

.inv-intro p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.inv-feats {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.inv-f {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.inv-f-ic {
  width: 40px;
  height: 40px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-b);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 15px;
  font-family: var(--fd);
  font-weight: 700;
}

.inv-f-t strong {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .25rem;
}

.inv-f-t span {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

.yield-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
}

.yield-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.yield-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3rem;
  background: linear-gradient(to right, transparent, var(--bg2));
  pointer-events: none;
  z-index: 1;
}

.yield-t {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 500px;
}

.yield-t th {
  background: var(--bg3);
  color: var(--gold);
  font-family: var(--fb);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .5px;
  padding: 1rem 1.25rem;
  text-align: left;
  border: 1px solid var(--gold-b);
}

.yield-t td {
  padding: .9rem 1.25rem;
  border: 1px solid var(--gold-b);
  color: var(--text);
  background: var(--bg2);
  font-size: .95rem;
}

.yield-t td:first-child { color: var(--white); }

.yrate {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
}

.yrate.max {
  color: #e8c070;
  font-size: 1.5rem;
}

.calc-box {
  background: var(--bg2);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  padding: 2.5rem;
}

.calc-title {
  font-family: var(--fd);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2rem;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cf label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .5rem;
  letter-spacing: .3px;
}

.cf input,
.cf select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--gold-b);
  border-radius: var(--r);
  color: var(--white);
  font-family: var(--fb);
  font-size: 16px;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}

.cf input:focus,
.cf select:focus { border-color: var(--gold); }

.cf select option { background: var(--bg3); }

.calc-res {
  background: var(--bg3);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cr-i { text-align: center; }

.cr-n {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .35rem;
}

.cr-l {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
}

.risks-g {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.risk-c {
  background: var(--bg2);
  border: 1px solid var(--gold-b);
  border-radius: var(--rl);
  padding: 1.6rem;
}

.risk-t {
  font-size: .95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .55rem;
}

.risk-tx {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── CONTACT ─── */
#contact { background: var(--bg2); }

.con-g {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
}

.con-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.con-i {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.con-ic {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-b);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.con-lbl {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .25rem;
}

.con-val {
  font-size: .98rem;
  color: var(--white);
  line-height: 1.7;
}

.con-val a { color: var(--white); transition: color .2s; }
.con-val a:hover { color: var(--gold); }

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ff {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.ff label {
  font-size: .82rem;
  color: var(--muted);
}

.ff input,
.ff select,
.ff textarea {
  background: var(--bg3);
  border: 1px solid var(--gold-b);
  border-radius: var(--r);
  color: var(--white);
  font-family: var(--fb);
  font-size: 16px;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s;
  resize: none;
  -webkit-appearance: none;
  width: 100%;
}

.ff input:focus,
.ff select:focus,
.ff textarea:focus { border-color: var(--gold); }

.ff select option { background: var(--bg3); }
.ff textarea { min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 1.1rem;
  font-size: 1rem;
  justify-content: center;
  margin-top: .5rem;
}

.form-note {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ─── FOOTER ─── */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--gold-b);
  padding: 3.5rem 0 max(2.5rem, env(safe-area-inset-bottom));
}

.foot-in {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.foot-about p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 1.1rem;
}

.foot-col h4 {
  font-family: var(--fb);
  font-size: .75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.foot-links a {
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s;
}
.foot-links a:hover { color: var(--gold); }

.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,169,110,.07);
}

.foot-bot p {
  font-size: .82rem;
  color: var(--muted);
}

.foot-reqs {
  display: flex;
  gap: 1.5rem;
  font-size: .78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
