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

@font-face {
  font-family: 'Montserrat';
  src: url('https://russiannamegenerator.org/assets/fonts/Montserrat-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('https://russiannamegenerator.org/assets/fonts/Montserrat-Bold.ttf') format('ttf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #F0F4FA;
  color: #000000;
  padding: 20px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 0;
  border-bottom: 1px solid #ddd;
  background: transparent;
  min-height: 50px;
}

.header-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 30px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  text-decoration: none;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.generator-value {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  max-width: 1200px;  
  margin: 15px auto 10px auto; 
  font-size: 16px;
  width: 100%;
}
.value {
  background: #ffffff;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-label {
  font-weight: 500;
  color: #3778be;
}
.value-value {
  font-weight: 600;
  color: #000000;
}
.value-date {
  color: #000000;
  font-size: 16px;
}

.generator-box {
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 1200px; 
  min-height: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
}

.generator {
  display: flex;
  gap: 30px;
  flex: 1;
}

.filters, .results {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.filters {
  padding: 0 10px;
}

#gender-form {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.button-group button {
  background-color: #4C6EF5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#clear-btn {
  background-color: #e5eafc;
  color: #4C6EF5;
  border: 1px solid #4C6EF5;
}

#clear-btn:hover {
  background-color: #d0dbfd;
  color: #1e3a8a;
}

.button-group button:hover {
  background-color: #3B5BDB;
}

.results {
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
}

.no-results {
  text-align: center;
  color: #B22222;
  font-size: 20px;
  margin-top: 15px;
  margin-bottom: 20px;
}

#all-meanings-select {
  display: block;
  margin: 0 auto 20px auto;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #4C6EF5;
}

.name-card.short-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  font-size: 17px;
}

.short-card .name-card-content {
  flex: 0 1 80%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.short-card .name-card-main {
  flex: 0 1 80%;
  min-width: 0;
}

.short-card .generated-ru-name {
  color: #000000;
  margin-bottom: 10px;
  font-size: 17px;
}

.short-card .generated-name {
  font-weight: 500;
}

.short-card p {
  margin-top: 0;
}

.name-card.full-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  font-size: 17px;
}

.full-card .name-card-content {
  flex: 0 1 80%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.full-card .name-card-main {
  flex: 0 1 80%;
  min-width: 0;
}

.full-card .generated-ru-name {
  color: #000000;
  margin-bottom: 10px;
  font-size: 17px;
}

.full-card .generated-name {
  font-weight: 500;
}

.full-card p {
  margin-top: 0;
}

.fact-wrapper {
  flex: 1;                 
  display: flex;
  align-items: center; 
  justify-content: center; 
}

#fact {
  font-style: italic;
  text-align: center;
  color: #000000;
  font-size: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.filter-group label {
  font-weight: 500;
  margin-bottom: 3px;
  color: #222;
}

.filter-group input[type="text"], 
.filter-group select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 16px;
}

.filter-group input[type="text"]:focus, 
.filter-group select:focus {
  border-color: #4C6EF5;
  outline: none;
}

.filter-group input[type="checkbox"] {
  margin-right: 8px;
}

.short-card .copy-btn {
  flex: 0 0 10%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  outline: none;
  transition: color 0.15s;
  color: #000000;
  min-width: 40px;
  padding: 0 2px;
}

.short-card .copy-btn img {
  width: 50px;
  height: 50px;
  display: block;
}

.short-card .copy-btn:hover {
  color: #000000;
}

.full-card .copy-btn {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  outline: none;
  transition: color 0.15s;
  color: #000000;
  min-width: 40px;
  padding: 0 2px;
}

.full-card .copy-btn img {
  width: 50px;
  height: 50px;
  display: block;
}

.full-card .copy-btn:hover {
  color: #000000;
}

.seo-text {
  background: transparent;
  padding: 10px 0 0 0;
  max-width: 1200px;
  margin: 0 auto;
  color: #000000;
  font-size: 18px;
  line-height: 1.7;
  font-family: 'Montserrat', Arial, sans-serif;
}

