/* ─── THEME TOKENS ─── */
:root {
  --primary:#6B4CFF;--primary-dark:#4B2EA8;--accent:#8B5CFF;
  --glow:rgba(107,76,255,0.35);--border:rgba(107,76,255,0.25);
}
[data-theme="dark"] {
  --bg:#0A0814;--surface:#12101F;--surface2:#1A1730;
  --text:#FFFFFF;--text-muted:#B6B3D1;--card-bg:rgba(255,255,255,0.025);
  --input-bg:rgba(255,255,255,0.04);--header-bg:rgba(10,8,20,0.85);
  --footer-bg:#09070F;--partner-hover:rgba(107,76,255,0.06);
  --adv-hover-bg:rgba(107,76,255,0.05);--img-filter:brightness(.75) saturate(.9);
  --why-img-filter:brightness(.8) saturate(.85);--logo-text-color:#fff;
}
[data-theme="light"] {
  --bg:#F5F4FB;--surface:#FFFFFF;--surface2:#EEECF9;
  --text:#15122A;--text-muted:#5A566E;--card-bg:rgba(107,76,255,0.04);
  --input-bg:rgba(107,76,255,0.06);--header-bg:rgba(245,244,251,0.92);
  --footer-bg:#1A1730;--partner-hover:rgba(107,76,255,0.08);
  --adv-hover-bg:rgba(107,76,255,0.08);--img-filter:brightness(.85) saturate(.95);
  --why-img-filter:brightness(.88) saturate(.9);--logo-text-color:#15122A;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden;transition:background .3s,color .3s; font-size:18px}
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:var(--primary);border-radius:3px}

/* ─── HEADER ─── */
header{
  position:fixed;top:0;left:0;right:0;z-index:200;
  padding:0 60px;height:72px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:var(--header-bg);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);transition:background .3s;
}
.logo-wrap{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.logo-img{width:34px;height:34px;object-fit:contain}
.logo-text span:first-child{font-family:'Montserrat',sans-serif;font-weight:800;font-size:22px;letter-spacing:.02em;color:var(--logo-text-color);display:block;transition:color .3s}
.logo-text span:last-child{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);display:block}
nav{display:flex;align-items:center;gap:28px}
nav a{font-size:15px;font-weight:500;letter-spacing:.04em;color:var(--text-muted);text-decoration:none;transition:color .2s;white-space:nowrap}
nav a:hover{color:var(--text)}
.header-right{display:flex;align-items:center;gap:10px;flex-shrink:0}

/* Theme toggle */
.theme-toggle{
  width:40px;height:40px;border-radius:10px;border:1px solid var(--border);
  background:var(--card-bg);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;transition:all .2s;flex-shrink:0;
}
.theme-toggle:hover{border-color:var(--primary);background:rgba(107,76,255,0.1)}

/* Hamburger */
.hamburger{
  display:none;flex-direction:column;gap:5px;
  width:40px;height:40px;border-radius:10px;
  border:1px solid var(--border);background:var(--card-bg);
  cursor:pointer;align-items:center;justify-content:center;
  transition:all .2s;
}
.hamburger span{display:block;width:20px;height:2px;background:var(--text);border-radius:2px;transition:all .3s}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile nav */
.mobile-nav{
  display:none;position:fixed;top:72px;left:0;right:0;z-index:199;
  background:var(--surface);border-bottom:1px solid var(--border);
  padding:24px;flex-direction:column;gap:20px;
  transform:translateY(-100%);opacity:0;
  transition:transform .35s ease,opacity .35s ease;
}
.mobile-nav.open{transform:translateY(0);opacity:1}
.mobile-nav a{font-size:18px;font-weight:500;color:var(--text-muted);text-decoration:none;padding:4px 0;border-bottom:1px solid var(--border)}
.mobile-nav a:last-child{border-bottom:none}
.mobile-nav .btn{margin-top:8px;text-align:center;justify-content:center}

