/* ===== FONTS & VARIABLES ===== */
:root {
  --navy: #0D1B2A;
  --navy-2: #12233A;
  --gold: #D4AF37;
  --gold-light: #E8C468;
  --white: #FFFFFF;
  --dark: #1A1A1A;
  --gray: #6E7481;
  --card: #101d30;
  --border: rgba(212, 175, 55, 0.2);
  --gold-grad: linear-gradient(135deg, #E8C468 0%, #B8862F 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.gold { color: var(--gold); }
.text-center { text-align: center; }

/* ===== BRAND PATTERN BG (финальная версия — точечный паттерн) ===== */
.pattern-bg { position: relative; }
.pattern-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5; pointer-events: none;
}
.pattern-bg > .container,
.pattern-bg > * { position: relative; z-index: 1; }
.pattern-bg > .hero-video,
.pattern-bg > .hero-video-overlay,
.pattern-bg > .stats-particles,
.pattern-bg > .stats-spotlight { z-index: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  border-radius: 4px;
}
.btn-gold { background: var(--gold-grad); color: var(--navy); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212,175,55,0.35); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ===== LOGO ===== */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; flex-shrink: 0; transition: width 0.4s ease, height 0.4s ease; }
.logo-txt { line-height: 1; }
.logo-txt .l-main { font-size: 20px; font-weight: 700; }
.logo-txt .l-sub { font-size: 8px; font-weight: 500; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-top: 3px; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 40px; width: 100%; z-index: 1000;
  background: rgba(13,27,42,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  transition: top 0.4s ease, background 0.4s ease;
}
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; transition: height 0.4s ease; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: var(--gold); transition: transform 0.35s, opacity 0.25s; transform-origin: center; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== NAV LINKS ===== */
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > li > a {
  position: relative;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 2px; transition: color 0.3s;
}
.nav-links > li > a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold-grad); transition: width 0.35s ease; box-shadow: 0 0 8px rgba(212,175,55,0.5);
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 100%; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--gold); }

/* ===== HEADER RIGHT / SOCIALS ===== */
.header-right { display: flex; align-items: center; gap: 22px; }
.head-socials { display: flex; align-items: center; gap: 10px; }
.head-socials a {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid rgba(212,175,55,0.35); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); transition: all 0.3s;
}
.head-socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.head-socials a svg { width: 16px; height: 16px; display: block; }
.head-socials .s-max { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; line-height: 1; }

.mobile-socials { display: none; }

/* ===== LANG SWITCH ===== */
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  background: none; border: none; cursor: pointer; color: var(--gray);
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 4px 2px; transition: 0.3s;
}
.lang-btn.active, .lang-btn:hover { color: var(--gold); }
.lang-sep { color: rgba(212,175,55,0.3); }

/* ===== CTA PULSE ===== */
.nav-cta { position: relative; overflow: hidden; }
.cta-pulse {
  position: absolute; inset: 0; background: rgba(255,255,255,0.35);
  transform: translateX(-120%) skewX(-20deg); animation: shine 3.5s infinite;
}
@keyframes shine {
  0%, 60% { transform: translateX(-120%) skewX(-20deg); }
  80%, 100% { transform: translateX(220%) skewX(-20deg); }
}

/* ===== TOPBAR ===== */
.topbar {
  background: #0a1523; border-bottom: 1px solid rgba(212,175,55,0.1); font-size: 12.5px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001; transition: transform 0.4s ease;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-left { display: flex; gap: 26px; }
.tb-item { display: flex; align-items: center; gap: 7px; color: var(--gray); transition: 0.3s; }
.tb-item:hover { color: var(--gold); }
.tb-ic { color: var(--gold); font-size: 13px; }
.tb-slogan { color: var(--gold); letter-spacing: 2px; font-size: 11px; text-transform: uppercase; font-weight: 600; }

body.scrolled .topbar { transform: translateY(-100%); }
body.scrolled header { top: 0; }
body.scrolled nav { height: 66px; }
body.scrolled .logo-mark { width: 40px; height: 40px; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: absolute; bottom: -1px; left: 0; height: 2px; width: 0%;
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(212,175,55,0.6);
  transition: width 0.1s linear;
}

/* ===== NAV OVERLAY (финальная версия) ===== */
.nav-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(5, 12, 22, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.nav-overlay.show { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 160px 0 80px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.08), transparent 60%);
}
.page-hero .crumb { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 16px; }
.page-hero .crumb a:hover { color: var(--gold); }
.page-hero .crumb .gold { color: var(--gold); }
.page-hero h1 { font-size: 52px; font-weight: 700; margin-bottom: 18px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--gray); font-size: 17px; }

/* ===== SECTION HEAD ===== */
.sec { padding: 100px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.sec-label { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.sec-title { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.sec-sub { color: var(--gray); font-size: 16px; }
.sec--pt-0  { padding-top: 0; }
.sec--pt-sm { padding-top: 40px; }
.sec--navy2 { background: var(--navy-2); }
.sec-title--left { text-align: left; }
/* ===== HERO (home) ===== */
.hero { padding: 170px 0 100px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 85% 15%, rgba(212,175,55,0.1), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-label { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: 56px; font-weight: 700; line-height: 1.12; margin-bottom: 24px; }
.hero .lead { color: var(--gray); font-size: 18px; margin-bottom: 38px; max-width: 500px; }
.hero-btns { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.hero-visual { position: relative; }

/* ===== HERO VIDEO BG ===== */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.75) 50%, rgba(13,27,42,0.55) 100%),
    radial-gradient(ellipse at 85% 15%, rgba(212,175,55,0.12), transparent 55%);
}
.hero .container { position: relative; z-index: 1; }

/* ===== HERO VIDEO CONTROLS ===== */
.hero-controls { position: absolute; bottom: 24px; right: 24px; z-index: 3; display: flex; gap: 10px; }
.hc-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.4); background: rgba(13,27,42,0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--gold); font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.hc-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(212,175,55,0.35); }
.hc-btn .ic-play { display: none; }
.hc-btn.is-paused .ic-pause { display: none; }
.hc-btn.is-paused .ic-play { display: inline; }
.hc-btn .ic-sound { display: none; }
.hc-btn.is-on .ic-muted { display: none; }
.hc-btn.is-on .ic-sound { display: inline; }

