*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    min-width: 360px;
}


html,
body,
div,
span,
object,
iframe,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
code,
em,
img,
small,
strike,
strong,
sub,
sup,
tt,
b,
u,
i,
ol,
ul,
li,
fieldset,
form,
label,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
main,
canvas,
embed,
footer,
header,
nav,
section,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: none;
}

footer,
header,
nav,
section,
main {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input {
    -webkit-appearance: none;
    border-radius: 0;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button:focus,
button:active,
a:focus,
a:active,
input:focus,
input:active,
textarea:focus,
textarea:active,
select:focus,
select:active {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

@font-face {
    font-family: ALSStory;
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url("../../fonts/ALSStory.woff2") format("woff2"),
        url("../../fonts/ALSStory.woff") format("woff");
}

@font-face {
    font-family: ALSStory-Bold;
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url("../../fonts/ALSStory-Bold.woff2") format("woff2"),
        url("../../fonts/ALSStory-Bold.woff") format("woff");
}

html {
    display: block;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    display: block;
    overflow-x: hidden;
    width: 100%;
}

.main {
    display: block;
    width: 100%;
}

.main h2 {
    display: block;
    width: 100%;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    font-size: 40px;
    line-height: 1.2;
    color: #000;
    margin-top: 120px;
}

@media (max-width: 768px) {
    .main h2 {
        font-size: 30px;
        margin-top: 80px;
    }
}

@media (max-width: 430px) {
    .main h2 {
        font-size: 24px;
        margin-top: 56px;
    }
}

.main p {
    display: block;
    width: 100%;
    font-size: 21px;
    line-height: 1.5;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    color: #000;
    margin-top: 32px;
}

@media (max-width: 430px) {
    .main p {
        font-size: 16px;
        margin-top: 24px;
    }
}

.main p + p {
    margin-top: 8px;
}

.main a {
    color: #113566;
    text-decoration: none;
    cursor: pointer;
    transition: 0.25s;
}

.main a:hover {
    color: #fb0953;
}

.main img {
    display: block;
    width: 100%;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 390px;
    padding: 55px 20px;
    background: url("../../img/theme1/header-banner.jpg") no-repeat center;
    background-size: cover;
}

@media (max-width: 768px) {
    .header {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .header {
        min-height: 220px;
    }
}

/* @media (max-width: 430px) {
    .header {
        min-height: 200px;
    }
} */

.header__container {
    display: block;
    width: 100%;
    max-width: 1210px;
    padding-right: 45px;
    padding-left: 45px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .header__container {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 430px) {
    .header__container {
        padding-right: 20px;
        padding-left: 20px;
    }
}

.header__title {
    display: block;
    width: 100%;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(27px);
    padding: 48px;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    font-size: 72px;
    line-height: 1.2;
    text-align: center;
    color: #fff;
}

@media (max-width: 1100px) {
    .header__title {
        font-size: 62px;
        padding: 32px;
        border-radius: 30px;
    }
}

@media (max-width: 576px) {
    .header__title {
        font-size: 32px;
        padding: 32px 24px;
        border-radius: 20px;
    }
}

.header__title-rubric {
    display: block;
    width: 100%;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(27px);
    padding: 48px;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    font-size: 72px;
    line-height: 1.2;
    text-align: center;
    color: #fff;
}

@media (max-width: 1100px) {
    .header__title-rubric {
        font-size: 62px;
        padding: 32px;
        border-radius: 30px;
    }
}

@media (max-width: 768px) {
    .header__title-rubric {
        font-size: 48px;
    }
}

@media (max-width: 576px) {
    .header__title-rubric {
        font-size: 32px;
        padding: 32px 24px;
        border-radius: 20px;
    }
}

@media (max-width: 430px) {
    .header__title-rubric {
        font-size: 28px;
    }
}

.site-header-shell {
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.site-header-shell__backdrop,
.site-header__blur {
  display: none;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-header .header-link,
.site-header .header__menu-btn-chevron,
.site-header .header-how {
  color: #000;
}

.site-header .header-how {
  transition: color .25s;
}

.site-header .header-link:hover,
.site-header .header-link:hover .header__menu-btn-chevron,
.site-header .header-how:hover {
  color: #fb0953;
}

.site-header .header-btn--outline {
  border-color: rgba(0, 0, 0, .35);
  color: #000;
  font-weight: 400;
  background: transparent;
}

.site-header .header-btn--outline:hover {
  border-color: #fb0953;
  color: white;
  background: #fb0953;
}

.site-header .header-btn--solid {
  background: #bd995b;
  font-weight: 400;
  color: #fff;
}

.site-header .header-btn--solid:hover {
  background: #fb0953;
}

.site-header .header-cart i {
  color: #575757;
}

.site-header .header-logo img {
  filter: brightness(0);
}

.site-header .header-burger .hamburger-inner,
.site-header .header-burger .hamburger-inner::before,
.site-header .header-burger .hamburger-inner::after {
  background-color: #000;
}

@media (max-width: 1159px) {
  .site-header .header-account__img--default {
    display: none;
  }

  .site-header .header-account__img--open {
    display: block;
  }
}

.theme2-main {
    display: block;
    width: 100%;
}

.theme2-main__container {
    display: block;
    width: 100%;
    max-width: 1440px;
    padding-right: 45px;
    padding-left: 45px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .theme2-main__container {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 430px) {
    .theme2-main__container {
        padding-right: 20px;
        padding-left: 20px;
    }
}

.surnames-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 120px 0 60px;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #000;
}

.surnames-intro h2,
.surnames-intro h3 {
    margin: 0;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    font-size: 40px;
    line-height: 1.2;
    color: #000;
}

.surnames-intro--flush {
    padding-top: 0;
}

.surnames-intro p {
    margin: 0;
}

.surnames-intro ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 28px;
    list-style: disc;
}

.surnames-intro li {
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #000;
}

.surnames-rubrics + .surnames-intro,
.surnames-intro + .surnames-intro {
    padding-top: 0;
}

@media (max-width: 768px) {
    .surnames-intro {
        padding: 60px 0;
    }

    .surnames-intro--flush {
        padding-top: 0;
    }

    .surnames-intro h2,
    .surnames-intro h3 {
        font-size: 30px;
        line-height: 1.27;
    }

    .surnames-rubrics + .surnames-intro,
    .surnames-intro + .surnames-intro {
        padding-top: 0;
    }

    .theme2-main__container > .surnames-intro:last-child {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .surnames-intro {
        padding: 60px 0 28px;
        font-size: 16px;
        line-height: 24px;
    }

    .surnames-intro--flush {
        padding-top: 0;
    }

    .surnames-intro h2,
    .surnames-intro h3 {
        font-size: 24px;
    }

    .surnames-intro li {
        font-size: 16px;
        line-height: 24px;
    }

    .surnames-rubrics + .surnames-intro,
    .surnames-intro + .surnames-intro {
        padding-top: 0;
    }

    .theme2-main__container > .surnames-intro:last-child {
        padding-bottom: 60px;
    }
}

.surnames-search {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 60px;
}

.surnames-search__title {
    margin: 0 0 24px;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    font-size: 40px;
    line-height: 1.2;
    color: #000;
}

@media (max-width: 768px) {
    .surnames-search__title {
        font-size: 30px;
        line-height: 1.27;
    }
}

@media (max-width: 480px) {
    .surnames-search__title {
        font-size: 24px;
    }
}

.surnames-search .input {
    position: relative;
    top: 0;
    display: inline-block;
    padding: 0 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.19);
    border-radius: 25px;
    background: #fff;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    width: 240px;
}

.surnames-search .input_search {
    max-width: 600px;
    width: 100%;
    margin-top: 15px;
}

.surnames-search .input:hover,
.surnames-search .input_focused {
    transform: translate(0, -5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.surnames-search .input__text,
.surnames-search .input__text:focus {
    display: block;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #000;
    background: transparent;
    user-select: text;
    -webkit-user-select: text;
}

.surnames-search .input__text::-webkit-input-placeholder {
    opacity: 1;
    color: #8a7c5d;
}

.surnames-search .input__text::-moz-placeholder {
    opacity: 1;
    color: #8a7c5d;
}

.surnames-search .input__text:-ms-input-placeholder {
    opacity: 1;
    color: #8a7c5d;
}

.surnames-search .input__text:focus::-webkit-input-placeholder {
    color: transparent;
}

.surnames-search .input__text:focus::-moz-placeholder {
    color: transparent;
}

.surnames-search .input__text:focus:-ms-input-placeholder {
    color: transparent;
}

.surnames-search__preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    height: 48px;
    margin-top: 24px;
}

.surnames-search__preloader[hidden] {
    display: none;
}

.surnames-search__preloader-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8a7c5d;
    transform: scale(0.45);
    animation: surnames-preloader-dot 1.2s ease-in-out infinite;
}

.surnames-search__preloader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.surnames-search__preloader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes surnames-preloader-dot {
    0%,
    70%,
    100% {
        transform: scale(0.45);
    }

    35% {
        transform: scale(1);
    }
}

.surnames-search__count {
    margin: 16px 0 0;
    color: #7d7d7d;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.25;
}

.surnames-search__count[hidden],
.surnames-search__empty[hidden],
.surnames-search__pagination[hidden] {
    display: none;
}

.surnames-search__empty {
    margin: 24px 0 0;
    color: #000;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 28px;
    line-height: 1.27;
}

.surnames-search__results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.surnames-search__link {
    color: #33407b;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 22px;
    line-height: 1.27;
    text-decoration: none;
    transition: color 0.25s;
}

.surnames-search__link:hover {
    color: #fb0853;
}

.surnames-search__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    width: 100%;
    margin: 32px 0 0;
    padding: 0;
}

.surnames-search__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #000;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.25s;
}

.surnames-search__page.is-active {
    border-radius: 50%;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}

.surnames-search__page:hover {
    color: #fb0853;
}

@media (max-width: 768px) {
    .surnames-search__empty {
        margin: 16px 0 0;
        font-size: 20px;
    }
    .surnames-search__results {
        gap: 8px;
        margin: 16px 0 0;
    }
    .surnames-search__link {
        font-size: 16px;
    }
    .surnames-search__page {
        font-size: 16px;
    }
    .surnames-search__pagination {
        margin: 24px 0 0;
        column-gap: 10px;
        row-gap: 0;
    }
}

.surnames-index {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 60px;
}

.surnames-index__title {
    margin: 0 0 24px;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    font-size: 40px;
    line-height: 1.2;
    color: #000;
}

.surnames-index__text {
    margin: 0 0 24px;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #000;
}

.surnames-index__letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    width: 100%;
}

.surnames-index__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #33407b;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    background: #fff;
    transition: color 0.25s, background 0.25s;
}

.surnames-index__letter:hover {
    color: #fff;
    background: #e20c4a;
}

.surnames-index__letter.is-active {
    color: #fff;
    background: #8a7c5d;
}

.surnames-letter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 0 0;
}

.surnames-letter__back {
    color: #8a7c5d;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.27;
    text-decoration: none;
    border-bottom: 1px dashed rgba(138, 124, 93, 0.5);
    transition: color 0.25s, border-color 0.25s;
}

.surnames-letter__back:hover {
    color: #fb0853;
    border-bottom-color: rgba(251, 8, 83, 0.5);
}

.surnames-letter + .surnames-index,
.surnames-letter + .surnames-popular {
    padding-top: 40px;
}

.surnames-letter-list {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .surnames-letter {
        padding-top: 28px;
    }

    .surnames-letter__back {
        font-size: 16px;
    }

    .surnames-letter + .surnames-index,
    .surnames-letter + .surnames-popular {
        padding-top: 28px;
    }

    .surnames-index__title {
        font-size: 30px;
        line-height: 1.27;
    }

    .surnames-index__letters {
        row-gap: 6px;
    }

    .surnames-index__letter {
        width: 22px;
        height: 22px;
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 480px) {
    .surnames-index__title {
        font-size: 24px;
    }

    .surnames-index__text {
        font-size: 16px;
        line-height: 24px;
    }
}

.surnames-popular {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 60px;
}

.surnames-popular__title {
    margin: 0 0 24px;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    font-size: 40px;
    line-height: 1.2;
    color: #000;
}

.surnames-popular__list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    gap: 24px 40px;
}

.surnames-popular__col {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 160px;
    gap: 8px;
}

.surnames-popular__link {
    color: #33407b;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 22px;
    line-height: 1.27;
    text-decoration: none;
    transition: color 0.25s;
}

.surnames-popular__link:hover {
    color: #fb0853;
}

@media (max-width: 768px) {
    .surnames-popular__title {
        font-size: 30px;
        line-height: 1.27;
    }

    .surnames-popular__link {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .surnames-popular__title {
        font-size: 24px;
    }

    .surnames-popular__col {
        min-width: calc(50% - 20px);
    }
}

.surnames-rubrics {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 60px;
}

.surnames-rubrics__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
    width: 100%;
}

.surnames-rubrics__block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.surnames-rubrics__category {
    margin: 0 0 16px;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    font-size: 28px;
    line-height: 1.27;
    color: #000;
}

.surnames-rubrics__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.surnames-rubrics__link {
    color: #113566;
    font-family: ALSStory Helvetica, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.27;
    text-decoration: none;
    transition: color 0.25s;
}

.surnames-rubrics__link:hover {
    color: #fb0853;
}

.surnames-rubrics__link.is-current {
    color: #8a7c5d;
    font-family: ALSStory-Bold, Helvetica, Arial, sans-serif;
    cursor: default;
    pointer-events: none;
}

.surnames-rubric-list__more {
    margin-top: 16px;
}

.surnames-rubric-list .surnames-search__preloader {
    margin-top: 0;
}

.surnames-intro .kg-card {
    margin: 0;
}

.surnames-rubrics__block:not(.is-expanded) .surnames-rubrics__item:nth-child(n+6) {
    display: none;
}

.surnames-rubrics__block.is-expanded [data-surnames-rubrics-more] {
    display: none;
}

.surnames-rubrics__block:not(.is-expanded) [data-surnames-rubrics-less] {
    display: none;
}

.surnames-rubrics__block--short .surnames-rubrics__actions {
    display: none;
}

.surnames-rubrics__actions {
    margin-top: 8px;
}

.surnames-rubrics__toggle {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    color: #8a7c5d;
    font-family: ALSStory, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.27;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dashed rgba(138, 124, 93, .5);
    transition: color 0.25s, border-color 0.25s;
}

.surnames-rubrics__toggle:hover {
    color: #fb0853;
    border-bottom: 1px dashed rgba(251, 8, 83, .5);
}

@media (max-width: 768px) {
    .surnames-rubrics {
        padding: 0 0 60px;
    }

    .surnames-rubrics__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .surnames-rubrics__category {
        font-size: 24px;
    }

    .surnames-rubrics__link {
        font-size: 16px;
    }

    .surnames-rubrics__toggle {
        font-size: 14px;
    }
}
