:root{
    --brand:#0066ff; /* фирменный цвет InfinityDev */
    --brand-2:#5ba6ff;
    --text:#0a0a0a;
    --muted:#5b6573;
    --bg:#ffffff;
    --card:#f6f8fb;
    --border:#e6e9f2;
    --radius:18px;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --grad: radial-gradient(1200px 600px at 20% 10%, rgba(0,102,255,.15), transparent 60%),
            radial-gradient(900px 500px at 80% 20%, rgba(91,166,255,.15), transparent 60%),
            linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.6));
  }
  @media (prefers-color-scheme: dark){
    :root{
      --text:#e8ebf0;
      --muted:#a6b0bf;
      --bg:#0b1020;
      --card:#0f1628;
      --border:#1c253a;
      --shadow:0 10px 30px rgba(0,0,0,.4);
      --grad: radial-gradient(1200px 600px at 20% 10%, rgba(0,102,255,.25), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(91,166,255,.25), transparent 60%);
    }
  }
  
  *{box-sizing:border-box}
  html,body{height:100%}
  body{
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
    margin:0; color:var(--text); background:var(--bg);
    overflow-x:hidden;
  }
  a{color:inherit; text-decoration:none}
  .container{width:min(1200px, 92%); margin-inline:auto}
  
  /* Header */
  header{
    position:sticky; top:0; z-index:50; backdrop-filter:saturate(180%) blur(8px);
    background:color-mix(in oklab, var(--bg) 85%, transparent);
    border-bottom:1px solid var(--border);
  }
  .nav{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0}
  .brand{display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.2px}
  .logo{
    width:36px; aspect-ratio:1/1; display:grid; place-items:center; border-radius:14px;
    background:conic-gradient(from 180deg at 50% 50%, var(--brand), var(--brand-2), var(--brand));
    color:#fff; font-weight:900; box-shadow: var(--shadow);
  }
  .menu{display:flex; gap:18px; align-items:center}
  .menu a{opacity:.9}
  .menu a:hover{opacity:1}
  .nav-cta{display:flex; gap:10px; align-items:center}
  .btn{display:inline-flex; align-items:center; gap:10px; border-radius:12px; padding:10px 14px; border:1px solid var(--border); background:var(--card); box-shadow:var(--shadow); font-weight:600}
  .btn.primary{background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; border:0}
  .btn.ghost{background:transparent}
  .btn.small{padding:8px 12px; border-radius:10px}
  
  /* Mobile nav */
  .burger{display:none; border:1px solid var(--border); background:var(--card); border-radius:12px; padding:8px}
  @media (max-width: 900px){
    .menu{display:none}
    .burger{display:inline-flex}
  }
  
  /* Section: Hero */
  .hero{
    position:relative; padding:64px 0 72px; overflow:hidden; isolation:isolate;
    background:var(--grad);
  }
  .hero .wrap{display:grid; grid-template-columns: 1.1fr 0.9fr; gap:40px; align-items:center}
  .hero h1{font-size:clamp(28px, 4.2vw, 54px); line-height:1.05; margin:0 0 14px; letter-spacing:-.4px}
  .hero p{font-size:clamp(15px, 1.2vw, 18px); color:var(--muted); margin:0 0 28px}
  .badges{display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 24px}
  .badge{border:1px solid var(--border); background:color-mix(in oklab, var(--card) 70%, transparent); padding:8px 12px; border-radius:999px; font-weight:600; font-size:13px}
  
  .hero-card{
    position:relative; border:1px solid var(--border); background:linear-gradient(180deg, color-mix(in oklab, var(--card) 75%, transparent), color-mix(in oklab, var(--card) 95%, transparent));
    border-radius:24px; padding:20px; box-shadow:var(--shadow);
    animation: float 6s ease-in-out infinite;
  }
  @keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
  
  .codebar{display:flex; gap:6px; padding:8px}
  .dot{width:10px; height:10px; border-radius:50%; background:var(--border)}
  .screen{border:1px solid var(--border); border-radius:14px; background: #0b1020; color:#d3ddff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; padding:18px; height:320px; overflow:auto}
  .hl{color:#7cc0ff}
  
  .hero-cta{display:flex; gap:12px; flex-wrap:wrap}
  .note{font-size:13px; color:var(--muted)}
  
  /* Section: Logos */
  .logos{padding:38px 0; opacity:.9}
  .logos .row{display:flex; gap:32px; justify-content:center; align-items:center; flex-wrap:wrap}
  .logos .chip{display:flex; align-items:center; gap:10px; padding:10px 14px; border:1px dashed var(--border); border-radius:14px; background:transparent; font-weight:600}
  
  /* Section: Features */
  section{padding:72px 0}
  .title{font-size:clamp(22px, 3.2vw, 36px); margin:0 0 12px}
  .subtitle{color:var(--muted); margin:0 0 32px}
  .grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:18px}
  .col-4{grid-column: span 4}
  .col-6{grid-column: span 6}
  .card{border:1px solid var(--border); background:var(--card); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow)}
  .card h3{margin:0 0 8px}
  .card p{margin:0; color:var(--muted)}
  
  @media (max-width: 900px){
    .hero .wrap{grid-template-columns: 1fr}
    .col-4, .col-6{grid-column: 1 / -1}
  }
  
  .feat{position:relative; overflow:hidden}
  .feat .icon{width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:color-mix(in oklab, var(--brand) 20%, transparent); margin-bottom:10px}
  
  /* Section: Showcase */
  .showcase{background:
    radial-gradient(900px 200px at 50% 0%, rgba(0,102,255,.12), transparent 60%)
  }
  .shot{border:1px solid var(--border); background:linear-gradient(180deg, #0b1020, #18223a); border-radius:20px; padding:0; overflow:hidden}
  .shot img{display:block; width:100%; height:auto}
  .shot .bar{display:flex; gap:6px; padding:12px; background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); border-bottom:1px solid var(--border)}
  
  /* Section: Pricing */
  .pricing .plans{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:18px}
  .plan{position:relative}
  .plan .ribbon{position:absolute; top:14px; right:14px; background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; font-size:12px; padding:6px 10px; border-radius:999px}
  .price{font-size:38px; font-weight:800; letter-spacing:-.4px}
  .plan ul{margin:14px 0 0; padding:0; list-style:none; display:grid; gap:10px}
  .plan li{display:flex; gap:10px; align-items:flex-start}
  .plan .ok{width:18px; height:18px; border-radius:5px; background:color-mix(in oklab, var(--brand) 35%, transparent); display:inline-grid; place-items:center; flex:0 0 18px}
  
  /* Section: Integrations */
  .integrations .logos{justify-content:flex-start}
  .int-grid{display:grid; grid-template-columns: repeat(4, 1fr); gap:16px}
  .int{border:1px solid var(--border); border-radius:14px; padding:14px; display:flex; align-items:center; gap:12px; background:var(--card)}
  .int svg{width:28px; height:28px}
  @media (max-width: 900px){.pricing .plans{grid-template-columns:1fr} .int-grid{grid-template-columns:1fr 1fr}}
  
  /* Section: FAQ */
  .faq .item{border:1px solid var(--border); border-radius:14px; padding:16px; background:var(--card)}
  .faq .q{display:flex; justify-content:space-between; gap:16px; align-items:center; cursor:pointer}
  .faq .a{max-height:0; overflow:hidden; transition:max-height .35s ease}
  .faq .item.open .a{max-height:300px}
  
  /* CTA */
  .cta{border:1px solid var(--border); background:linear-gradient(135deg, color-mix(in oklab, var(--card) 85%, transparent), color-mix(in oklab, var(--brand) 12%, transparent)); border-radius:24px; padding:28px; text-align:center}
  
  /* Footer */
  footer{padding:32px 0; border-top:1px solid var(--border); color:var(--muted)}
  .foot{display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap}
  
  /* Reveal animations */
  .reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease}
  .reveal.show{opacity:1; transform:none}
  
  /* Toggle */
  .switch{display:inline-flex; align-items:center; gap:8px}
  .toggle{width:44px; height:26px; background:var(--border); border-radius:999px; position:relative}
  .toggle::after{content:""; width:20px; height:20px; background:#fff; border-radius:50%; position:absolute; top:3px; left:3px; transition: left .25s ease}
  html.dark .toggle{background:color-mix(in oklab, var(--brand) 35%, #223)}
  html.dark .toggle::after{left:21px}
  
  /* Utility */
  .muted{color:var(--muted)}
  .center{text-align:center}
   /* секция контакты — готова к вставке в любой проект */
   #contact-section{
    padding: 72px 0;
    background: var(--bg);
    width: 100%;
  }
  #contact-section .title{
    font-size: clamp(22px, 3.2vw, 36px);
    margin: 0 0 12px;
    font-weight: 700;
  }
  #contact-section .subtitle{
    color: var(--muted);
    margin: 0 0 32px;
    font-size: 1.1rem;
  }
  #contact-section .contact-grid{
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  @media (max-width: 900px){
  #contact-section .contact-grid{ grid-template-columns: 1fr !important; }
  }
  /* карточки */
  #contact-section .card{
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
  }
  #contact-section .contact-info h3, .contact-form h3{
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 16px;
  }
  #contact-section  .info-item{
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
  }
  #contact-section  .info-icon{
    width: 48px; height: 48px;
    background: color-mix(in oklab, var(--brand) 20%, transparent);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
  }
  #contact-section  .info-text{
    font-size: 1.1rem;
  }
  #contact-section  .info-text small{
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
  }
  #contact-section .social-links{
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
  }
  #contact-section .social-link{
    width: 48px; height: 48px;
    border-radius: 14px;
    background: color-mix(in oklab, var(--brand) 15%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: .2s;
  }
  #contact-section .social-link:hover{
    background: var(--brand);
    color: white;
    border-color: var(--brand);
  }
  /* форма */
  #contact-section .form-group{
    margin-bottom: 20px;
  }
  #contact-section .form-label{
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
  }
  #contact-section .form-control{
    width: 100%;
    padding: 14px 18px;
    background: color-mix(in oklab, var(--bg) 80%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: .2s;
  }
  #contact-section .form-control:focus{
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent);
  }
  textarea.form-control{
    resize: vertical;
    min-height: 120px;
  }
  #contact-section .btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 14px 28px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: .2s;
    color: var(--text);
  }
  #contact-section .btn.primary{
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    border: 0;
  }
  #contact-section   .btn.primary:hover{
    opacity: 0.9;
    transform: scale(1.02);
  }
  #contact-section  .btn.ghost{
    background: transparent;
  }
  #contact-section  .form-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  @media (max-width: 500px){
    #contact-section .form-row{ grid-template-columns: 1fr; }
  }
  #contact-section  .note{
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 16px;
  }
  /* повторная демонстрация reveal */
  #contact-section  .reveal{
    opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease;
  }
  #contact-section  .reveal.show{
    opacity:1; transform:none;
  }
  #contact-section  hr{
    margin: 40px 0;
    border-color: var(--border);
  }

   /* Дополнительные стили для логотипа */
   .brand img {
    height: 36px;
    width: auto;
    border-radius: 8px;
  }
  
  @media (max-width: 768px) {
    .brand img {
      height: 32px;
    }
  }
  
  footer .brand img {
    height: 32px;
  }
  