.seo-text h1,
.seo-text h2,
.seo-text h3,
.seo-text h4,
.seo-text h5 {
  color: #000000;
  margin-top: 1.7em;
  margin-bottom: 0.6em;
  font-weight: 700;
}

.seo-text h1 {
  font-size: 28px;
  margin-top: 0;
}

.seo-text h2 { font-size: 23px; }
.seo-text h3 { font-size: 19px; }
.seo-text h4 { font-size: 15px; }

.seo-text p {
  margin-bottom: 1.1em;
  color: #000000;
}

.seo-text ul, .seo-text ol {
  margin: 1em 0 1em 2em;
  padding-left: 1.2em;
}

.seo-text ul li, .seo-text ol li {
  margin-bottom: 0.4em;
  list-style-type: disc;
}

.seo-text a {
  color: #316ada;
  text-decoration: underline;
  transition: color 0.2s;
}

.seo-text a:hover {
  color: #000000;
  text-decoration: underline wavy;
}

.seo-text-image {
  margin: 1rem auto;
  max-width: 1000px;
  width: 100%;
  text-align: center;
  overflow: hidden; 
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.seo-text-image img {
  display: block;
  width: 100%;
  height: auto;
}

.seo-text .faq-section {
  margin-top: 2.5em;
  border-top: 1px solid #e0e5ed;
  padding-top: 1.3em;
}

.seo-text .faq-section h2, 
.seo-text .faq-section h3 {
  margin-top: 1.3em;
  color: #000000;
}

.seo-text .faq-list {
  margin: 1.5em 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  border: 1px solid #222;
  border-radius: 7px;
  padding: 13px 16px 8px 16px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(30, 30, 30, 0.03);
}

.seo-text .faq-question {
  font-weight: 600;
  margin-bottom: 0.3em;
}

.faq-answer {
  display: none;
  margin: 0 0 18px 0;
  color: #000000;
  transition: all 0.18s;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-item h3 {
  cursor: pointer;
  margin: 0;
  position: relative;
  padding-right: 26px;
}
.faq-item h3::after {
  content: "▼";
  font-size: 13px;
  position: absolute;
  right: 6px;
  top: 3px;
  transition: transform 0.18s;
}
.faq-item.active h3::after {
  transform: rotate(-180deg);
}

.seo-hidden-wrap {
  position: relative;
}

.seo-hidden-content {
  position: relative;
  transition: max-height 0.6s cubic-bezier(.5,1.7,.3,1), filter 0.2s;
  overflow: hidden;
  max-height: 293px;
  filter: blur(1px);
}

.seo-hidden-content h2 {
  margin-top: 0.6em;
}
.seo-hidden-content h2:first-child {
  margin-top: 0;
}

.seo-text.expanded .seo-hidden-content {
  max-height: 10000px;
  filter: none;
}

.seo-overlay {
  pointer-events: auto;
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255,255,255,0) 0%, rgba(250,250,250,0.97) 65%, #fafafa 100%);
  z-index: 3;
  transition: none !important;
  opacity: 1;
  border-radius: 0 0 15px 15px;
}

.seo-text.expanded .seo-overlay {
  opacity: 0;
  pointer-events: none;
}

.seo-expand-btn {
  display: block;
  margin: 20px auto 28px auto;
  background: #3778be;
  color: #fff;
  font-size: 18px;
  padding: 10px 32px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(80,100,180,0.07);
  position: relative;
  z-index: 5;
  transition: background 0.18s, color 0.18s;
}

.seo-expand-btn:hover {
  background: #184b85;
  color: #fff;
}

#gototop {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.12);
  border-radius: 50%;
  width: 40px;
  height: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

#gototop:hover {
  background: rgba(0,0,0,0.24);
}

.gototop-icon {
  display: block;
  width: 25px;
  height: 45px;
  fill: #fff;
}