/* ===== HERO GLASS CARD ===== */
.hero-card {
  position: relative;
  background: rgba(13, 27, 42, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,0.30);
  border-radius: 20px; padding: 36px; max-width: 460px; margin-left: auto;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
}
.hero-card.floating { animation: heroCardFloat 6s ease-in-out infinite; }
@keyframes heroCardFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
.hero-card-glow {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.22), transparent 65%);
  top: var(--gy, 30%); left: var(--gx, 70%); transform: translate(-50%,-50%);
  pointer-events: none; opacity: 0; transition: opacity 0.5s ease; z-index: 0;
}
.hero-card:hover .hero-card-glow { opacity: 1; }
.hero-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,0.6), transparent 40%, transparent 60%, rgba(212,175,55,0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
.hero-card > *:not(.hero-card-glow) { position: relative; z-index: 2; }

.hero-card-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: var(--gold); text-transform: uppercase;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(212,175,55,0.3); background: rgba(212,175,55,0.05); margin-bottom: 30px;
}
.hero-card-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.35; transform:scale(.8);} }

.hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 30px; }
.hcs-item h3 {
  font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 7px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hcs-item p { font-size: 13px; color: #b8c0cc; }

.hero-card-foot {
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
}
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; border: 2px solid var(--navy); margin-left: -11px;
}
.avatars span:first-child { margin-left: 0; }
.hero-card-foot p { font-size: 12.5px; color: var(--gray); line-height: 1.4; }

/* ===== STATS (PREMIUM) ===== */
.stats {
  position: relative;
  background: linear-gradient(180deg, var(--navy-2) 0%, #0d1c30 100%);
  border-block: 1px solid rgba(212,175,55,0.12);
  padding: 44px 0 48px;
  overflow: hidden;
}
.stats-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(212,175,55,0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.stats-head { text-align: center; margin-bottom: 46px; }
.stats-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
  padding: 9px 22px; border-radius: 100px;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.04);
  backdrop-filter: blur(6px);
}
.stats-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.stat {
  position: relative;
  text-align: center;
  padding: 16px 20px;
  transition: transform 0.4s var(--ease);
}
.stat::after {
  content: '';
  position: absolute; top: 18%; right: 0;
  width: 1px; height: 64%;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.35), transparent);
}
.stat:last-child::after { display: none; }
.stat:hover { transform: translateY(-8px); }
.stat-ic {
  position: relative;
  width: 46px; height: 46px; margin: 0 auto 12px;
  border: 1px solid rgba(212,175,55,0.35); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: rgba(212,175,55,0.05);
  transition: all 0.4s var(--ease);
}
.stat-ic svg { width: 24px; height: 24px; }
.stat:hover .stat-ic {
  background: var(--gold-grad);
  color: var(--navy);
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 10px 26px rgba(212,175,55,0.4);
}
.stat-ic::before {
  content: ''; position: absolute; inset: -6px; border-radius: 18px;
  background: radial-gradient(circle, rgba(212,175,55,0.35), transparent 70%);
  opacity: 0; transition: opacity 0.4s; z-index: -1;
}
.stat:hover .stat-ic::before { opacity: 1; animation: haloPulse 1.6s ease-in-out infinite; }
@keyframes haloPulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%     { transform: scale(1.25); opacity: 0.2; }
}
.stat h3 {
  font-size: 38px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: baseline; justify-content: center;
  margin-bottom: 8px;
  letter-spacing: -1px;
  background: linear-gradient(100deg, #B8862F 0%, #E8C468 35%, #FFF3D0 50%, #E8C468 65%, #B8862F 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat h3 .stat-suf, .stat h3 .stat-pre { font-size: 28px; }
.stat.counted h3 { animation: numShine 2.4s ease-in-out 0.4s; }
@keyframes numShine {
  0%   { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}
.stat p {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); font-weight: 500;
}
.stat-bar {
  width: 40px; height: 3px; margin: 10px auto 0;
  background: rgba(212,175,55,0.15); border-radius: 3px; overflow: hidden;
}
.stat-bar span {
  display: block; height: 100%; width: 0;
  background: var(--gold-grad); border-radius: 3px;
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
  transition: width 1.2s var(--ease) 0.3s;
}
.stat.counted .stat-bar span { width: 100%; }
.stat.reveal.visible .stat-ic { animation: statPop 0.6s var(--ease) both; }
.stat.reveal:nth-child(1).visible .stat-ic { animation-delay: 0.05s; }
.stat.reveal:nth-child(2).visible .stat-ic { animation-delay: 0.15s; }
.stat.reveal:nth-child(3).visible .stat-ic { animation-delay: 0.25s; }
.stat.reveal:nth-child(4).visible .stat-ic { animation-delay: 0.35s; }
@keyframes statPop {
  0%   { opacity: 0; transform: scale(0.6) translateY(10px); }
  60%  { transform: scale(1.1) translateY(0); }
  100% { opacity: 1; transform: scale(1); }
}
.stat::before {
  content: ''; position: absolute; inset: 8px; border-radius: 16px;
  border: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
  pointer-events: none;
}
.stat:hover::before {
  border-color: rgba(212,175,55,0.25);
  box-shadow: inset 0 0 30px rgba(212,175,55,0.06);
}
.stats-particles {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: .6;
}
.stats-spotlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(212,175,55,0.10), transparent 60%);
}
.stats:hover .stats-spotlight { opacity: 1; }
.stats .container { position: relative; z-index: 3; }
.stat-num, .stat-suf, .stat-pre { display: inline-block; }
.odo-static { display: inline-flex; align-items: flex-start; height: 1em; }