/* ─── BUTTONS ─── */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:14px;font-family:'Montserrat',sans-serif;font-size:15px;font-weight:700;letter-spacing:.04em;text-decoration:none;cursor:pointer;border:none;transition:all .25s}
.btn-primary{background:linear-gradient(135deg,#6B4CFF,#4B2EA8);color:#fff;box-shadow:0 0 20px rgba(107,76,255,0.4)}
.btn-primary:hover{box-shadow:0 0 40px rgba(107,76,255,0.7);transform:translateY(-1px)}
.btn-outline{background:transparent;color:var(--text);border:1px solid var(--border)}
.btn-outline:hover{border-color:var(--primary);background:rgba(107,76,255,0.1)}

/* ─── HERO ─── */
.hero{
  min-height:100vh;display:grid;grid-template-columns:1fr 1fr;
  align-items:center;padding:100px 60px 60px;position:relative;overflow:hidden;
}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 60% 70% at 80% 50%,rgba(107,76,255,0.15) 0%,transparent 70%);pointer-events:none}
.hero-hex-bg{position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92'%3E%3Cpath d='M40 4 L76 24 L76 68 L40 88 L4 68 L4 24 Z' fill='none' stroke='rgba(107,76,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");pointer-events:none}
.hero-left{position:relative;z-index:2;max-width:580px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(107,76,255,0.15);border:1px solid var(--border);border-radius:100px;padding:6px 16px;font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:28px}
.hero-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent);animation:pulse 2s infinite;flex-shrink:0}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.hero h1{font-family:'Montserrat',sans-serif;font-weight:900;font-size:52px;line-height:1.1;text-transform:uppercase;letter-spacing:-.01em;margin-bottom:16px}
.hero h1 span{background:linear-gradient(135deg,#8B5CFF,#6B4CFF);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hero-sub{font-size:18px;color:var(--text-muted);line-height:1.7;margin-bottom:36px;max-width:480px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}
.hero-stats{display:flex;gap:32px;flex-wrap:wrap;margin-top:52px;padding-top:32px;border-top:1px solid var(--border)}
.stat-item h3{font-family:'Montserrat',sans-serif;font-weight:800;font-size:34px;background:linear-gradient(135deg,#8B5CFF,var(--text));-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.stat-item p{font-size:13px;color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;margin-top:4px}
.hero-right{position:relative;z-index:2;height:68vh;border-radius:24px;overflow:hidden;margin-left:40px;border:1px solid var(--border);box-shadow:0 0 60px rgba(107,76,255,0.2)}
.hero-right img{width:100%;height:100%;object-fit:cover;filter:var(--img-filter)}
.hero-right::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(75,46,168,.4) 0%,transparent 60%),linear-gradient(to top,rgba(10,8,20,.7) 0%,transparent 50%)}
.hero-left,
.hero-left .hero-badge,
.hero-left .hero-sub,
.hero-left .stat-item p,
.hero-left .btn-outline {
    color: #FFFFFF;
}

.hero-left .hero-badge {
    background: rgba(107, 76, 255, 0.2);
    border-color: rgba(107, 76, 255, 0.4);
}

.hero-left .stat-item h3 {
    background: linear-gradient(135deg, #8B5CFF, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Для светлой темы — переопределяем только этот блок */
[data-theme="light"] .hero-left {
    color: #FFFFFF;
}

[data-theme="light"] .hero-left .hero-sub {
    color: rgba(255, 255, 255, 0.8);
}

/* ─── SECTIONS ─── */
section{padding:96px 60px}
.section-label{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--primary);margin-bottom:16px}
.section-label::before{content:'';display:block;width:24px;height:2px;background:var(--primary);flex-shrink:0}
h2.section-title{font-family:'Montserrat',sans-serif;font-weight:800;font-size:40px;text-transform:uppercase;letter-spacing:-.01em;margin-bottom:16px;line-height:1.1;color:var(--text)}
h2.section-title span{color:var(--accent)}
.section-desc{font-size:17px;color:var(--text-muted);max-width:600px;line-height:1.7}

/* ─── SERVICES ─── */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:52px}
.service-card{background:var(--card-bg);border:1px solid var(--border);border-radius:20px;padding:28px 24px;transition:all .3s;position:relative;overflow:hidden}
.service-card::before{content:'';position:absolute;top:-1px;left:20px;right:20px;height:2px;background:linear-gradient(90deg,transparent,var(--primary),transparent);opacity:0;transition:opacity .3s}
.service-card:hover{border-color:rgba(107,76,255,.5);box-shadow:0 0 40px rgba(107,76,255,.12);transform:translateY(-4px)}
.service-card:hover::before{opacity:1}
.service-icon{width:50px;height:50px;border-radius:14px;background:rgba(107,76,255,.15);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:18px;flex-shrink:0}
.service-card h3{font-family:'Montserrat',sans-serif;font-weight:700;font-size:18px;margin-bottom:10px;color:var(--text)}
.service-card p{font-size:15px;color:var(--text-muted);line-height:1.65}
.service-card ul{margin:10px 0 0 0;padding-left:16px;font-size:17px;color:var(--text-muted);line-height:1.7}
.service-card ul li{margin-bottom:3px}
.service-link{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:600;color:var(--primary);text-decoration:none;margin-top:16px;transition:gap .2s}
.service-card:hover .service-link{gap:10px}

/* ─── WHY US ─── */
.why-section{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.why-photo{border-radius:20px;overflow:hidden;height:520px;border:1px solid var(--border);box-shadow:0 0 60px rgba(107,76,255,.15);position:relative}
.why-photo img{width:100%;height:100%;object-fit:cover;filter:var(--why-img-filter)}
.why-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(to right,transparent 60%,rgba(18,16,31,.5))}
.advantages-list{display:flex;flex-direction:column;gap:14px;margin-top:32px}
.adv-item{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;background:var(--card-bg);border:1px solid var(--border);border-radius:14px;transition:all .25s}
.adv-item:hover{border-color:rgba(107,76,255,.4);background:var(--adv-hover-bg)}
.adv-icon{min-width:42px;height:42px;border-radius:11px;background:linear-gradient(135deg,#6B4CFF,#4B2EA8);display:flex;align-items:center;justify-content:center;font-size:21px}
.adv-item h4{font-family:'Montserrat',sans-serif;font-weight:700;font-size:18px;margin-bottom:4px;color:var(--text)}
.adv-item p{font-size:17px;color:var(--text-muted)}

/* ─── PRODUCTION ─── */
.production-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:300px 300px;gap:18px;margin-top:52px}
.prod-photo{border-radius:20px;overflow:hidden;position:relative;border:1px solid var(--border)}
.prod-photo img{width:100%;height:100%;object-fit:cover;filter:var(--img-filter);transition:transform .5s}
.prod-photo:hover img{transform:scale(1.03)}
.prod-photo:first-child{grid-row:1/3}
.prod-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(10,8,20,.85) 0%,transparent 55%)}
.prod-label{position:absolute;bottom:22px;left:22px;z-index:2;font-family:'Montserrat',sans-serif;font-weight:700;font-size:19px;color:#fff}
.prod-label span{display:block;font-size:16px;color:rgba(182,179,209,.8);font-family:'Inter',sans-serif;font-weight:400;margin-top:3px}

/* ─── PROCESS ─── */
.process-section{background:var(--surface)}
.process-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:52px;position:relative}
.process-bottom{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:40px;position:relative}
.step{text-align:center;padding:0 16px}
.step-num{width:78px;height:78px;border-radius:50%;background:rgba(107,76,255,.15);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-family:'Montserrat',sans-serif;font-weight:800;font-size:30px;color:var(--primary);position:relative;z-index:1;transition:all .3s}
.step:hover .step-num{background:rgba(107,76,255,.28);box-shadow:0 0 30px rgba(107,76,255,.25)}
.step h4{font-family:'Montserrat',sans-serif;font-weight:700;font-size:18px;margin-bottom:8px;color:var(--text)}
.step p{font-size:15px;color:var(--text-muted);line-height:1.55}
.process-bottom .step-num{background:rgba(107,76,255,.1);font-size:22px;width:62px;height:62px}

/* ─── FORM ─── */
.form-section{border-top:1px solid var(--border)}
.form-wrap{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
.contact-info{display:flex;flex-direction:column;gap:12px;margin-top:32px}
.contact-item{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;background:var(--card-bg);border:1px solid var(--border);border-radius:12px}
.contact-icon{font-size:22px;flex-shrink:0;margin-top:2px}
.contact-item h5{font-size:15px;color:var(--text-muted);margin-bottom:4px;font-weight:500;letter-spacing:.04em;text-transform:uppercase}
.contact-item p{font-size:18px;font-weight:500;color:var(--text)}
.contact-item a{color:var(--text);text-decoration:none}
.contact-item a:hover{color:var(--accent)}
form{display:flex;flex-direction:column;gap:13px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}
input,select,textarea{
  width:100%;padding:13px 16px;
  background:var(--input-bg);border:1px solid var(--border);border-radius:12px;
  color:var(--text);font-family:'Inter',sans-serif;font-size:18px;
  outline:none;transition:border .2s,box-shadow .2s;-webkit-appearance:none;
}
input::placeholder,textarea::placeholder{color:rgba(182,179,209,.5)}
[data-theme="light"] input::placeholder,[data-theme="light"] textarea::placeholder{color:rgba(90,86,110,.5)}
select option{background:var(--surface);color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(107,76,255,.15)}
textarea{resize:vertical;min-height:90px}
.checkbox-wrap{display:flex;align-items:flex-start;gap:10px;font-size:17px;color:var(--text-muted);cursor:pointer;user-select:none}
.custom-check{
  width:20px;height:20px;min-width:20px;border-radius:6px;
  border:2px solid var(--border);background:var(--input-bg);
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;margin-top:1px;cursor:pointer;flex-shrink:0;
}
.custom-check svg{display:none;width:12px;height:12px}
.checkbox-wrap.checked .custom-check{background:var(--primary);border-color:var(--primary)}
.checkbox-wrap.checked .custom-check svg{display:block}
.checkbox-wrap input[type=checkbox]{position:absolute;opacity:0;width:0;height:0}
.checkbox-wrap a{color:var(--primary)}

/* ─── PARTNERS ─── */
.partners-section{padding:60px 60px}
.partners-logos{display:flex;flex-wrap:wrap;border:1px solid var(--border);border-radius:20px;overflow:hidden;margin-top:40px}
.partner-item{flex:1;min-width:180px;padding:36px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid var(--border);text-align:center;gap:10px;transition:background .2s}
.partner-item:last-child{border-right:none}
.partner-item:hover{background:var(--partner-hover)}
.partner-abbr{font-family:'Montserrat',sans-serif;font-weight:800;font-size:28px;background:linear-gradient(135deg,#8B5CFF,#6B4CFF);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.partner-name{font-size:16px;color:var(--text-muted);line-height:1.5;max-width:160px}
.case-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:36px;margin-top:40px;display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.case-metric{text-align:center;padding:16px 12px;border-right:1px solid var(--border)}
.case-metric:last-child{border-right:none}
.case-num{font-family:'Montserrat',sans-serif;font-weight:800;font-size:40px;background:linear-gradient(135deg,#8B5CFF,#6B4CFF);-webkit-background-clip:text;-webkit-text-fill-color:transparent;line-height:1.2}
.case-label{font-size:16px;color:var(--text-muted);margin-top:8px;line-height:1.4}

/* ─── FOOTER ─── */
footer{background:var(--footer-bg);border-top:1px solid var(--border);padding:56px 60px 36px}
.footer-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1.2fr;gap:52px;margin-bottom:44px}
.footer-brand > p{font-size:16px;color:rgba(182,179,209,.7);line-height:1.7;margin-top:16px;max-width:250px}
.footer-col h5,.footer-contact h5{font-family:'Montserrat',sans-serif;font-weight:700;font-size:15px;letter-spacing:.1em;text-transform:uppercase;color:rgba(182,179,209,.5);margin-bottom:18px}
.footer-col a{display:block;font-size:18px;color:rgba(182,179,209,.75);text-decoration:none;margin-bottom:9px;transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-contact p{font-size:18px;color:rgba(182,179,209,.75);margin-bottom:8px}
.footer-contact a{color:rgba(182,179,209,.75);text-decoration:none}
.footer-contact a:hover{color:#fff}
.footer-bottom{padding-top:28px;border-top:1px solid rgba(107,76,255,.15);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer-bottom p{font-size:15px;color:rgba(182,179,209,.3)}

/* ─── REVEAL ─── */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .55s ease,transform .55s ease}
.revealed{opacity:1;transform:none}

/* ─── RESPONSIVE ─── */
@media(max-width:1140px){
  header{padding:0 20px}
  nav{display:none}
  .hamburger{display:flex}
  .mobile-nav{display:flex}
  .header-cta{display:none}
  .hero{grid-template-columns:1fr;padding:100px 32px 60px;min-height:auto}
  .hero-right{margin-left:0;height:52vw;min-height:220px;margin-top:36px}
  section{padding:70px 32px}
  .services-grid{grid-template-columns:1fr 1fr}
  .why-grid{grid-template-columns:1fr}
  .why-photo{height:320px}
  .production-grid{grid-template-columns:1fr;grid-template-rows:auto}
  .production-grid .prod-photo:first-child{grid-row:auto;height:260px}
  .production-grid .prod-photo{height:240px}
  .process-steps,.process-bottom{grid-template-columns:repeat(2,1fr);gap:24px}
  .form-wrap{grid-template-columns:1fr;gap:48px}
  .footer-top{grid-template-columns:1fr 1fr;gap:36px}
  .partners-section{padding:60px 32px}
  .case-card{grid-template-columns:1fr 1fr}
  .case-metric:nth-child(2){border-right:none}
  .case-metric:nth-child(3){border-top:1px solid var(--border)}
  .case-metric:nth-child(4){border-top:1px solid var(--border);border-right:none}
  h2.section-title{font-size:34px}
}
@media(max-width:680px){
  header{padding:0 20px;height:64px}
  .mobile-nav{top:64px;padding:20px}
  .hero{padding:84px 20px 48px}
  .hero h1{font-size:38px}
  .hero-right{height:220px}
  .hero-stats{gap:24px}
  .stat-item h3{font-size:28px}
  section{padding:56px 20px}
  .services-grid{grid-template-columns:1fr}
  .process-steps,.process-bottom{grid-template-columns:1fr;gap:16px}
  .form-row{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr;gap:28px}
  .case-card{grid-template-columns:1fr}
  .case-metric{border-right:none;border-bottom:1px solid var(--border)}
  .case-metric:last-child{border-bottom:none}
  .partners-section{padding:48px 20px}
  .partners-logos{flex-direction:column}
  .partner-item{border-right:none;border-bottom:1px solid var(--border)}
  .partner-item:last-child{border-bottom:none}
  h2.section-title{font-size:30px}
  footer{padding:48px 20px 28px}
  .hero-badge{font-size:13px;padding:5px 12px}
}
/* Стили для видео-фона внутри секции hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 60px 60px;
}

/* Контейнер фонового видео */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Само видео — растягивается на весь экран без полос */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Затемнение для читаемости текста */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Контент должен быть поверх видео */
.hero-hex-bg,
.hero-left {
    position: relative;
    z-index: 2;
}

/* Скрываем старый блок, если есть */
.hero-right {
    display: none;
}

/* ─── НОВАЯ КОЛОНКА В ФУТЕРЕ ─── */
.footer-partners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-partners h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(182, 179, 209, 0.5);
    margin-bottom: 18px;
}

/* Логотипы партнёров */
.partner-logos {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}

[data-theme="light"] .partner-logo-img {
    filter: brightness(0);
    opacity: 0.6;
}

.partner-logo-item:hover .partner-logo-img {
    opacity: 1;
}

.partner-logo-item span {
    font-size: 17px;
    color: rgba(182, 179, 209, 0.75);
    transition: color 0.2s;
}

.partner-logo-item:hover span {
    color: #fff;
}

.partner-logo-link {
    text-decoration: none;
    display: block;
}

.partner-logo-link:hover .partner-logo-img {
    opacity: 1;
}

.partner-logo-link:hover span {
    color: #fff;
}

/* Кнопки в футере */
.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.footer-link-btn {
    font-size: 16px;
    color: rgba(182, 179, 209, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-link-btn:hover {
    color: var(--primary);
}

/* Адаптив для новой колонки */
@media (max-width: 1140px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 680px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.adv-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Стили для страницы конфиденциальности */
.privacy-page {
  padding: 140px 60px 96px;
  max-width: 1000px;
  margin: 0 auto;
}

.privacy-page h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 52px;
  margin-bottom: 16px;
  color: var(--text);
}

.privacy-page h1 span {
  color: var(--accent);
}

.privacy-page .last-updated {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.privacy-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 32px 0 16px;
  color: var(--primary);
}

.privacy-page h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 24px 0 12px;
  color: var(--text);
}

.privacy-page p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 18px;
}

.privacy-page ul, .privacy-page ol {
  margin: 16px 0 16px 24px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 18px;
}

.privacy-page li {
  margin-bottom: 8px;
}

.privacy-page a {
  color: var(--primary);
  text-decoration: none;
}

.privacy-page a:hover {
  text-decoration: underline;
}

.privacy-page hr {
  margin: 40px 0;
  border: none;
  height: 1px;
  background: var(--border);
}

/* ─── DRAG & DROP ДЛЯ ФАЙЛОВ ─── */
.file-attachment-area {
    margin-bottom: 16px;
}

.file-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--input-bg);
}

.file-drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(107, 76, 255, 0.1);
    transform: scale(0.98);
}

.file-drop-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.file-drop-zone p {
    margin: 0;
    font-size: 16px;
    color: var(--text-muted);
}

.file-browse-link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

.file-browse-link:hover {
    color: var(--primary-dark);
}

.file-drop-hint {
    font-size: 13px !important;
    margin-top: 8px !important;
    opacity: 0.6;
}

.file-list {
    margin-top: 16px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.file-list-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.file-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: var(--surface);
    border-radius: 8px;
    font-size: 17px;
    color: var(--text);
    border: 1px solid var(--border);
}

.file-list li:last-child {
    margin-bottom: 0;
}

.file-list .file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    word-break: break-all;
}

.file-list .file-size {
    font-size: 15px;
    color: var(--text-muted);
    margin-left: 8px;
}

.file-list .file-remove {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.file-list .file-remove:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Адаптив для файловой зоны */
@media (max-width: 680px) {
    .file-drop-zone {
        padding: 20px 15px;
    }
    
    .file-drop-zone p {
        font-size: 14px;
    }
}

.form-right .contact-info {
    margin-top: 32px;
}

@media (max-width: 680px) {
    /* Меняем три колонки на одну вертикальную для блока "Собственная продукция" */
    .service-card[style*="grid-column:1/-1"] > div > div:last-child > div {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* ─── COOKIES CONSENT БАННЕР (РАБОЧАЯ ВЕРСИЯ) ─── */
.cookies-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    max-width: 480px;
    width: calc(100% - 40px);
    display: none;
}

.cookies-consent.show {
    display: block;
}

.cookies-content {
    padding: 20px;
}

.cookies-text {
    margin-bottom: 20px;
}

.cookies-text strong {
    font-size: 17px;
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.cookies-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookies-text a {
    color: var(--primary);
    text-decoration: none;
}

.cookies-text a:hover {
    text-decoration: underline;
}

.cookies-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookies-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

.cookies-btn-accept {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.cookies-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.cookies-btn-settings {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}

.cookies-btn-settings:hover {
    background: var(--border);
    border-color: var(--primary);
}

.cookies-btn-reject {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.cookies-btn-reject:hover {
    background: rgba(239, 68, 68, 0.2);
}

@media (max-width: 640px) {
    .cookies-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
    
    .cookies-buttons {
        flex-direction: column;
    }
    
    .cookies-btn {
        width: 100%;
    }
}