.author-block {
  display: flex;
  align-items: flex-start;
  padding: 2rem 0;
  gap: 2rem;
}

.author-block__avatar {
  flex: 0 0 150px;
  width: auto;
  height: 180px;
  border-radius: 5%;
  overflow: hidden;
}
.author-block__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.author-block__inner {
  flex: 1;
}

.author-block__name {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
}

.author-block__content {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #404040;
}

.author-block__social {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.author-block__social li {
  margin: 0;
}

.author-block__social a {
  display: inline-block;
  width: 32px;
  height: 32px;
}

.author-block__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-block__social a:hover {
  opacity: 0.7;
}

.fullwidth-border {
  width: 100vw;
  height: 0;
  border-top: 1px solid #ddd;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: content-box;
} 

footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  background: transparent;
  min-height: 50px;
  width: 100%;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

footer a {
  color: #4C6EF5;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.trustpilot-widget {
  display: inline-block;
  max-width: 100%;
}

.trustpilot-widget img {
  height: auto;
  border: 0;
}

@media (max-width: 380px) {
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .container, .header-container, .generator-box, .seo-text, .footer-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
  }
  .header-container {
    display: block !important;
    padding: 2px !important;
    min-height: unset !important;
    text-align: left !important;
  }
  header {
    min-height: 30px !important;
    padding: 0 !important;
    margin-bottom: 8px !important;
  }
  .logo {
    display: block !important;
    font-size: 19px !important;
    line-height: 1.1 !important;
    word-break: break-all !important;
    white-space: normal !important;
    text-align: left !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  .generator-value {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .value {
    width: 100% !important;
    min-width: unset !important;
    font-size: 10px !important;
    padding: 3px 2px !important;
    margin-bottom: 1px !important;
    border-radius: 5px !important;
    word-break: break-word !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }
  .value-label, .value-value, .value-date {
    font-size: 11px !important;
  }
  .generator-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 5px 2px 7px 2px !important;
    margin: 7px 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}
  .generator {
    gap: 4px !important;
  }
  .filters {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }
  #gender-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px 68px !important;
    align-items: center !important;
    margin-bottom: 4px !important;
  }
  #gender-form label {
    font-size: 11px !important;
    white-space: normal !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }
  #gender-form input[type="radio"] {
    margin-right: 4px !important;
  }
  .filter-group label {
    font-size: 11px !important;
  }
  #meaning-filter {
    padding: 3px 4px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
  }
  .filter-group input[type="checkbox"] {
    margin-right: 3px !important;
  }
  .button-group button, #clear-btn, #meaning-filter {
    width: 100% !important;
    font-size: 11px !important;
    box-sizing: border-box !important;
  }
  .button-group {
    gap: 2px !important;
  }
  .button-group button,
  #clear-btn {
    padding: 5px 0 !important;
    font-size: 12px !important;
    border-radius: 5px !important;
    margin: 0 !important;
  }
  .name-card.short-card,
  .name-card.full-card {
    padding: 2px 2px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    margin-bottom: 4px !important;
    line-height: 1 !important;
  }
  .name-card .name,
  .short-card .generated-ru-name,
  .full-card .generated-ru-name,
  .name-card .meaning {
    font-size: 12px !important;
  }
  .name-card .copy-btn {
    min-width: 14px !important;
    font-size: 10px !important;
    padding: 1px !important;
  }
  .name-card .copy-btn img {
    width: 30px !important;
    height: 30px !important;
  }
  .results {
    margin-top: 4px !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .copied-message {
    font-size: 11px !important;
  }
  #gototop {
    right: 0.5px !important;
    width: 20px !important;
    height: 30px !important;
  }
  .no-results {
    font-size: 12px !important;
    margin-top: 12px !important;
    margin-bottom: 7px !important;
    line-height: 1.2 !important;
  }
  #all-meanings-select {
    display: none !important;
  }
  .seo-text {
    padding: 4px 1px 0 1px !important;
    font-size: 12px !important;
    line-height: 1.28 !important;
    border-radius: 0 !important;
  }
  .seo-text h1 { font-size: 17px !important; margin-bottom: 7px !important; }
  .seo-text h2 { font-size: 15px !important; margin-top: 0.7em !important; }
  .seo-text h3 { font-size: 12px !important; }
  .seo-text p { margin-bottom: 0.5em !important; font-size: 12px !important; }
  .seo-text ul, .seo-text ol {
    margin: 0.4em 0 0.4em 1em !important;
    padding-left: 0.5em !important;
    font-size: 12px !important;
  }
  .seo-text ul li, .seo-text ol li {
    font-size: 12px !important;
  }
  .seo-text a { font-size: 12px !important; }
  .seo-text-image {
    border-radius: 5px !important;
    margin: 0.2rem auto !important;
  }
  .seo-text-image img {
    border-radius: 5px !important;
  }
  .faq-item {
    border-radius: 4px !important;
    padding: 5px 2px 3px 2px !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
  }
  .seo-text .faq-question,
  .faq-answer,
  .faq-item h3 {
    font-size: 12px !important;
  }
  .faq-item h3 {
    padding-right: 9px !important;
  }
  .faq-item h3::after {
    font-size: 10px !important;
    right: 1px !important;
    top: 1px !important;
  }
  .seo-hidden-content {
    max-height: 140px !important;
  }
  .seo-text.expanded .seo-hidden-content {
    max-height: 10000px !important;
  }
  .seo-expand-btn {
    font-size: 12px !important;
    padding: 7px 7px !important;
    border-radius: 5px !important;
    margin: 8px auto 10px auto !important;
  }
  .author-block {
    gap: 0.6rem !important;
    padding: 0.5rem 0 0.3rem 0 !important;
  }
  .author-block H2 {
    font-size: 15px !important;
  }  
  .author-block__avatar {
    width: 120px !important;
    height: 120px !important;
    border-radius: 6px !important;
  }
  .author-block__content {
    font-size: 0.8rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.28 !important;
  }
  .author-block__social {
    gap: 0.25rem !important;
    margin-top: 0.3rem !important;
  }
  .author-block__social a {
    width: 22px !important;
    height: 22px !important;
  }
  .fullwidth-border {
    border-top: 1px solid #eee !important;
    margin: 10px 0 10px 0 !important;
  }
  footer {
    min-height: 20px !important;
    font-size: 10px !important;
    gap: 2px !important;
  }
  .footer-container {
    gap: 2px !important;
    padding: 0 2px !important;
  }
}

