@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Dark Theme defaults */
  --bg-base: #0a0a0b;
  --bg-surface: #131316;
  --bg-surface-hover: #1a1a1f;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.5);
  
  --glass-bg: rgba(19, 19, 22, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-default-theme="light"] {
  --bg-base: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(59, 130, 246, 0.4);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

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

[v-cloak] {
  display: none !important;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary-hover);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Navigation */
.agency-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.agency-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agency-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.agency-brand img {
  height: 28px;
  width: auto;
}

.agency-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.agency-links a, .dropdown > button {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.agency-links a:hover, .dropdown > button:hover {
  color: var(--text-main);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-surface);
  min-width: 200px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  padding: 0.5rem 0;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background-color: var(--bg-surface-hover);
  color: var(--accent-primary);
}

.agency-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.premium-link {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Hero Section */
.mail-hero {
  padding: 4rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle at center 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.mail-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-out;
}

.mail-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

/* Address Bar */
.address-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-pill);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  user-select: all;
}

.address-bar.is-ready {
  color: var(--text-main);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.address-bar:hover.is-ready {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.address-bar svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.address-bar:hover svg {
  opacity: 1;
}

/* Generator Panel */
.generator-panel {
  border: none;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 600px;
  margin-inline: auto;
  transition: opacity 0.3s;
}

.generator-panel:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.custom-generator {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  background: var(--bg-base);
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.custom-generator input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.custom-generator select {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

.create-btn, .random-btn {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform 0.1s;
  font-family: inherit;
  white-space: nowrap;
}

.create-btn:hover, .random-btn:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.create-btn:active, .random-btn:active {
  transform: translateY(1px);
}

.random-btn {
  width: 100%;
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.random-btn:hover {
  background: var(--border-subtle);
}

.or-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Action Grid */
.action-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.action-grid button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.action-grid button:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.action-grid button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Perk Note */
.perk-note {
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  box-shadow: var(--glass-shadow);
}

.perk-note strong {
  display: block;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.perk-note p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Inbox Section */
.inbox-section {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  width: 100%;
}

.inbox-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.inbox-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.2);
}

.inbox-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.inbox-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inbox-tools {
  display: flex;
  gap: 0.75rem;
}

.btn-action {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-action.primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.btn-action.danger {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-action.danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-action:hover {
  background: var(--border-subtle);
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.refresh-btn:hover {
  background: var(--accent-primary-hover);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.refresh-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spinner {
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 2px solid #fff;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

.mini-spinner {
  width: 16px;
  height: 16px;
}

.inbox-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
}

/* Empty State */
.msg-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  text-align: center;
}

.msg-empty p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* Message List */
.msg-item {
  display: flex;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition-fast);
  gap: 1rem;
}

.msg-item:hover {
  background: var(--bg-surface-hover);
}

.msg-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.msg-info {
  flex: 1;
  min-width: 0;
}

.msg-sender {
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-subject {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Message View */
.msg-view-sender {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.msg-view-sender .avatar {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.sender-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.sender-email {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.msg-view-subject {
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.msg-view-body {
  flex: 1;
  padding: 0;
  min-height: 400px;
  position: relative;
}

.msg-view-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff; /* Ensure emails are readable */
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* SEO Panel */
.seo-panel {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem;
}

.seo-panel__inner {
  max-width: 800px;
  margin: 0 auto;
}

.seo-panel h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.seo-panel h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--accent-primary);
}

.seo-panel p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.seo-panel ul, .seo-panel ol {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.seo-panel li {
  margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
}

.table-row {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.table-row:last-child {
  border-bottom: none;
}

.table-head {
  background: var(--bg-surface-hover);
  font-weight: 700;
}

.table-row > div {
  flex: 1;
  padding: 1rem;
  font-size: 0.95rem;
}

.table-row > div:first-child {
  flex: 1.5;
  font-weight: 600;
  color: var(--text-main);
}

.table-row .good { color: var(--success); font-weight: 500; }
.table-row .bad { color: var(--danger); }

/* FAQ */
.faq-list details {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-list summary {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-surface);
  user-select: none;
}

.faq-list p {
  padding: 1.25rem;
  margin: 0;
  border-top: 1px solid var(--border-subtle);
}

/* Footer */
.agency-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-base);
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.agency-footer nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Dialogs */
.dialog-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dialog-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--glass-shadow);
  animation: fadeIn 0.2s ease-out;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-main);
}

.dialog-box h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.dialog-copy {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.alias-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.alias-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.alias-input-wrap span {
  color: var(--text-muted);
}

.domain-chips {
  margin-bottom: 2rem;
}

.domain-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.domain-chip {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.domain-chip:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.domain-chip.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.dialog-actions {
  display: flex;
  gap: 1rem;
}

.dialog-actions button {
  flex: 1;
}

/* Switch Account List */
.email-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.email-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.email-list-item:hover {
  background: var(--bg-surface-hover);
}

.email-list-item.active {
  border-color: var(--accent-primary);
}

.email-list-item .avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-surface-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-primary);
}

.email-list-item .addr {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  background: var(--bg-surface-hover);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.badge.unread {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-primary);
}

.badge.expired {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.progress-dialog {
  text-align: center;
  max-width: 300px;
}

.progress-dialog .spinner {
  margin: 0 auto 1rem;
  border-color: rgba(59, 130, 246, 0.3);
  border-top-color: var(--accent-primary);
}

.icon-success {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 1rem;
  line-height: 1;
}

.icon-error {
  font-size: 3rem;
  color: var(--danger);
  margin-bottom: 1rem;
  line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .agency-links, .premium-link {
    display: none;
  }
  
  .mail-hero h1 {
    font-size: 2.25rem;
  }
  
  .address-bar {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    width: 100%;
  }
  
  .custom-generator {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .custom-generator input, .custom-generator select, .create-btn {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-base);
  }
  
  .create-btn {
    background: var(--accent-primary);
  }
}


/* Footer links (YAN compliance / legal visibility) */
.agency-footer a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 500;
}
.agency-footer a:hover {
  text-decoration: underline;
  color: #e9d5ff;
}
.agency-footer nav {
  flex-wrap: wrap;
}


/* ==========================================================================
   Yandex.RTB Responsive Ad System & Layout
   ========================================================================== */
.page-layout-with-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  gap: 24px;
  padding: 0 16px;
  position: relative;
}

.center-content-wrapper {
  flex: 1;
  min-width: 0;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-sidebar {
  display: none;
  width: 160px;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .ad-sidebar {
    display: block;
    width: 160px;
  }
}

@media (min-width: 1440px) {
  .ad-sidebar {
    display: block;
    width: 200px;
  }
}

.ad-sticky-container {
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 10;
}

.ad-banner-top {
  width: 100%;
  max-width: 800px;
  margin: 12px auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 90px;
  overflow: hidden;
}

.ad-banner-bottom {
  width: 100%;
  max-width: 800px;
  margin: 24px auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 90px;
  overflow: hidden;
}

[id^="yandex_rtb_"] {
  max-width: 100%;
}
