:root{
  --bg:#08111f;
  --bg-soft:#0d1728;
  --panel:#0f1b31;
  --panel-2:#13223d;
  --text:#f3f7ff;
  --muted:#a9b8d0;
  --line:rgba(255,255,255,.08);
  --accent:#5ea2ff;
  --accent-2:#7c4dff;
  --success:#33d69f;
  --danger:#ff6b7a;
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:22px;
  --radius-sm:16px;
  --container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(94,162,255,.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(124,77,255,.12), transparent 24%),
    var(--bg);
}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.container{width:min(calc(100% - 32px), var(--container)); margin:0 auto}
.hidden{display:none !important}

.bg-glow{
  position:fixed;
  width:320px;
  height:320px;
  border-radius:50%;
  filter:blur(80px);
  opacity:.22;
  pointer-events:none;
  z-index:0;
}
.bg-glow-1{background:#3b82f6; top:-60px; left:-60px}
.bg-glow-2{background:#7c3aed; right:-60px; bottom:80px}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(14px);
  background:rgba(8,17,31,.65);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  font-weight:800;
  letter-spacing:.02em;
  font-size:22px;
}
.topnav{
  display:flex;
  gap:18px;
  color:var(--muted);
  font-size:14px;
}
.topnav a:hover{color:#fff}

.hero{
  position:relative;
  z-index:1;
  padding:54px 0 28px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
  align-items:stretch;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:#dbe8ff;
  font-size:13px;
  margin-bottom:16px;
}
.hero h1{
  margin:0 0 16px;
  font-size:54px;
  line-height:1.04;
  letter-spacing:-.03em;
}
.hero-text{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.65;
  max-width:700px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.hero-points span{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  color:#d6e2f7;
  font-size:13px;
}

.card{
  background:linear-gradient(180deg, rgba(19,34,61,.95), rgba(15,27,49,.95));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-right{padding:18px}
.mini-panel{height:100%}
.mini-head{display:flex;gap:8px;padding:10px 4px 18px}
.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.24);
}
.mini-body{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.mini-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.mini-item span{color:#c8d6ee}
.mini-item strong{color:#fff}

.section{
  position:relative;
  z-index:1;
  padding:28px 0;
}
.section-head{
  margin-bottom:18px;
}
.section-head h2{
  margin:0 0 8px;
  font-size:34px;
  line-height:1.1;
}
.section-head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.tool-groups{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}
.tool-group{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:#dbe8ff;
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
}
.tool-group.active{
  background:linear-gradient(135deg, rgba(255,196,87,.22), rgba(255,138,76,.18));
  border-color:rgba(255,196,87,.30);
  color:#fff2cf;
  box-shadow:0 10px 24px rgba(255,166,77,.12);
}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
.tool-card{
  padding:18px;
  cursor:pointer;
  transition:.18s ease;
}
.tool-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,196,87,.34);
  background:
    linear-gradient(180deg, rgba(36,26,10,.96), rgba(26,20,11,.96)),
    linear-gradient(135deg, rgba(255,196,87,.08), rgba(255,138,76,.06));
  box-shadow:0 18px 38px rgba(255,166,77,.10);
}
.tool-card.active{
  outline:none;
  border-color:rgba(255,196,87,.55);
  background:
    linear-gradient(180deg, rgba(52,36,14,.98), rgba(31,23,12,.98)),
    linear-gradient(135deg, rgba(255,196,87,.18), rgba(255,138,76,.14));
  box-shadow:
    0 0 0 1px rgba(255,196,87,.22) inset,
    0 20px 44px rgba(255,166,77,.16);
}
.tool-card.active .tool-name{
  color:#fff4cf;
}
.tool-card.active .tool-desc{
  color:#f0dfb0;
}
.tool-card.active .tool-tag{
  background:rgba(255,196,87,.14);
  border-color:rgba(255,196,87,.24);
  color:#fff1c8;
}
.tool-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.tool-name{
  font-size:18px;
  font-weight:700;
}
.tool-tag{
  font-size:12px;
  color:#dfe9ff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  padding:8px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.tool-desc{
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}

.workspace-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(320px, .75fr);
  gap:18px;
  align-items:start;
}
.workspace-card,
.status-card,
.history-card{
  padding:20px;
}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:18px;
}
.panel-head h3{
  margin:0;
  font-size:24px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(94,162,255,.14);
  color:#dceaff;
  border:1px solid rgba(94,162,255,.22);
  font-size:12px;
}
.pill-soft{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.08);
}
.tool-description{
  color:var(--muted);
  line-height:1.6;
  margin-bottom:14px;
}
.tool-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.form-block{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.form-block label{
  font-size:14px;
  font-weight:600;
}
input[type="text"], select{
  width:100%;
  min-height:48px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  padding:0 14px;
  outline:none;
}
input[type="text"]::placeholder{color:#8da0bf}
.hint{
  color:#8ea1bf;
  font-size:12px;
  line-height:1.5;
}

.dropzone{
  position:relative;
  border:1.5px dashed rgba(255,255,255,.14);
  border-radius:20px;
  background:rgba(255,255,255,.04);
  min-height:148px;
  overflow:hidden;
}
.dropzone.dragover{
  border-color:rgba(94,162,255,.65);
  background:rgba(94,162,255,.08);
}
.dropzone input[type="file"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}
.dropzone-inner{
  min-height:148px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:6px;
  padding:20px;
}
.dropzone-inner strong{font-size:17px}
.dropzone-inner span{color:var(--muted)}

.selected-files{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.file-chip{
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#dce6f8;
  font-size:13px;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:4px;
}
.btn{
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:700;
}
.btn-primary{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
}
.btn-secondary{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.btn-full{width:100%}

.status-log{
  min-height:82px;
  color:var(--muted);
  line-height:1.65;
}
.progress-wrap{margin:14px 0}
.progress-bar{
  width:100%;
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}
.progress-bar-fill{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  transition:width .22s ease;
}
.result-box{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  background:rgba(51,214,159,.08);
  border:1px solid rgba(51,214,159,.18);
}
.result-title{
  margin-bottom:12px;
  font-weight:700;
}

.side-stack{
  display:grid;
  gap:18px;
}
.history-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.history-item{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
}
.history-item strong{
  display:block;
  margin-bottom:6px;
}
.history-item span{
  display:block;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.text-btn{
  border:none;
  background:none;
  color:#cfe0ff;
  cursor:pointer;
}

.muted-section .card,
.step-card{
  background:linear-gradient(180deg, rgba(16,28,49,.9), rgba(12,22,40,.9));
}
.steps-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}
.step-card{
  padding:22px;
}
.step-num{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(94,162,255,.16);
  border:1px solid rgba(94,162,255,.22);
  font-weight:800;
  margin-bottom:14px;
}
.step-card h3{
  margin:0 0 10px;
}
.step-card p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.faq-list{
  display:grid;
  gap:12px;
}
.faq-item{
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.04);
  padding:16px 18px;
}
.faq-item summary{
  cursor:pointer;
  font-weight:700;
}
.faq-item p{
  margin:12px 0 0;
  color:var(--muted);
  line-height:1.65;
}

.footer{
  padding:26px 0 40px;
  color:var(--muted);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-top:18px;
}

@media (max-width: 1100px){
  .tools-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .hero h1{font-size:46px}
}
@media (max-width: 900px){
  .hero-grid,
  .workspace-grid,
  .steps-grid{
    grid-template-columns:1fr;
  }
  .tools-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .topnav{display:none}
}
@media (max-width: 640px){
  .container{width:min(calc(100% - 20px), var(--container))}
  .hero{padding-top:28px}
  .hero h1{font-size:34px}
  .section-head h2{font-size:28px}
  .tools-grid{grid-template-columns:1fr}
  .tool-card{padding:16px}
  .workspace-card,
  .status-card,
  .history-card,
  .step-card{padding:16px}
  .btn{width:100%}
  .form-actions{flex-direction:column}
  .hero-actions{flex-direction:column}
}


.seo-card{
  padding:24px;
}
.seo-card p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.78;
  font-size:16px;
}
.seo-card p:last-child{
  margin-bottom:0;
}


.lang-switcher-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.lang-label{
  color:var(--muted);
  font-size:13px;
}
.lang-select{
  min-height:42px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  padding:0 12px;
  min-width:148px;
}
html[dir="rtl"] body{
  direction:rtl;
}
html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .panel-head,
html[dir="rtl"] .tool-top,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-points,
html[dir="rtl"] .form-actions,
html[dir="rtl"] .footer-inner{
  direction:rtl;
}
html[dir="rtl"] .tool-form,
html[dir="rtl"] .section-head,
html[dir="rtl"] .status-log,
html[dir="rtl"] .seo-card p,
html[dir="rtl"] .faq-item p,
html[dir="rtl"] .hero-text{
  text-align:right;
}
html[dir="rtl"] .dropzone-inner{
  text-align:center;
}
@media (max-width: 900px){
  .lang-switcher-wrap{
    width:100%;
    justify-content:flex-end;
  }
}
@media (max-width: 640px){
  .lang-switcher-wrap{
    width:100%;
    justify-content:space-between;
  }
  .lang-select{
    width:100%;
    min-width:0;
  }
}

/* LANGUAGE_UI_POLISH_MARKER */


.topbar-inner{
  align-items:center;
}

.lang-switcher-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  margin-left:12px;
}

.lang-label{
  color:#c8d6ee;
  font-size:13px;
  white-space:nowrap;
}

.lang-select{
  min-height:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.10);
  color:#ffffff;
  padding:0 40px 0 14px;
  min-width:170px;
  font-weight:600;
  outline:none;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.lang-select:hover{
  border-color:rgba(255,255,255,.16);
}

.lang-select:focus{
  border-color:rgba(94,162,255,.55);
  box-shadow:0 0 0 3px rgba(94,162,255,.16);
}

.lang-select option{
  color:#111827;
  background:#ffffff;
}

html[dir="rtl"] .lang-switcher-wrap{
  margin-left:0;
  margin-right:12px;
}

html[dir="rtl"] .lang-label{
  white-space:nowrap;
}

@media (max-width: 1100px){
  .topbar-inner{
    gap:12px;
  }
  .lang-switcher-wrap{
    margin-left:0;
  }
}

@media (max-width: 900px){
  .topbar-inner{
    flex-wrap:wrap;
  }
  .lang-switcher-wrap{
    width:100%;
    justify-content:flex-end;
    margin-left:0;
  }
}

@media (max-width: 640px){
  .lang-switcher-wrap{
    width:100%;
    justify-content:space-between;
    padding:8px;
  }
  .lang-label{
    font-size:12px;
  }
  .lang-select{
    width:100%;
    min-width:0;
  }
}

/* FOOTER_LINKS_BLOCK */

.footer-links-card{
  margin-top:10px;
  margin-bottom:20px;
  padding:20px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(18,32,58,.94), rgba(10,19,35,.94));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 44px rgba(0,0,0,.24);
}