@media (max-width: 480px) {
  html, body {
    max-width: 100%;;
    overflow-x: hidden;
  }
  .container, .header-container, .generator-box, .seo-text, .footer-container {
    width: 100%;
    max-width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
  }
  .header-container {
    text-align: center;
  }
  .logo {
    display: inline-block;
    font-size: 22px;
    margin: 0 auto;
    float: none;
  }
  header, .header-container {
    min-height: 36px;
    padding: 0;
  }
  .generator-value {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
  }
  .value {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 6px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }
  .value {
    font-size: 15px;
  }  
  .value-header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px; 
  }
  .value-label {
    font-size: 14px;
    color: #3778be;
    font-weight: bold;
  }
  .value-value {
    font-size: 14px;
    font-weight: bold;
    color: #000;
  }
  .value-date {
    font-size: 14px;
  }
  .generator-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px 10px 18px 10px;
    margin: 18px auto;
    min-height: 360px;
    max-width: 410px;
    width: 100%;
    box-sizing: border-box;
  }
  .generator {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .filters {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  #gender-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 68px;
    align-items: center;
    margin-bottom: 5px;
  }
  #gender-form label {
    font-size: 15px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 0;
  }
  #gender-form input[type="radio"] {
    margin-right: 7px;
    accent-color: #3a6dff;
  }
  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .filter-group label {
    font-size: 15px;
    color: #225;
  }
  #meaning-filter {
    width: 100%;
    padding: 10px 12px;
    border-radius: 7px;
    border: 1px solid #cfd8dc;
    font-size: 15px;
    box-sizing: border-box;
    background: #f9fafb;
  }
  .filter-group input[type="checkbox"] {
    accent-color: #3a6dff;
    margin-right: 7px;
  }
  .button-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
  }
  .button-group button,
  #clear-btn {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border-radius: 7px;
    border: none;
    background: #3a6dff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: background 0.16s;
  }
  .button-group button:active,
  .button-group button:focus,
  #clear-btn:active,
  #clear-btn:focus {
    background: #1f47b9;
  }
  #clear-btn {
    background: #f6faff;
    color: #3466df;
    border: 1px solid #d0d7e2;
    margin-top: 0;
    font-weight: 500;
  }
  #clear-btn:hover {
    background: #e0e9f7;
  }
  .fact-wrapper, #fact {
    display: none !important;
  }
  .name-card.short-card,
  .name-card.full-card {
    padding: 4px 5px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 9px;
    line-height: 0.8;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  }
  .name-card .name {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 500;
  }
  .short-card .generated-ru-name {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 500;
  }
  .full-card .generated-ru-name {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 500;
  }
  .name-card .meaning {
    font-size: 15px;
    line-height: 1.1;
  }
  .name-card .copy-btn {
    min-width: 20px;
    font-size: 11px;
    padding: 2px;
  }
  .name-card .copy-btn img {
    width: 45px;
    height: 45px;
  } 
  .results {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
  }
  .copied-message {
  font-size: 15px;
  font-weight: bold;
  color: #000000;
  text-align: center;
  display: inline-block;
  }
  #gototop {
    right: 1px;
  }
  .no-results {
    text-align: center;
    color: #B22222;
    font-size: 15px;
    margin-top: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  #all-meanings-select {
    display: none;
  }
  .seo-text {
    padding: 8px 3px 0 3px;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 0;
  }
  .seo-text h1 { font-size: 24px; margin-bottom: 13px; }
  .seo-text h2 { font-size: 19.5px; margin-top: 1.2em; }
  .seo-text h3 { font-size: 16px; }
  .seo-text p { margin-bottom: 0.8em; font-size: 15px; }
  .seo-text ul, .seo-text ol {
    margin: 0.9em 0 0.9em 1.4em;
    padding-left: 1em;
    font-size: 15px;
  }
  .seo-text ul li, .seo-text ol li {
    margin-bottom: 0.2em;
    font-size: 15px;
  }
  .seo-text a { font-size: 15px; }
  .seo-text-image {
    border-radius: 10px;
    margin: 0.7rem auto;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  }
  .seo-text-image img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
  }
  .seo-text .faq-section {
    margin-top: 1.3em;
    padding-top: 0.7em;
    border-top: 1px solid #e0e5ed;
  }
  .seo-text .faq-section h2,
  .seo-text .faq-section h3 {
    font-size: 15px;
    margin-top: 1em;
  }
  .seo-text .faq-list {
    margin: 1em 0;
    font-size: 15px;
  }
  .faq-item {
    border-radius: 6px;
    padding: 9px 7px 6px 9px;
    margin-bottom: 10px;
    font-size: 15px;
  }
  .seo-text .faq-question {
    font-size: 15px;
    margin-bottom: 0.2em;
  }
  .faq-answer {
    margin: 0 0 12px 0;
    font-size: 15px;
  }
  .faq-item h3 {
    padding-right: 19px;
    font-size: 15px;
  }
  .faq-item h3::after {
    font-size: 12px;
    right: 3px;
    top: 2px;
  }
  .seo-hidden-content {
    max-height: 280px;
    filter: blur(1.2px);
  }
  .seo-text.expanded .seo-hidden-content {
    max-height: 8000px;
    filter: none;
  }
  .seo-overlay {
    border-radius: 0 0 8px 8px;
  }
  .seo-expand-btn {
    font-size: 15px;
    padding: 9px 16px;
    border-radius: 7px;
    margin: 14px auto 16px auto;
  }
  .author-block {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0.7rem 0;
    text-align: center;
  }
  .author-block H2 {
    font-size: 19.5px;
  }  
  .author-block__avatar {
    width: 160px;
    height: 160px;
    margin-bottom: 0.35rem;
    flex: 0 0 auto;
    border-radius: 8px;
  }
  .author-block__inner {
    width: 100%;
    padding: 0;
  }
  .author-block__content {
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: #373737;
  }
  .author-block__social {
    justify-content: center;
    gap: 0.43rem;
    margin-top: 0.55rem;
  }
  .author-block__social a {
    width: 30px;
    height: 30px;
  }
  .fullwidth-border {
    width: 100%;
    height: 0;
    border-top: 1px solid #e1e1e1;
    margin: 20px 0 18px 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }
  footer {
    min-height: 32px;
    font-size: 13px;
    flex-direction: column;
    gap: 5px;
    padding: 0;
  }
  .footer-container {
    flex-direction: column;
    gap: 5px;
    padding: 0 5px;
  }
}   

