* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  min-height: 100vh;
  color: #333;
}

/* Header */
header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text-main {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem;
}

.logo-text-sub {
  font-size: 0.65rem;
  color: #a0aec0;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 2px;
}

.nav-menu a.nav-active, .nav-active {
    color: #4a90e2;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a:hover {
  color: #4a90e2;
}

/* Burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: #4a90e2;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown-toggle:hover {
  color: #357abd;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 1rem;
}

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

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
  color: #4a90e2;
  border-left-color: #4a90e2;
}

.dropdown-menu a:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
}

.format-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.format-selector label {
  font-weight: 500;
  color: #666;
  font-size: 0.9rem;
}

/* Language selector */
.language-selector {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: #333;
}

.language-toggle:hover {
  border-color: #4a90e2;
}

.language-flag {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.language-name {
  white-space: nowrap;
}

.language-arrow {
  font-size: 0.7rem;
  margin-left: 0.2rem;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.language-selector.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.language-option:hover {
  background: #f8f9fa;
  color: #4a90e2;
}

.language-option:first-child {
  border-radius: 8px 8px 0 0;
}

.language-option:last-child {
  border-radius: 0 0 8px 8px;
}

select {
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  font-size: 0.9rem;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a90e2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  color: #333;
}

select:hover {
  border-color: #4a90e2;
}

select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
  color: #2c3e50;
}

.breadcrumbs {
  color: #a0aec0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #4a90e2;
}

.breadcrumb-separator {
  color: #a0aec0;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #2c3e50;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Converter Section */
.converter-section {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

.upload-container {
  background: white;
  border-radius: 12px;
}

.upload-area {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  background: #f5f7fa;
  border-color: #4a90e2;
}

.upload-area.dragover {
  background: #eef4fb;
  border-color: #4a90e2;
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #a0aec0;
}

.upload-text {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.upload-subtext {
  color: #a0aec0;
  font-size: 0.9rem;
}

.or-divider {
  color: #a0aec0;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  text-align: center;
}

.upload-link-container {
  text-align: center;
}

.upload-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  color: #8e9aaf;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
}

.upload-link:hover {
  color: #4a5568;
}

.upload-option-icon {
  font-size: 1rem;
  line-height: 1;
}

/* URL Input Modal */
.url-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.url-modal.active {
  display: flex;
}

.url-modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  font-family: "Montserrat", sans-serif;
}

.url-modal-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
}

.url-modal-description {
  color: #8e9aaf;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
}

.url-inputs-container {
  margin-bottom: 1.5rem;
}

.url-input-group {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.url-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: "Montserrat", sans-serif;
}

.url-input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.url-input-remove {
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  color: #666;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.url-input-remove:hover {
  background: #fee;
  color: #e53e3e;
}

.url-add-more {
  width: 100%;
  padding: 0.8rem;
  background: #f8f9fa;
  border: 1px dashed #cbd5e0;
  border-radius: 8px;
  color: #4a90e2;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 1rem;
}

.url-add-more:hover {
  background: #eef4fb;
  border-color: #4a90e2;
}

.url-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.url-modal-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
}

.url-modal-btn-cancel {
  background: #f0f0f0;
  color: #666;
}

.url-modal-btn-cancel:hover {
  background: #e0e0e0;
}

.url-modal-btn-submit {
  background: #5a67d8;
  color: white;
}

.url-modal-btn-submit:hover {
  background: #4c51bf;
}

/* Files container */
.files-container {
  display: none;
  margin-bottom: 2rem;
}

.files-container.active {
  display: block;
}

/* File card */
.file-card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;

  position: relative;
}