.footer-links-title{
  font-size:18px;
  font-weight:800;
  color:#eef4ff;
  margin-bottom:14px;
}

.footer-links-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

.footer-link-box{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:78px;
  padding:18px 20px;
  border-radius:20px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  overflow:hidden;
}

.footer-link-box::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.9;
  pointer-events:none;
}

.footer-link-box-accent::before{
  background:linear-gradient(135deg, rgba(255,196,87,.14), rgba(255,138,76,.10));
}

.footer-link-box-portfolio::before{
  background:linear-gradient(135deg, rgba(94,162,255,.16), rgba(124,77,255,.12));
}

.footer-link-box:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 36px rgba(0,0,0,.22);
}

.footer-link-box-accent:hover{
  border-color:rgba(255,196,87,.34);
  box-shadow:0 18px 36px rgba(255,166,77,.12);
}

.footer-link-box-portfolio:hover{
  border-color:rgba(94,162,255,.32);
  box-shadow:0 18px 36px rgba(94,162,255,.12);
}

.footer-link-heading{
  position:relative;
  z-index:1;
  font-size:18px;
  font-weight:800;
  color:#ffffff;
  line-height:1.35;
}

.footer-link-arrow{
  position:relative;
  z-index:1;
  width:40px;
  height:40px;
  min-width:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:#ffffff;
  font-size:20px;
  font-weight:700;
  transition:transform .18s ease, background .18s ease;
}

.footer-link-box:hover .footer-link-arrow{
  transform:translate(2px,-2px);
  background:rgba(255,255,255,.12);
}

html[dir="rtl"] .footer-links-card,
html[dir="rtl"] .footer-link-box{
  text-align:right;
}

html[dir="rtl"] .footer-link-box{
  flex-direction:row-reverse;
}

@media (max-width: 780px){
  .footer-links-grid{
    grid-template-columns:1fr;
  }
}