/* ===== PORTFOLIO (базовая сетка) ===== */
.filter { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 45px; }
.filter button { background: transparent; border: 1px solid rgba(212,175,55,0.3); color: var(--white); padding: 10px 24px; border-radius: 30px; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
.filter button.active, .filter button:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.port-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.port-item { border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); transition: 0.35s; display: block; }
.port-item:hover { border-color: var(--gold); transform: translateY(-6px); }
.port-thumb { aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center; }
.port-thumb .p-ic { font-size: 54px; z-index: 1; }
.port-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.6)); }
.port-thumb.t1 { background: radial-gradient(ellipse at 40% 40%, rgba(212,175,55,0.3), #0f1e30 70%); }
.port-thumb.t2 { background: radial-gradient(ellipse at 60% 30%, rgba(212,175,55,0.2), #0c1826 70%); }
.port-thumb.t3 { background: radial-gradient(ellipse at 40% 60%, rgba(212,175,55,0.25), #101f31 70%); }
.port-info { padding: 20px 22px; border-top: 1px solid rgba(255,255,255,0.06); background: var(--card); }
.port-info .cat { color: var(--gold); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.port-info h4 { font-size: 18px; font-weight: 600; }
.port-item.hide { display: none; }

/* ===== PROCESS ===== */
.proc-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 26px; }
.proc-step { text-align: center; }
.proc-num { width: 70px; height: 70px; margin: 0 auto 18px; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--gold); background: var(--card); transition: 0.3s; }
.proc-step:hover .proc-num { background: var(--gold-grad); color: var(--navy); }
.proc-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.proc-step p { font-size: 13px; color: var(--gray); }

/* ===== CTA BANNER (объединённая версия) ===== */
.cta-banner { padding: 90px 0; text-align: center; background: linear-gradient(135deg, var(--navy-2), var(--navy)); border-block: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-banner h2 { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.cta-banner p { color: var(--gray); font-size: 17px; margin-bottom: 30px; }
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  width: 700px; height: 700px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(212,175,55,0.10), transparent 65%);
  filter: blur(30px); pointer-events: none; z-index: 0;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-label {
  display: inline-block; margin-bottom: 16px;
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.cta-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid.top { align-items: flex-start; }
.about-visual { aspect-ratio: 1/1; max-height: 440px; border: 1px solid var(--border); border-radius: 8px; background: radial-gradient(ellipse at 50% 45%, rgba(212,175,55,0.2), transparent 60%), linear-gradient(160deg,#14283f,#0a1523); display: flex; align-items: center; justify-content: center; }
.about-visual svg { width: 170px; height: 170px; }
.about-list { margin: 25px 0 35px; }
.about-list li { padding: 10px 0; display: flex; gap: 12px; font-size: 15px; }
.about-list .chk { color: var(--gold); }
.about-txt p { color: var(--gray); margin-bottom: 16px; }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.team-card { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; text-align: center; transition: 0.3s; }
.team-card:hover { border-color: var(--gold); transform: translateY(-6px); }
.team-photo { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 60px; background: radial-gradient(ellipse at 50% 40%, rgba(212,175,55,0.25), #0f1e30); }
.team-info { padding: 22px; }
.team-info h4 { font-size: 18px; font-weight: 600; }
.team-info .role { color: var(--gold); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ===== CASE PAGE (старые обёртки) ===== */
.case-hero-img { aspect-ratio: 21/9; border-radius: 10px; margin-bottom: 50px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 80px; background: radial-gradient(ellipse at 50% 40%, rgba(212,175,55,0.25), #0f1e30 70%); }
.case-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-bottom: 55px; }
.case-meta div { border-left: 2px solid var(--gold); padding-left: 18px; }
.case-meta .lbl { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.case-meta .val { font-size: 17px; font-weight: 600; }
.case-body { max-width: 820px; margin: 0 auto; }
.case-body h2 { font-size: 30px; margin: 40px 0 18px; }
.case-body p { color: #b8c0cc; margin-bottom: 18px; }
.case-results { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin: 40px 0; }
.case-results .r { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 30px; text-align: center; }
.case-results .r h3 { font-size: 40px; color: var(--gold); font-weight: 800; }
.case-results .r p { font-size: 13px; color: var(--gray); }
.case-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== CASE PAGE (новые обёртки) ===== */
.case-cover {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 420px;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,175,55,0.18), #0f1e30 70%);
  display: flex; align-items: center; justify-content: center;
}
.case-cover-ic { font-size: 90px; }
.case-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.case-fact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: 0.3s;
}
.case-fact:hover { border-color: var(--gold); transform: translateY(-4px); }
.case-fact .cf-label { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.case-fact h3 { margin-top: 6px; font-size: 18px; font-weight: 600; }
.case-quote {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 42px;
}
/* ===== CASE PAGE (новые обёртки) — продолжение ===== */
.case-quote-mark { font-size: 40px; line-height: 1; }
.case-quote-text { font-size: 20px; line-height: 1.6; margin: 16px 0; }
.case-quote h4 { font-size: 18px; font-weight: 600; }
.case-quote-role { color: var(--gray); font-size: 14px; margin-top: 4px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
.c-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; transition: 0.3s; }
.c-row:hover { color: var(--gold); }
.c-ic { width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 42px; }
.form-group { margin-bottom: 18px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; background: var(--navy); border: 1px solid rgba(255,255,255,0.1); color: var(--white);
  padding: 14px 16px; border-radius: 5px; font-family: inherit; font-size: 14px; transition: 0.3s;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: none; border-color: var(--gold); }
.form-card ::placeholder { color: #5a6472; }

/* ===== FORM: сообщения об ошибках/успехе ===== */
.form-error {
  display: block;
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 6px;
  min-height: 14px;
}
.form-card input.invalid,
.form-card textarea.invalid,
.form-card select.invalid {
  border-color: #ff6b6b;
}
.form-note { font-size: 12px; color: var(--gray); margin-top: 4px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; animation: fadeInUp 0.5s ease; }
.form-success .fs-ic {
  width: 70px; height: 70px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800;
}
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--gray); }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== SCROLL TO TOP BUTTON (premium rebuild) ===== */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 58px; height: 58px;
  border: none; cursor: pointer; z-index: 1003;
  background: none; padding: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transform: translateY(24px) scale(0.8);
  transition: opacity 0.45s ease, transform 0.5s var(--ease), visibility 0.45s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* внутренняя круглая сердцевина */
.st-core {
  position: relative; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--gold);
  box-shadow: 0 8px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease);
}
.scroll-top:hover .st-core {
  background: var(--gold-grad); color: var(--navy);
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(212,175,55,0.45);
}

/* стрелка */
.st-arrow { width: 20px; height: 20px; transition: transform 0.35s var(--ease); }
.scroll-top:hover .st-arrow { transform: translateY(-3px); }

/* кольцо-прогресс */
.st-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg); z-index: 1; pointer-events: none;
  overflow: visible;
}
.st-ring-bg {
  fill: none; stroke: rgba(212,175,55,0.16); stroke-width: 2.5;
}
.st-ring-progress {
  fill: none; stroke: url(#stGrad); stroke-width: 2.5; stroke-linecap: round;
  stroke: var(--gold);
  stroke-dasharray: 131.95; stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.12s linear;
  filter: drop-shadow(0 0 4px rgba(212,175,55,0.55));
}

/* пульсирующее свечение при появлении */
.scroll-top::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.35);
  opacity: 0; z-index: 0; pointer-events: none;
}
.scroll-top.show::after { animation: stPulse 2.4s ease-out infinite; }
@keyframes stPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.35); }
  100% { opacity: 0;   transform: scale(1.35); }
}

/* ===== SERVICES ===== */
.services-sec { position: relative; overflow: hidden; }
.serv-bg-glow {
  position: absolute; top: 20%; left: 50%;
  width: 600px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212,175,55,0.08), transparent 65%);
  pointer-events: none; filter: blur(20px);
}
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1; }
.serv-card {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px; border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.14);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
  transform-style: preserve-3d; will-change: transform;
}
.serv-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,.6), transparent 40%, transparent 60%, rgba(212,175,55,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.serv-card:hover { border-color: rgba(212,175,55,0.4); box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.serv-card:hover::before { opacity: 1; }
.serv-spot {
  position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: radial-gradient(300px circle at var(--sx,50%) var(--sy,0%), rgba(212,175,55,0.14), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.serv-card:hover .serv-spot { opacity: 1; }
.serv-num {
  position: absolute; top: 22px; right: 26px;
  font-size: 42px; font-weight: 800; line-height: 1;
  color: rgba(212,175,55,0.12); transition: color .35s; pointer-events: none;
}
.serv-card:hover .serv-num { color: rgba(212,175,55,0.28); }
.serv-badge {
  position: absolute; top: 20px; left: 30px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #0D1B2A; background: linear-gradient(135deg,#F0D97D,#D4AF37);
  box-shadow: 0 4px 14px rgba(212,175,55,.4); z-index: 2;
}
.is-hit { border-color: rgba(212,175,55,0.35); }
.serv-ic {
  width: 62px; height: 62px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.04));
  border: 1px solid rgba(212,175,55,.2);
  transition: transform .4s, background .4s;
}
.serv-ic svg { width: 26px; height: 26px; color: #D4AF37; }
.serv-card:hover .serv-ic {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, rgba(212,175,55,.3), rgba(212,175,55,.08));
}
.serv-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.serv-card p  { color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.serv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.serv-tags span {
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.15);
  color: rgba(212,175,55,.85);
}
.serv-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto;
  padding-top: 18px; border-top: 1px solid rgba(212,175,55,.1);
}
.serv-price { font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: 0.3px; }
.serv-card .more {
  display: inline-flex; align-items: center; gap: 8px;
  color: #D4AF37; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.serv-card .more span { transition: transform .3s; }
.serv-card:hover .more span { transform: translateX(6px); }

/* ===== FOOTER ===== */
.footer { background: #0a1523; border-top: 1px solid rgba(212,175,55,0.1); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 45px; padding-bottom: 50px; }
.footer-logo { margin-bottom: 18px; }
.footer-desc { color: var(--gray); font-size: 13px; margin: 16px 0 22px; max-width: 300px; }
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-socials a {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid rgba(212,175,55,0.4); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); transition: 0.3s;
}
.footer-socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.footer-socials a svg { width: 18px; height: 18px; display: block; }
.footer-col h4 { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--gray); font-size: 13px; transition: 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-contacts li { color: var(--gray); font-size: 13px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05); padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: #5a6472;
}
.footer-slogan { color: var(--gold); letter-spacing: 1px; }

/* ===== PRICE GRID ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 32px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18); border-radius: 18px; text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  backdrop-filter: blur(6px);
}
.price-card:hover { transform: translateY(-8px); border-color: rgba(212, 175, 55, 0.5); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.price-card--featured { border-color: rgba(212, 175, 55, 0.55); background: rgba(212, 175, 55, 0.06); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.price-card--featured:hover { transform: translateY(-12px) scale(1.02); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 18px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #0D1B2A; background: linear-gradient(135deg, #F0D48A, #D4AF37); border-radius: 30px;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.price-card h3 { font-size: 24px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.price-value { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 24px; }
.price-list { list-style: none; padding: 0; margin: 0 0 30px; flex-grow: 1; text-align: left; }
.price-list li { padding: 10px 0; font-size: 15px; color: rgba(255, 255, 255, 0.82); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.price-list li:last-child { border-bottom: none; }
.price-card .btn { width: 100%; margin-top: auto; }

/* ===== PORTFOLIO — PREMIUM (LUX) ===== */
.port-hero { position: relative; overflow: hidden; }
.port-hero .gold-shine {
  background: linear-gradient(110deg,#D4AF37 20%,#fff5cc 45%,#D4AF37 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% auto; animation: goldShine 4s linear infinite;
}
@keyframes goldShine { to { background-position: 200% center; } }
.port-hero-orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
.port-hero-orbs span:nth-child(1){ width:320px;height:320px;background:#D4AF37;top:-80px;right:-60px;animation:floatOrb 9s ease-in-out infinite; }
.port-hero-orbs span:nth-child(2){ width:240px;height:240px;background:#1B6CA8;bottom:-60px;left:10%;animation:floatOrb 11s ease-in-out infinite reverse; }
.port-hero-orbs span:nth-child(3){ width:180px;height:180px;background:#D4AF37;top:40%;left:45%;opacity:.2;animation:floatOrb 13s ease-in-out infinite; }
@keyframes floatOrb { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-30px)} }
.port-hero-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; }
.phs { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.phs-val { display: inline-flex; align-items: baseline; }
.phs-num, .phs-suf, .phs-pre {
  font-size: 38px; font-weight: 800;
  background: linear-gradient(135deg,#F0D48A,#D4AF37);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.phs small { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.6); letter-spacing:.5px; -webkit-text-fill-color: initial; }
.phs-div { width: 1px; height: 44px; background: linear-gradient(transparent,rgba(212,175,55,.5),transparent); }
.filter-lux { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 50px; }
.filter-lux button {
  position: relative; padding: 12px 26px; border-radius: 50px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(212,175,55,.2);
  color: rgba(255,255,255,.75); font-size: 15px; font-weight: 500; cursor: pointer;
  overflow: hidden; transition: color .35s ease, border-color .35s ease, transform .25s ease;
}
.filter-lux button span { position: relative; z-index: 2; }
.filter-lux button::before {
  content:""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg,#F0D48A,#D4AF37);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.filter-lux button:hover { color:#fff; border-color: rgba(212,175,55,.5); transform: translateY(-2px); }
.filter-lux button.active { color:#0D1B2A; border-color: transparent; }
.filter-lux button.active::before { transform: scaleX(1); }
.port-grid-lux { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; grid-auto-flow: dense; }
.port-lux.is-big { grid-column: span 2; grid-row: span 2; }
.port-lux {
  position: relative; display: block; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(212,175,55,.15); text-decoration: none;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease, border-color .5s ease;
  min-height: 240px; transform-style: preserve-3d;
}
.port-lux:hover { transform: translateY(-8px); border-color: rgba(212,175,55,.5); box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 40px rgba(212,175,55,.15); }
.port-lux.is-big { min-height: 504px; }
.port-lux .port-thumb {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: transform .6s ease;
}
.port-lux:hover .port-thumb { transform: scale(1.08); }
/* luxe-градиенты привязаны строго к .port-grid-lux, чтобы не ломать case.html */
.port-grid-lux .port-thumb.t1 { background: linear-gradient(135deg,#2a1a3e,#1B6CA8); }
.port-grid-lux .port-thumb.t2 { background: linear-gradient(135deg,#0D1B2A,#1B6CA8); }
.port-grid-lux .port-thumb.t3 { background: linear-gradient(135deg,#3a2a1a,#8a6a2a); }
.port-lux .p-ic { font-size: 56px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); transition: transform .5s ease; }
.port-lux.is-big .p-ic { font-size: 90px; }
.port-lux:hover .p-ic { transform: scale(1.15) rotate(-4deg); }
.p-shine {
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg,transparent,rgba(255,255,255,.25),transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.port-lux:hover .p-shine { left: 120%; }
.port-lux .port-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 22px; background: linear-gradient(transparent,rgba(13,27,42,.9) 60%);
  transition: transform .45s ease, opacity .45s ease;
}
.port-lux .cat { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color:#D4AF37; margin-bottom: 4px; }
.port-lux .port-info h4 { font-size: 20px; color:#fff; }
.port-lux.is-big .port-info h4 { font-size: 26px; }
.port-lux:hover .port-info { transform: translateY(6px); opacity: 0; }
.p-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  padding: 26px; background: linear-gradient(transparent 20%, rgba(13,27,42,.94));
  opacity: 0; transform: translateY(20px); transition: opacity .45s ease, transform .45s ease;
}
.port-lux:hover .p-overlay { opacity: 1; transform: translateY(0); }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-tags span {
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.3); color:#F0D48A;
}
.p-metric { display: flex; gap: 26px; }
.p-metric strong {
  display: block; font-size: 24px;
  background: linear-gradient(135deg,#F0D48A,#D4AF37);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.p-metric small { font-size: 12px; color: rgba(255,255,255,.6); }
/* ===== хвост LUX-портфолио (продолжение .p-view) ===== */
.p-view { font-size: 15px; font-weight: 600; color:#fff; display: inline-flex; align-items: center; gap: 6px; }
.p-view::after { content:""; display:block; width:0; height:1px; background:#D4AF37; transition:width .4s ease; }
.port-lux:hover .p-view::after { width: 40px; }

.port-lux.reveal { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease; }
.port-lux.reveal.visible { opacity: 1; transform: translateY(0); }
.port-lux.hide { display: none; }

/* ===== CLIENTS MARQUEE ===== */
.clients-strip { padding: 60px 0 20px; overflow: hidden; }
.clients-title { text-align: center; color: rgba(255,255,255,.5); letter-spacing: 1px; margin-bottom: 34px; }
.marquee {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
}
.marquee-track { display: flex; gap: 70px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 30px; font-weight: 800; letter-spacing: 3px; color: rgba(255,255,255,.14);
  transition: color .3s ease; white-space: nowrap;
}
.marquee-track span:hover { color:#D4AF37; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================================================
   ✦ RESPONSIVE
   =================================================== */
@media (max-width: 1200px) {
  .head-socials { display: none; }
  .tb-hours { display: none; }
}

@media (max-width: 1024px) {
  .serv-grid, .port-grid, .team-grid { grid-template-columns: repeat(2,1fr); }
  .proc-grid { grid-template-columns: repeat(3,1fr); gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-facts  { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: 42px; }
  .case-meta { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 992px) {
  .serv-grid { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 40px; }
  .price-card--featured:hover { transform: translateY(-8px); }
  .port-grid-lux { grid-template-columns: repeat(2,1fr); }
  .port-lux.is-big { grid-column: span 2; grid-row: span 1; min-height: 300px; }
}

@media (max-width: 900px) {
  .topbar-left .tb-item:not(:first-child) { display: none; }
  .tb-slogan { display: none; }
  .lang-switch { display: none; }
}

@media (max-width: 768px) {
  .topbar { position: static; }
  header { top: 0; }
  body.scrolled header { top: 0; }

  .stats-particles { opacity: 0.5; }

  .nav-cta, .header-right { display: none; }
  .burger { display: flex; z-index: 1002; }

  .nav-links {
    display: flex !important;
    position: fixed; top: 0; right: 0;
    width: 300px; max-width: 85vw; height: 100vh;
    flex-direction: column; align-items: flex-start;
    background: #0a1523; padding: 90px 30px 30px; gap: 8px;
    border-left: 1px solid var(--border); z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links.open > li { width: 100%; }
  .nav-links.open > li > a {
    display: block; padding: 14px 0; font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links.open > li > a::after { display: none; }

  .nav-links.open .mobile-socials {
    display: flex; flex-wrap: wrap; gap: 12px;
    padding-top: 24px; margin-top: 14px; width: 100%;
  }
  .mobile-socials a {
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid rgba(212,175,55,0.4); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); transition: 0.3s;
  }
  .mobile-socials a:hover { background: var(--gold); color: var(--navy); }
  .mobile-socials a svg { width: 18px; height: 18px; display: block; }
  .mobile-socials .s-max { font-size: 11px; font-weight: 800; line-height: 1; }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero { padding: 130px 0 70px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16px; }
  .hero-btns { justify-content: flex-start; }
  .hero-card { max-width: 100%; margin: 0 auto; }
  .hero-card.floating { animation: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .stat::after { display: none; }

  .serv-grid,
  .port-grid,
  .team-grid,
  .proc-grid,
  .case-meta,
  .case-facts,
  .case-results,
  .footer-grid,
  .port-grid-lux {
    grid-template-columns: 1fr;
  }

  .port-lux.is-big { grid-column: span 1; min-height: 260px; }

  .page-hero h1 { font-size: 36px; }
  .sec-title, .cta-banner h2 { font-size: 30px; }
  .sec { padding: 70px 0; }

  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  .port-hero-stats { gap: 10px 18px; }
  .phs-num, .phs-suf, .phs-pre { font-size: 30px; }
  .phs-div { display: none; }

  .marquee-track span { font-size: 22px; }

  .scroll-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }

  .case-nav { flex-direction: column; }
  .case-nav .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 30px; }
  .logo-txt .l-main { font-size: 18px; }
  .btn { padding: 12px 26px; font-size: 12px; }
  .form-card { padding: 28px 22px; }
  .price-card { padding: 34px 24px; }
  .stat h3 { font-size: 32px; }
  .stat h3 .stat-suf, .stat h3 .stat-pre { font-size: 24px; }
  .hero-card-stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .hcs-item h3 { font-size: 32px; }
}

/* ===================================================
   ✦ ACCESSIBILITY — REDUCED MOTION
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-card.floating,
  .marquee-track,
  .cta-pulse,
  .port-hero-orbs span { animation: none !important; }
}

/* ===================================================
   ✦ ABOUT PAGE — PREMIUM ADDITIONS
   =================================================== */

/* --- Values grid --- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  position: relative; padding: 34px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: 18px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.value-card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,0.4); box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.value-num {
  position: absolute; top: 20px; right: 24px;
  font-size: 40px; font-weight: 800; line-height: 1;
  color: rgba(212,175,55,0.12); transition: color .4s;
}
.value-card:hover .value-num { color: rgba(212,175,55,0.3); }
.value-ic {
  width: 56px; height: 56px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 15px; color: var(--gold);
  background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.04));
  border: 1px solid rgba(212,175,55,.2);
  transition: transform .4s, background .4s, color .4s;
}
.value-ic svg { width: 26px; height: 26px; }
.value-card:hover .value-ic { transform: rotate(-8deg) scale(1.08); background: var(--gold-grad); color: var(--navy); box-shadow: 0 10px 26px rgba(212,175,55,.4); }
.value-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.value-card p { color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.6; }

/* --- Timeline --- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(212,175,55,.4), rgba(212,175,55,.4), transparent);
}
.tl-item { position: relative; width: 50%; padding: 20px 44px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-dot {
  position: absolute; top: 32px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(212,175,55,.15), 0 0 14px rgba(212,175,55,.6); z-index: 2;
}
.tl-item:nth-child(odd) .tl-dot { right: -8px; }
.tl-item:nth-child(even) .tl-dot { left: -8px; }
.tl-year {
  display: inline-block; font-size: 26px; font-weight: 800; margin-bottom: 10px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tl-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; transition: transform .35s, border-color .35s;
}
.tl-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.45); }
.tl-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.tl-card p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* --- Team upgrades --- */
.team-photo { position: relative; overflow: hidden; }
.team-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(212,175,55,.35), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.team-card:hover .team-glow { opacity: 1; }
.team-socials { display: flex; justify-content: center; gap: 10px; margin-top: 14px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.team-card:hover .team-socials { opacity: 1; transform: translateY(0); }
.team-socials a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(212,175,55,.35); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 14px; transition: .3s;
}
.team-socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* --- Reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  position: relative; padding: 32px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.14); border-radius: 18px;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.review-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.4); box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.review-stars { color: var(--gold); font-size: 16px; letter-spacing: 3px; margin-bottom: 16px; }
.review-text { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.7; margin-bottom: 22px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(212,175,55,.12); }
.ra-ava {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-grad); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.review-author h4 { font-size: 15px; font-weight: 600; }
.review-author span { color: var(--gray); font-size: 13px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 16px 0 16px 44px; }
  .tl-item:nth-child(odd) { text-align: left; }
  .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }
}

/* ===== HONEYPOT (антиспам, скрыто от людей) ===== */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ===== END OF FILE ===== */

/* ============================================================
   ОНЛАЙН-ИНДИКАТОР 24/7 (мигающая зелёная точка) — v6
   ============================================================ */
.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  margin-right: 6px;
  position: relative;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  animation: onlinePulse 2s infinite;
  vertical-align: middle;
}
@keyframes onlinePulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
/* точка в контактах покрупнее */
.online-dot-lg {
  width: 11px; height: 11px;
}
@media (prefers-reduced-motion: reduce) {
  .online-dot { animation: none; }
}

/* ===== Плавное появление online-текста ===== */
.tb-hours .online-dot { margin-left: 2px; }


/* ============ FAQ АККОРДЕОН ============ */
.faq-item {
  border:1px solid rgba(212,175,55,.2);
  border-radius:14px;
  margin-bottom:12px;
  overflow:hidden;
  background:rgba(18,35,58,.6);
}
.faq-q {
  width:100%;
  text-align:left;
  background:none;
  border:none;
  color:#fff;
  font-size:17px;
  font-weight:500;
  padding:20px 22px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-family:inherit;
}
.faq-ic {
  color:#D4AF37;
  font-size:24px;
  transition:transform .3s;
  flex-shrink:0;
}
.faq-item.open .faq-ic { transform:rotate(45deg); }
.faq-a {
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
}
.faq-a p {
  padding:0 22px 20px;
  color:#c3c9d4;
  line-height:1.7;
  margin:0;
}

.faq-item.open .faq-a { max-height:400px; }

/* ════════════════════════════════════════════════════════════════
   УЛУЧШЕНИЕ ФОКУСА И ДОСТУПНОСТИ
   ════════════════════════════════════════════════════════════════ */

button, a { transition: all 0.2s ease; }
button:focus, a:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: -2px; }

/* Уменьшение анимаций на мобильных */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ✅ УБИРАЕМ ОБВОДКУ ПРИ КЛИКЕ */
* {
  outline: none !important;
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}

*:focus-visible {
  outline: none !important;
}

/* ════ ВИДЕО ГЕРОЙ ════ */
.hero-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.sec {
  position: relative;
  z-index: 2;
}

/* ===================================================
   ✦ PROCESS + GUARANTEES — PREMIUM REDESIGN
   =================================================== */

/* --- Процесс работы --- */
.process-sec { position: relative; overflow: hidden; }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative; z-index: 1;
}
.process-card {
  position: relative; padding: 34px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: 20px;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.process-card::before {
  content:''; position:absolute; inset:0; border-radius:20px; padding:1px;
  background: linear-gradient(135deg, rgba(212,175,55,.6), transparent 40%, transparent 60%, rgba(212,175,55,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:0; transition: opacity .35s; pointer-events:none;
}
.process-card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,.4); box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.process-card:hover::before { opacity:1; }
.process-num {
  position:absolute; top:20px; right:24px;
  font-size:38px; font-weight:800; line-height:1;
  color: rgba(212,175,55,.12); transition: color .35s;
}
.process-card:hover .process-num { color: rgba(212,175,55,.28); }
.process-ic {
  width:58px; height:58px; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center;
  border-radius:15px; font-size:26px;
  background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.04));
  border:1px solid rgba(212,175,55,.2);
  transition: transform .4s, background .4s;
}
.process-card:hover .process-ic {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, rgba(212,175,55,.3), rgba(212,175,55,.08));
}
.process-card h3 { font-size:19px; font-weight:600; margin-bottom:10px; }
.process-card p { color: rgba(255,255,255,.65); font-size:14px; line-height:1.6; margin:0; }
.process-connector {
  position:absolute; top:50%; left:100%; width:24px; height:1px;
  background: linear-gradient(90deg, rgba(212,175,55,.4), transparent);
  display: none;
}
@media (min-width: 1025px) {
  .process-card:not(:last-child) .process-connector { display:block; }
}

/* --- Гарантии --- */
.guarantees-sec { position: relative; overflow: hidden; }
.guar-bg-glow {
  position: absolute; top: 5%; right: 8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212,175,55,0.08), transparent 65%);
  pointer-events: none; filter: blur(20px); z-index: 0;
}
.guarantee-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  position: relative; z-index: 1; margin-bottom: 46px;
}
.guarantee-card {
  position: relative; padding: 38px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: 20px;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.guarantee-card::before {
  content:''; position:absolute; inset:0; border-radius:20px; padding:1px;
  background: linear-gradient(135deg, rgba(212,175,55,.6), transparent 40%, transparent 60%, rgba(212,175,55,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:0; transition: opacity .35s; pointer-events:none;
}
.guarantee-card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,.4); box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.guarantee-card:hover::before { opacity:1; }
.guarantee-num {
  position:absolute; top:22px; right:26px;
  font-size:42px; font-weight:800; line-height:1;
  color: rgba(212,175,55,.12); transition: color .35s;
}
.guarantee-card:hover .guarantee-num { color: rgba(212,175,55,.28); }
.guarantee-badge {
  position:absolute; top:20px; left:32px;
  padding:5px 14px; border-radius:20px;
  font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  color:#0D1B2A; background: linear-gradient(135deg,#F0D97D,#D4AF37);
  box-shadow: 0 4px 14px rgba(212,175,55,.4); z-index:2;
}
.guarantee-card.is-hit { border-color: rgba(212,175,55,.35); }
.guarantee-ic {
  width:62px; height:62px; margin-bottom:22px; margin-top: 8px;
  display:flex; align-items:center; justify-content:center;
  border-radius:16px; color: var(--gold);
  background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.04));
  border:1px solid rgba(212,175,55,.2);
  transition: transform .4s, background .4s;
}
.guarantee-ic svg { width:26px; height:26px; }
.guarantee-card:hover .guarantee-ic {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, rgba(212,175,55,.3), rgba(212,175,55,.08));
}
.guarantee-card h3 { font-size:21px; font-weight:600; margin-bottom:12px; }
.guarantee-card p { color: rgba(255,255,255,.68); font-size:15px; line-height:1.65; margin-bottom:18px; }
.guarantee-tags { display:flex; flex-wrap:wrap; gap:8px; }
.guarantee-tags span {
  font-size:12px; padding:5px 12px; border-radius:20px;
  background: rgba(212,175,55,.08); border:1px solid rgba(212,175,55,.15);
  color: rgba(212,175,55,.85);
}

.guarantee-strip {
  display:flex; align-items:center; justify-content:center;
  gap: 44px; flex-wrap: wrap;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  position: relative; z-index: 1;
}
.gs-item { text-align:center; }
.gs-item h3 {
  font-size:36px; font-weight:800; line-height:1; margin-bottom:8px;
  background: var(--gold-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent;
}
.gs-item p { font-size:12.5px; color: var(--gray); letter-spacing: .8px; text-transform: uppercase; margin:0; }
.gs-div { width:1px; height:44px; background: linear-gradient(transparent, rgba(212,175,55,.4), transparent); }

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .guarantee-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .guarantee-strip { flex-direction: column; gap: 24px; padding: 30px 24px; }
  .gs-div { display:none; }
}

/* ═══════════════════════════════════════════════════════════
   ✦ ФИНАЛЬНЫЙ АДАПТИВ — телефоны / планшеты / все разрешения
   ═══════════════════════════════════════════════════════════ */

/* Плавная типографика (без !important) */
.page-hero h1     { font-size: clamp(28px, 6vw, 52px); }
.hero h1          { font-size: clamp(30px, 7vw, 56px); }
.sec-title,
.cta-banner h2    { font-size: clamp(26px, 5vw, 40px); }
.mission-inner h2 { font-size: clamp(22px, 4vw, 30px); }
.page-hero p,
.hero .lead       { font-size: clamp(15px, 2.4vw, 18px); }

/* Медиа не вылезают за экран */
img, video, iframe, canvas, svg { max-width: 100%; }

/* ---------- КРУПНЫЕ ЭКРАНЫ (≥1600px) ---------- */
@media (min-width: 1600px) {
  .container { max-width: 1360px; }
}

/* ---------- ПЛАНШЕТЫ (≤1024px) ---------- */
@media (max-width: 1024px) {
  .sec { padding: 80px 0; }
  .page-hero { padding: 130px 0 60px; }
}

/* ---------- МАЛЫЕ ПЛАНШЕТЫ / КРУПНЫЕ ТЕЛЕФОНЫ (≤768px) ---------- */
@media (max-width: 768px) {
  .sec { padding: 60px 0; }
  .page-hero { padding: 120px 0 50px; }
  h1, .sec-title, .cta-banner h2 { line-height: 1.2; }
  input, textarea, select { font-size: 16px; } /* iOS не зумит */
}

/* ---------- ТЕЛЕФОНЫ (≤600px) ---------- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .sec { padding: 50px 0; }
  .page-hero { padding: 110px 0 44px; }
  .sec-head { margin-bottom: 40px; }

  .btn { width: 100%; justify-content: center; }
  .hero-btns, .cta-btns { flex-direction: column; align-items: stretch; gap: 12px; }

  .hero-card { padding: 26px 22px; }
  .hero-card-stats { gap: 20px 14px; }
  .hcs-item h3 { font-size: 30px; }

  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 26px 8px; }
  .stat::after { display: none; }
  .stat h3 { font-size: 30px; }
}

/* ---------- МАЛЫЕ ТЕЛЕФОНЫ (≤400px) ---------- */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .logo-txt .l-main { font-size: 17px; }
  .logo-mark { width: 40px; height: 40px; }
  .hero-card-stats { grid-template-columns: 1fr 1fr; }
  .stat h3 { font-size: 26px; }
  .stat p { font-size: 11px; letter-spacing: 1px; }
  .hcs-item h3 { font-size: 26px; }
}

/* ---------- ТЕЛЕФОН ЛЁЖА (landscape) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-links.open { padding-top: 70px; }
  .page-hero { padding: 100px 0 40px; }
}
/* ===== PORTFOLIO — ВЕРТИКАЛЬНЫЕ превью 3:4 (1440×1920) ===== */

/* сетка: 3 колонки, ровные вертикальные карточки */
.port-grid-lux {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-flow: row;              /* убираем dense-переливы */
}

/* все карточки одинаковые вертикальные — отменяем is-big */
.port-grid-lux .port-lux,
.port-grid-lux .port-lux.is-big {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;              /* вертикальный формат под 1440×1920 */
}

/* картинка заполняет ВСЮ карточку — БЕЗ ПОЛЕЙ */
.port-lux .port-thumb img.port-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;               /* ← заполняет всё, без полей */
  object-position: center;
  z-index: 0;
  transition: transform .6s ease;
}
.port-lux:hover .port-thumb img.port-img { transform: scale(1.06); }

/* лёгкое затемнение снизу — чтобы название читалось */
.port-lux .port-thumb.has-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,27,42,.05) 40%, rgba(13,27,42,.65) 100%);
  transition: opacity .4s;
}
.port-lux:hover .port-thumb.has-img::before { opacity: .4; }

/* прячем эмодзи, если стоит картинка */
.port-lux .port-thumb.has-img .p-ic { display: none; }

/* заголовок в вертикальной карточке — единый размер */
.port-grid-lux .port-lux.is-big .port-info h4 { font-size: 20px; }
.port-grid-lux .port-lux.is-big .p-ic { font-size: 56px; }

/* оверлей при наведении — компактнее для вертикали */
.port-grid-lux .p-overlay { padding: 22px; gap: 12px; }
.port-grid-lux .p-metric { gap: 20px; }
.port-grid-lux .p-metric strong { font-size: 20px; }

/* ---- Адаптив под вертикальные превью ---- */
@media (max-width: 1024px) {
  .port-grid-lux { grid-template-columns: repeat(2, 1fr); }
  .port-grid-lux .port-lux,
  .port-grid-lux .port-lux.is-big { aspect-ratio: 3 / 4; }
}
@media (max-width: 768px) {
  .port-grid-lux { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .port-grid-lux .port-lux,
  .port-grid-lux .port-lux.is-big { aspect-ratio: 3 / 4; min-height: 0; }
  .port-grid-lux .port-info h4,
  .port-grid-lux .port-lux.is-big .port-info h4 { font-size: 15px; }
  .port-grid-lux .port-info { padding: 14px; }
}
@media (max-width: 480px) {
  .port-grid-lux { grid-template-columns: 1fr !important; gap: 16px; }
  .port-grid-lux .port-lux,
  .port-grid-lux .port-lux.is-big { aspect-ratio: 3 / 4; }
}
/* thumb внутри LUX-карточки — на всю высоту, без своих пропорций */
.port-grid-lux .port-lux .port-thumb {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;      /* отменяем 4/3 только здесь */
  width: 100%;
  height: 100%;
}
/* убираем линию внутри карточки портфолио */
.port-lux .port-info {
  border-top: none !important;
}
/* ✦ END ADAPTIVE ✦ */