.file-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.file-card.error {
  background-color: #FFCFCF;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-icon {
  width: 50px;
  height: 50px;
  background: #4a90e2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

a.file-details {
  text-decoration: none;
}


.file-name {
  font-weight: 600;
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.file-size {
  color: #a0aec0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.file-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
  min-height: 40px;
}

.settings-btn {
  background: #f8f9fa;
  border: none;
  color: #8e9aaf;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  visibility: hidden;
  opacity: 0;
}

.settings-btn.visible {
  visibility: visible;
  opacity: 1;
}

.settings-btn:hover {
  background: #eef4fb;
  color: #4a90e2;
}

.file-convert-to {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8e9aaf;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.remove-file {
  background: none;
  border: none;
  color: #cbd5e0;
  cursor: pointer;
  font-size: 1.8rem;
  padding: 0.3rem;
  transition: color 0.2s ease;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-file:hover {
  color: #e53e3e;
}

/* File convert selector */
.file-convert-selector {
  display: none;
}

.file-convert-selector label {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
  white-space: nowrap;
}

.format-select {
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-family: "Montserrat", sans-serif;
  color: #4a90e2;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a90e2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}

.format-select:hover {
  border-color: #4a90e2;
  background-color: #f8f9fa;
}

.format-select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Conversion settings modal */
.conversion-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.conversion-settings-modal.active {
  display: flex;
}

.conversion-settings {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  font-family: "Montserrat", sans-serif;
}

.conversion-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.conversion-settings-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
}

.conversion-settings-close {
  background: none;
  border: none;
  color: #cbd5e0;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.conversion-settings-close:hover {
  color: #e53e3e;
}

.conversion-settings-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.settings-save-btn {
  width: 100%;
  padding: 1rem;
  background: #48bb78;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 1rem;
}

.settings-save-btn:hover {
  background: #38a169;
}

.settings-apply-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8e9aaf;
  font-size: 0.9rem;
  justify-content: center;
  cursor: pointer;
}

.settings-apply-all input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Add more button */
.add-more-btn {
  width: 100%;
  padding: 1rem;
  background: #fafbfc;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  color: #4a90e2;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
}

.add-more-btn:hover {
  background: #f5f7fa;
  border-color: #4a90e2;
}

/* Add more section */
.add-more-section {
  margin-bottom: 2rem;
}

.add-more-section .upload-link-container {
  margin-top: 1rem;
}

/* Convert all button */
.convert-all-btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: #5a67d8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
}

.convert-all-btn:hover {
  background: #4c51bf;
}

.convert-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

a.convert-all-btn {
  display: block;
  text-decoration: none;
  text-align: center;
}

.cancel-btn {
  width: 100%;
  padding: 0.8rem;
  background: none;
  border: none;
  color: #a0aec0;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: "Montserrat", sans-serif;
}

.cancel-btn:hover {
  color: #4a90e2;
}

.conversion-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-group label {
  font-weight: 500;
  color: #4a5568;
  font-size: 0.9rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.option-group select {
  padding: 0.7rem 1rem;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  color: #333;
}

.option-group select:hover {
  border-color: #4a90e2;
}

.option-group select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.convert-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: #5a67d8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.convert-button:hover {
  background: #4c51bf;
}

.convert-button:active {
  transform: scale(0.98);
}

.convert-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Features Section */
.features-wrapper {
  background: white;
  border-radius: 12px;
  padding: 4rem 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

.features-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-weight: 700;
}

.features-title .highlight {
  color: #4a90e2;
  white-space: nowrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 0;
}

.feature-card {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-card p {
  color: #8e9aaf;
  line-height: 1.8;
  font-size: 1rem;
  font-weight: 400;
}

/* Supported Formats */
.formats-section {
  background: white;
  border-radius: 12px;
  padding: 4rem 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

.formats-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 700;
}

.formats-subtitle {
  text-align: center;
  color: #8e9aaf;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.formats-categories {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.format-category {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #4a90e2;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-icon {
  font-size: 2.5rem;
}

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.format-badge {
  background: white;
  color: #2c3e50;
  padding: 1.2rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid #e1e4e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.format-badge:hover {
  background: #4a90e2;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  border-color: #4a90e2;
}

.format-extension {
  font-size: 1.3rem;
  font-weight: 800;
}

.format-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8e9aaf;
  text-align: center;
}

.format-badge:hover .format-name {
  color: rgba(255, 255, 255, 0.9);
}

.formats-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #eef4fb;
  border-radius: 10px;
  color: #4a90e2;
  font-weight: 600;
}

@media (max-width: 768px) {
  .formats-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .format-category {
    padding: 1.5rem;
  }
}

/* How It Works */
.how-it-works {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  text-align: center;
  padding: 2rem;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.step-number {
  width: 50px;
  height: 50px;
  background: #4a90e2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
}

.step p {
  color: #718096;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Conversion Directions */
.conversion-directions {
  background: white;
  border-radius: 12px;
  padding: 4rem 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

.conversion-directions h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 700;
}

.conversion-subtitle {
  text-align: center;
  color: #8e9aaf;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.conversion-card {
  background: #fafbfc;
  border: 2px solid #e1e4e8;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.conversion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
  border-color: #4a90e2;
  background: white;
}

.conversion-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.conversion-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.conversion-card:hover .conversion-title {
  color: #4a90e2;
}

.conversion-description {
  font-size: 0.9rem;
  color: #8e9aaf;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .conversion-directions {
    padding: 2rem 1.5rem;
  }

  .conversion-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .conversion-card {
    padding: 1.5rem 1rem;
  }

  .conversion-icon {
    font-size: 2rem;
  }

  .conversion-title {
    font-size: 1rem;
  }

  .conversion-description {
    font-size: 0.85rem;
  }
}

/* About MP3 Format */
.about-format {
  background: white;
  border-radius: 12px;
  padding: 4rem 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

.about-format h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-weight: 700;
}

.about-format h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.format-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.format-overview p {
  color: #4a5568;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.format-overview p:last-child {
  margin-bottom: 0;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.spec-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #4a90e2;
}

.spec-label {
  font-size: 0.9rem;
  color: #8e9aaf;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.spec-value {
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 600;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.features-list .feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.features-list .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  height: auto;
  margin-bottom: 0;
}

.features-list .feature-text {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
}

.features-list .feature-text strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Quality Table */
.quality-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quality-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 2fr 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: center;
}

.quality-header {
  background: #4a90e2;
  color: white;
  font-weight: 600;
}

.quality-recommended {
  background: #eef4fb;
  border: 2px solid #4a90e2;
}

.quality-cell {
  font-size: 0.95rem;
  color: #4a5568;
}

.quality-header .quality-cell {
  color: white;
}

.quality-recommended .quality-cell {
  font-weight: 500;
}

/* Usage Grid */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.usage-card {
  background: #f8f9fa;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.usage-card:hover {
  border-color: #4a90e2;
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.usage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.usage-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.usage-desc {
  font-size: 0.9rem;
  color: #8e9aaf;
  line-height: 1.5;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #4a90e2, #764ba2);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: #4a90e2;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #4a90e2;
}

.timeline-year {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4a90e2;
  margin-bottom: 0.5rem;
}

.timeline-content {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .about-format {
    padding: 2rem 1.5rem;
  }

  .about-format h2 {
    font-size: 2rem;
  }

  .about-format h3 {
    font-size: 1.5rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .quality-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .quality-cell {
    font-size: 0.9rem;
  }

  .usage-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.5rem;
  }
}

/* Footer */
footer {
  background: white;
  padding: 2rem;
  text-align: center;
  color: #718096;
  margin-top: 3rem;
  border-top: 1px solid #f0f0f0;
}

footer a:hover {
  color: #4a90e2;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 2rem;
  }

  .converter-section,
  .formats-section,
  .how-it-works,
  .features-wrapper {
    padding: 2rem 1.5rem;
  }

  nav {
    flex-wrap: nowrap;
  }

  .burger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-overlay {
    display: block;
  }

  .nav-menu a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 0;
    margin-left: 1rem;
    border-radius: 0;
    border-left: 2px solid #4a90e2;
    background: #f8f9fa;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #e1e4e8;
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .format-selector {
    width: 100%;
    padding: 1rem 0;
    justify-content: flex-start;
    border-top: 1px solid #f0f0f0;
  }

  .language-selector {
    width: 100%;
    margin-top: 1rem;
    padding-left: 0;
    margin-left: -0.5rem;
  }

  .language-toggle {
    width: calc(100% + 0.5rem);
    justify-content: space-between;
  }

  .language-name {
    display: inline;
  }

  .language-arrow {
    display: inline;
  }

  .language-dropdown {
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid #e1e4e8;
  }

  .language-dropdown a {
    padding: 1rem;
  }

  select {
    width: auto;
  }

  .features-title {
    font-size: 1.8rem;
  }
}

/* Скрыть текст языка на десктопе */
@media (min-width: 1201px) {
  .language-name {
    display: none;
  }

  .language-arrow {
    display: none;
  }

  .language-toggle {
    padding: 0.5rem;
    min-width: 40px;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* File card responsive */
  .file-info {
    flex-wrap: wrap;
  }

  .file-details {
    order: -1;
    flex-basis: 100%;
    margin-bottom: 0.5rem;
  }

  .file-icon {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .file-name {
    font-size: 0.9rem;
  }

  .file-size {
    font-size: 0.85rem;
  }

  .file-actions {
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .settings-btn {
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    width: 36px;
    height: 36px;
  }

  .file-convert-to {
    font-size: 0.75rem;
  }

  .format-select {
    font-size: 0.85rem;
    padding: 0.4rem 1.5rem 0.4rem 0.6rem;
  }

  .remove-file {
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
  }

  .conversion-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Font tweaks */
  .features-title {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .feature-icon {
    height: 100px;
    font-size: 4rem;
    margin-bottom: 1rem;
  }

  .feature-card h3 {
    font-size: 1.3rem;
  }

  .category-icon {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1rem
  }
}

/* full bleed mobile layout */
@media (max-width: 428px) {
  .container {
    padding: 1rem 0;
  }

  .converter-section, .features-wrapper, .formats-section, .how-it-works, .about-format  {
    border-radius: 0;
    padding: 1.5rem 1rem;
  }

  .converter-section {
    padding: 1.5rem 0.5rem;
  }

  .formats-section h2 {
    font-size: 2rem;
  }

  .file-card {
    padding: 1rem 0.5rem;
  }

  .file-info {
    gap: 1rem 0.5rem
  }
  .file-actions {
    gap: 0.5rem;
  }
}

/* File input hidden */
#fileInput {
  display: none;
}

/* Progress bar */  

.progress {
  position: absolute;
  left: 0;
  top:0;
  height: 10px;
  border-radius: 12px 0 0 0;
  transition: all 0.1s;
}