@media (min-width: 481px) and (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .container, .header-container, .generator-box, .seo-text, .footer-container {
    width: 100%;
    max-width: 750px;
    padding: 0 18px;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .header-container {
    text-align: left;
    padding: 0 18px;
  }
  .logo {
    display: inline-block;
    font-size: 29px;
    margin: 0 0 0 0;
    float: none;
  }
  header, .header-container {
    min-height: 48px;
    padding: 0;
  }
  .generator-value {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 12px;
  }
  .value {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    box-sizing: border-box;
    padding: 17px 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.07);
    font-size: 18px;
  }
  .value-header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px; 
  }
  .value-label {
    font-size: 17px;
    color: #3778be;
    font-weight: bold;
  }
  .value-value {
    font-size: 17px;
    font-weight: bold;
    color: #000;
  }
  .value-date {
    font-size: 16px;
  }
  .generator-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.09);
    padding: 22px 10px 20px 10px;
    margin: 26px 0 20px 0;
    min-height: 370px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .generator {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .filters {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
  }
  #gender-form,
  .filter-group {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 2px;
  }
  #gender-form label {
    font-size: 17px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 0;
  }
  #gender-form input[type="radio"] {
    margin-right: 9px;
    accent-color: #3a6dff;
  }
  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .filter-group label {
    font-size: 17px;
    color: #225;
  }
  #meaning-filter {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #cfd8dc;
    font-size: 17px;
    background: #f9fafb;
    box-sizing: border-box;
  }
  .filter-group input[type="checkbox"] {
    accent-color: #3a6dff;
    margin-right: 8px;
  }
  .button-group {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }
  .button-group button,
  #clear-btn {
    width: 100%;
    min-width: 0;
    padding: 13px 0;
    border-radius: 8px;
    border: none;
    background: #3a6dff;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: background 0.16s;
  }
  .button-group button:active,
  .button-group button:focus,
  #clear-btn:active,
  #clear-btn:focus {
    background: #1f47b9;
  }
  #clear-btn {
    background: #f6faff;
    color: #3466df;
    border: 1px solid #d0d7e2;
    margin-top: 0;
    font-weight: 500;
  }
  #clear-btn:hover {
    background: #e0e9f7;
  }
  .fact-wrapper, #fact {
    display: none !important;
  }
  .name-card.short-card,
  .name-card.full-card {
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 17px;
    margin-bottom: 13px;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
  }
  .name-card .name,
  .short-card .generated-ru-name,
  .full-card .generated-ru-name,
  .name-card .meaning {
    font-size: 17px;
    line-height: 1.1;
    font-weight: 500;
  }
  .name-card .copy-btn {
    min-width: 24px;
    font-size: 14px;
    padding: 3px;
  }
  .name-card .copy-btn img {
    width: 55px;
    height: 55px;
  } 
  .results {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
  }
  .copied-message {
    font-size: 17px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    display: inline-block;
  }
  #gototop {
    right: 10px;
  }
  .no-results {
    text-align: center;
    color: #B22222;
    font-size: 16px;
    margin-top: 27px;
    margin-bottom: 17px;
    line-height: 1.4;
  }
  #all-meanings-select {
    display: none;
  }
  .seo-text {
    padding: 20px 10px 0 10px;
    max-width: 100%;
    font-size: 17px;
    line-height: 1.6;
    border-radius: 0;
  }
  .seo-text h1 { font-size: 30px; margin-bottom: 18px; }
  .seo-text h2 { font-size: 22px; margin-top: 1.7em; }
  .seo-text h3 { font-size: 18px; }
  .seo-text p { margin-bottom: 1em; font-size: 17px; }
  .seo-text ul, .seo-text ol {
    margin: 1.2em 0 1.2em 1.6em;
    padding-left: 1.1em;
    font-size: 17px;
  }
  .seo-text ul li, .seo-text ol li {
    margin-bottom: 0.25em;
    font-size: 17px;
  }
  .seo-text a { font-size: 17px; }
  .seo-text-image {
    border-radius: 12px;
    margin: 1.1rem auto;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.09);
  }
  .seo-text-image img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
  }
  .seo-text .faq-section {
    margin-top: 2em;
    padding-top: 1.2em;
    border-top: 1px solid #e0e5ed;
  }
  .seo-text .faq-section h2,
  .seo-text .faq-section h3 {
    font-size: 17px;
    margin-top: 1.2em;
  }
  .seo-text .faq-list {
    margin: 1.2em 0;
    font-size: 17px;
  }
  .faq-item {
    border-radius: 8px;
    padding: 15px 11px 10px 15px;
    margin-bottom: 15px;
    font-size: 17px;
  }
  .seo-text .faq-question {
    font-size: 17px;
    margin-bottom: 0.22em;
  }
  .faq-answer {
    margin: 0 0 15px 0;
    font-size: 17px;
  }
  .faq-item h3 {
    padding-right: 23px;
    font-size: 17px;
  }
  .faq-item h3::after {
    font-size: 14px;
    right: 4px;
    top: 3px;
  }
  .seo-hidden-content {
    max-height: 370px;
    filter: blur(1px);
  }
  .seo-text.expanded .seo-hidden-content {
    max-height: 8000px;
    filter: none;
  }
  .seo-overlay {
    border-radius: 0 0 10px 10px;
  }
  .seo-expand-btn {
    font-size: 17px;
    padding: 12px 22px;
    border-radius: 8px;
    margin: 20px auto 22px auto;
  }
  .author-block {
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    padding: 1.3rem 0 0.8rem 0;
    text-align: left;
  }
  .author-block H2 {
    font-size: 22px;
  }  
  .author-block__avatar {
    width: 250px;
    height: 280px;
    margin-bottom: 0;
    flex: 0 0 auto;
    border-radius: 10px;
  }
  .author-block__inner {
    width: 100%;
    padding: 0;
  }
  .author-block__content {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.65;
    color: #373737;
  }
  .author-block__social {
    justify-content: flex-start;
    gap: 0.65rem;
    margin-top: 0.7rem;
  }
  .author-block__social a {
    width: 38px;
    height: 38px;
  }
  .fullwidth-border {
    width: 100%;
    height: 0;
    border-top: 1px solid #e1e1e1;
    margin: 32px 0 25px 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }
  footer {
    min-height: 38px;
    font-size: 15px;
    flex-direction: row;
    gap: 11px;
    padding: 0;
  }
  .footer-container {
    flex-direction: row;
    gap: 11px;
    padding: 0 18px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #all-meanings-select {
    display: none;
  }
}