/* ===== КОМПОНЕНТ АККАУНТА С ВЫПАДАЮЩИМ МЕНЮ ===== */
.account-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  padding: 6px 12px 6px 10px;
  border-radius: 40px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
}

.user-profile:hover {
  background: color-mix(in oklab, var(--brand) 15%, var(--card));
  border-color: var(--brand);
}

.user-profile.active {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 20%, var(--card));
}

.user-text {
  text-align: right;
  min-width: 0; /* для переноса текста */
  flex: 1;
}

.account-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  white-space: nowrap;
}

.account-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.account-email {
  font-size: 0.65rem;
  color: var(--muted);
  direction: ltr;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.avatar {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 102, 255, 0.3);
  flex-shrink: 0;
}

/* выпадающее меню */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-width: 90vw; /* не шире экрана */
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 16px 16px 10px;
  background: color-mix(in oklab, var(--card) 98%, var(--brand));
  border-bottom: 1px solid var(--border);
}

.dropdown-header .name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-header .email {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-weight: 500;
  transition: background 0.15s;
  cursor: pointer;
  font-size: 0.95rem;
}

.dropdown-item i {
  width: 20px;
  color: var(--brand);
  font-size: 1rem;
  flex-shrink: 0;
}

.dropdown-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item:hover {
  background: color-mix(in oklab, var(--brand) 15%, var(--card));
}

.dropdown-item.logout {
  color: #f28b82;
}

.dropdown-item.logout i {
  color: #f28b82;
}

/* для очень маленьких экранов */
@media (max-width: 480px) {
  .user-profile {
    padding: 5px 10px 5px 8px;
    gap: 8px;
  }
  
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .account-name {
    max-width: 100px;
    font-size: 0.85rem;
  }
  
  .account-email {
    max-width: 110px;
    font-size: 0.6rem;
  }
  
  .account-label {
    font-size: 0.6rem;
  }
  
  .dropdown-menu {
    width: 260px;
    right: -10px; /* немного смещаем влево, чтобы не уходило за экран */
  }
}

/* для альбомной ориентации на телефонах */
@media (max-width: 900px) and (orientation: landscape) {
  .dropdown-menu {
    max-height: 80vh;
    overflow-y: auto;
  }
}