/* Google Fonts and Font Awesome already linked in HTML */
:root {
  --primary: #7f5af0;
  --secondary: #232946;
  --accent: #f25f4c;
  --bg: #f4f6fb;
  --glass: rgba(255,255,255,0.65);
  --glass-blur: blur(18px);
  --radius: 18px;
  --shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  --shadow-card: 0 4px 24px 0 rgba(127,90,240,0.10);
  --text: #232946;
  --text-light: #eebbc3;
  --wave: #7f5af0;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-header {
  background: var(--glass);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  border-bottom: 1.5px solid #e0e7ef;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 48px; 
  filter: drop-shadow(0 2px 8px #7f5af0aa);
  padding-left: 23px;
  padding-top: 10px;}
.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px #7f5af055;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary);
}
.hero {
  background: linear-gradient(120deg, #7f5af0 0%, #f25f4c 100%);
  position: relative;
  padding: 4.5rem 0 5.5rem 0;
  text-align: center;
  overflow: hidden;
  margin-bottom: 23px;
}
.hero::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100" viewBox="0 0 1440 100" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0C360 100 1080 0 1440 100V100H0V0Z" fill="%23f4f6fb"/></svg>') no-repeat bottom center/cover;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  background: var(--glass);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem 2rem;
  display: inline-block;
  backdrop-filter: var(--glass-blur);
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 0.7rem;
  color: var(--primary);
  letter-spacing: -1px;
  text-shadow: 0 2px 12px #fff8;
}
.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 32px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 24px #f25f4c33;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ff7a5a;
  transform: translateY(-2px) scale(1.04);
}
.converter {
  background: var(--glass);
  margin: 2.5rem 0 0 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 0 2rem 0;
  position: relative;
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
}
.converter::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, #7f5af033 60%, transparent 100%);
  z-index: 0;
}
.converter h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}
.upload-zone {
  border: 2.5px dashed var(--primary);
  border-radius: var(--radius);
  background: rgba(127,90,240,0.07);
  padding: 2.5rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px #7f5af022;
  position: relative;
  z-index: 2;
}
.upload-zone.dragover {
  border-color: var(--accent);
  box-shadow: 0 4px 32px #f25f4c33;
  background: rgba(242,95,76,0.08);
}
.upload-instructions p {
  margin: 0.5rem 0 0.25rem 0;
  font-size: 1.1rem;
}
.upload-instructions button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: underline;
  transition: color 0.2s;
}
.upload-instructions button:hover {
  color: var(--accent);
}
.converter-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.converter-controls label {
  font-weight: 700;
  color: var(--primary);
}
.converter-controls select, .converter-controls button {
  padding: 0.7rem 1.2rem;
  border-radius: 32px;
  border: 1.5px solid #e0e7ef;
  font-size: 1.1rem;
  background: #fff;
  font-weight: 600;
  transition: border 0.2s, box-shadow 0.2s;
}
.converter-controls select:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
.converter-controls button {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px #7f5af055;
}
.converter-controls button:hover, .converter-controls button:focus {
  background: #5f3dc4;
  transform: scale(1.04);
}
.progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}
.loader {
  border: 3px solid #e0e7ef;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.preview-area {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.preview-img-block {
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1rem 1.5rem 1rem;
  text-align: center;
  max-width: 240px;
  position: relative;
  backdrop-filter: var(--glass-blur);
  transition: box-shadow 0.2s, transform 0.15s;
}
.preview-img-block:hover {
  box-shadow: 0 8px 32px #7f5af044;
  transform: translateY(-2px) scale(1.03);
}
.preview-img-block img {
  max-width: 180px;
  max-height: 180px;
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 12px #7f5af022;
}
.download-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 32px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.7rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px #f25f4c33;
}
.download-btn:hover, .download-btn:focus {
  background: #ff7a5a;
  transform: scale(1.05);
}
/* SVG Wave for Blog Section */
.blog-snippets {
  background: linear-gradient(120deg, #f4f6fb 60%, #eebbc3 100%);
  padding: 3rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}
.blog-snippets::before {
  content: '';
  display: block;
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 80px;
  background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100" viewBox="0 0 1440 100" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 100C360 0 1080 100 1440 0V0H0V100Z" fill="%237f5af0"/></svg>') no-repeat top center/cover;
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.blog-post {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.blog-thumb {
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.blog-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.blog-post h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}
.read-more {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  margin-top: auto;
}
.faqs {
  background: linear-gradient(120deg, #eebbc3 0%, #f4f6fb 100%);
  padding: 3rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
.faq-item {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--glass);
  transition: box-shadow 0.2s, transform 0.15s;
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
  border: 1.5px solid #eebbc3;
}
.faq-item.open {
  box-shadow: 0 8px 32px #7f5af044;
  transform: scale(1.02);
  border-color: var(--primary);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.3rem 1.7rem 1.3rem 1.7rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  color: var(--primary);
  outline: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question:focus, .faq-question[aria-expanded="true"] {
  background: #eebbc3;
  color: var(--secondary);
}
.faq-question::after {
  content: '\25BC';
  font-size: 1.1rem;
  margin-left: 1rem;
  transition: transform 0.3s;
  color: var(--primary);
}
.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}
.faq-answer {
  display: none !important;
}
.faq-item.open .faq-answer {
  display: block !important;
  margin: 14px;
}
.faq-answer > * {
  min-height: 0;
}
.site-footer {
  background: var(--secondary);
  padding: 2rem 0 1rem 0;
  text-align: center;
  font-size: 1rem;
}
.footer-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.footer-links a {
  color: white;
  text-decoration: none;
  /* margin: 0 0.25rem; */
  font-weight: 300;
  font-size: 10px;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--primary);
}
.footer-social a {
  color: white;
  font-weight: 600;
  text-decoration: none;
}
.footer-social a:hover, .footer-social a:focus {
  color: var(--primary);
}

.footer-bio {
  font-size: 0.95rem;
  color: #64748b;
}
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  .about-article .container { padding: 0 1rem; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .hero-content { padding: 1.2rem 0.5rem; margin-left: 29px; margin-right: 29px; margin-bottom: 29px; }
  .converter, .about-article, .faqs { padding: 1.2rem 0; }
  .preview-area { gap: 1.2rem; }
  .about-article h2 { font-size: 1.3rem; }
  .about-article h3 { font-size: 1.08rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-desc { font-size: 1.05rem; }
  .cta-btn { font-size: 1.05rem; padding: 0.9rem 2rem; }
}
@media (max-width: 700px) {
  .header-flex { flex-direction: row; height: auto; }
  .main-nav ul { flex-direction: column; gap: 0.5rem; background: var(--glass); position: absolute; top: 72px; right: 0; width: 200px; box-shadow: var(--shadow); border-radius: var(--radius); padding: 1.2rem; display: none; }
  .main-nav.open ul { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1rem; }
  .hero-content { padding: 1rem 0.3rem; margin-left: 29px; margin-right: 29px; margin-bottom: 29px; }
  .hero-desc { font-size: 0.50rem; }
  .cta-btn { font-size: 1rem; padding: 0.85rem 1.5rem; width: 100%; max-width: 320px; }
  .converter, .about-article, .faqs { padding: 1.2rem 0; }
  .about-article h2 { font-size: 1.1rem; }
  .about-article h3 { font-size: 1rem; }
  .about-article article, .about-article ul, .about-article ol { font-size: 0.98rem; }
  .preview-area { flex-direction: column; gap: 1.2rem; }
  section.container { padding: 1.2rem 0.5rem; margin: 1.2rem 0; }
  .faq-list { gap: 1.2rem; }
  .faq-question { font-size: 1rem; padding: 1rem 1.1rem; }
  .faq-answer { font-size: 1rem; padding: 0 1.1rem; }
  .faq-item.open .faq-answer { padding: 0 1.1rem 1rem 1.1rem; }
}
@media (max-width: 425px) {
  .container { padding: 0 1rem; }
  .hero-content { padding: 0.7rem 0.1rem; margin-left: 29px; margin-right: 29px; margin-bottom: 29px; }
  .hero h1 { font-size: 1rem; }
  .hero-desc { font-size: 0.93rem; }
  .cta-btn { font-size: 0.98rem; padding: 0.8rem 1.1rem; width: 100%; max-width: 100%; }
  .about-article h2 { font-size: 1rem; }
  .about-article h3 { font-size: 0.95rem; }
  .about-article article, .about-article ul, .about-article ol { font-size: 0.93rem; }
  .footer-flex { gap: 0.5rem; }
}
@media (max-width: 375px) {
  .hero h1 { font-size: 0.93rem; }
  .hero-desc { font-size: 0.9rem; }
  .cta-btn { font-size: 0.95rem; padding: 0.7rem 0.7rem; }
  .about-article h2 { font-size: 0.95rem; }
  .about-article h3 { font-size: 0.9rem; }
  .about-article article, .about-article ul, .about-article ol { font-size: 0.9rem; }
}
/* --- Legal/Contact Pages --- */
section.container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
  padding: 2.5rem 2rem;
  max-width: 700px;
}
section.container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
section.container h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #334155;
}
section.container p, section.container ul, section.container ol {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text);
}
section.container ul, section.container ol {
  padding-left: 1.5rem;
}
section.container li {
  margin-bottom: 0.5rem;
}
section.container a {
  color: var(--primary);
  text-decoration: underline;
}
section.container a:hover, section.container a:focus {
  color: #1d4ed8;
}
/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
form label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
form input[type="text"],
form input[type="email"],
form textarea {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border 0.2s;
}
form input:focus,
form textarea:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
form button[type="submit"] {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
form button[type="submit"]:hover, form button[type="submit"]:focus {
  background: #1d4ed8;
}
.contact-telegram {
  display: inline-block;
  background: #229ED9;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.contact-telegram:hover, .contact-telegram:focus {
  background: #1c8dc7;
}
@media (max-width: 700px) {
  section.container {
    padding: 1.2rem 0.5rem;
    margin: 1.2rem 0;
  }
}
/* About Article Section - Attractive Design */
.about-article {
  background: linear-gradient(120deg, #f4f6fb 60%, #eebbc3 100%);
  position: relative;
  padding: 3rem 0 2rem 0;
  overflow: hidden;
  z-index: 2;
}
.about-article .container {
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem 2.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  backdrop-filter: var(--glass-blur);
  z-index: 3;
}
.about-article .container::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, #7f5af033 60%, transparent 100%);
  z-index: 1;
}
.about-article .container::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, #f25f4c22 60%, transparent 100%);
  z-index: 1;
}
.about-article h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.about-article article {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: 0 4px 32px #7f5af022;
  padding: 2rem 1.5rem 2rem 2.2rem;
  border-left: 6px solid var(--primary);
  position: relative;
  z-index: 2;
}
.about-article h3 {
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.18rem;
}
.about-article ul, .about-article ol {
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  font-size: 1.08rem;
  padding-left: 1.5rem;
}
.about-article li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.about-article p {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}
@media (max-width: 900px) {
  .about-article .container { padding: 1.5rem 0.7rem; }
  .about-article h2 { font-size: 1.3rem; }
  .about-article h3 { font-size: 1.08rem; }
  .about-article article { padding: 1.2rem 0.5rem 1.2rem 1.1rem; }
}
@media (max-width: 700px) {
  .about-article { padding: 1.2rem 0; }
  .about-article .container { padding: 1rem 1rem; }
  .about-article h2 { font-size: 1.1rem; }
  .about-article h3 { font-size: 1rem; }
  .about-article article, .about-article ul, .about-article ol { font-size: 0.98rem; }
  .about-article article { padding: 0.7rem 0.1rem 0.7rem 0.7rem; }
}
@media (max-width: 425px) {
  .about-article h2 { font-size: 15px; }
  .about-article h3 { font-size: 0.95rem; }
  .about-article article, .about-article ul, .about-article ol { font-size: 0.93rem; }
}
@media (max-width: 375px) {
  .about-article h2 { font-size: 0.95rem; }
  .about-article h3 { font-size: 0.9rem; }
  .about-article article, .about-article ul, .about-article ol { font-size: 15px; }
} 