/* Бумага: один спокойный вид для сайта, кабинета и админки.
   Поля, отправка форм и оплата не меняются. */

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500;600&display=swap");

body,
.page-wrapper,
#main-wrapper,
.skin-blue-dark {
    background: #f3ebe1 !important;
    color: #3a2a22;
    font-family: Manrope, "Segoe UI", sans-serif;
}

h1, h2, h3, h4,
.plans__title,
.contacts__title,
.banner__info__title,
.product_card__name,
.modal__title,
.text-themecolor,
.box-title {
    font-family: Lora, Georgia, serif;
    font-weight: 560;
    color: #3a2a22;
}

a {
    color: #6d5344;
}

.header {
    background: #f3ebe1;
    border-bottom: 1px solid #e7d7c4;
}

.header__nav menu > li > a,
.header__top__right,
.header__top__right__calllink,
.header a {
    color: #3a2a22;
}

.header__top__left__logo {
    color: #3a2a22;
}

.footer,
html body .footer {
    background: #f3ebe1 !important;
    color: #7a6558 !important;
    border-top: 1px solid #e7d7c4 !important;
}

.footer__logo,
.footer a,
.footer__columns__item__title,
.footer__columns__item__calllink,
.footer__columns__item__address,
.footer__columns__item__smalltext {
    color: #3a2a22;
}

.banner,
.shop-info,
.fabric,
.howwedo,
.plans,
.bg-container {
    background: #f3ebe1 !important;
    color: #3a2a22;
}

.plans__title,
.plans__description,
.shop-info__text__subtitle,
.shop-info__text__info {
    color: #3a2a22;
}

.btn.btn-red,
.btn.btn-black,
.btn.btn-blue-grad,
.btn.btn-info,
.btn.btn-primary,
.btn.btn-success,
a.btn-red,
button.btn-red,
.plan__button.btn-red {
    background: #9a4f34 !important;
    background-image: none !important;
    border-color: #9a4f34 !important;
    color: #f7f4ee !important;
    border-radius: 10px;
    box-shadow: none;
}

.btn:not(.btn-red):not(.btn-black):not(.btn-blue-grad):not(.btn-info):not(.btn-primary):not(.btn-success) {
    border-radius: 10px;
}

.form-control,
input.form-control,
textarea.form-control,
select.form-control {
    border: 1px solid #e7d7c4;
    border-radius: 10px;
    background: #fffaf4;
    color: #3a2a22;
    box-shadow: none;
}

.form-control:focus {
    border-color: #9a4f34;
    box-shadow: none;
}

.card,
.modal__container,
.login-box,
.memorypage-card {
    background: #fffaf4;
    border: 1px solid #e7d7c4;
    border-radius: 14px;
    box-shadow: none;
}

.modal__overlay {
    background: rgba(36, 31, 28, 0.45);
}

.modal__title,
.modal__header,
.modal__content {
    color: #3a2a22;
}

.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
    background: #fffaf4 !important;
    color: #3a2a22 !important;
    border: 1px solid #e7d7c4 !important;
    border-radius: 12px;
}

.alert-danger {
    border-color: #c4a574 !important;
}

.alert h3,
.alert .text-success,
.alert .text-danger {
    color: #3a2a22 !important;
    font-family: Lora, Georgia, serif;
}

.plans__list.tarifs__slider,
.tarifs__small {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.createMemoryPageModal-steps .plans__list.tarifs__slider {
    grid-template-columns: 1fr 1fr;
}

#createMemoryPageModal .modal__container,
#createMemoryPageModal .modal__container--wide,
#createMemoryPageModal .modal__content {
    width: auto;
    max-width: min(920px, 94vw);
    background: #fffaf4;
}

#createMemoryPageModal .plans__list.tarifs__slider {
    width: 100%;
}

.plans__list.tarifs__slider .plan {
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 100%;
    transform: none !important;
    background: #fffaf4;
    border: 1px solid #e7d7c4 !important;
    box-shadow: none !important;
}

.plan--featured {
    border-color: #9a4f34 !important;
    transform: none !important;
}

.plan:hover,
.plan--featured:hover {
    transform: none !important;
}

.plan__badge {
    display: none;
}

.plan__title,
.plan__price {
    font-family: Lora, Georgia, serif;
    color: #3a2a22;
}

.page-nav {
    background: #f3ebe1;
    border-bottom: 1px solid #e7d7c4;
}

.page-nav a,
.page-nav a.active,
.page-nav a:hover {
    color: #3a2a22;
}

.page-nav a.active {
    border-bottom-color: #9a4f34;
}

.product_card__name,
.epitaphia__text {
    font-family: Lora, Georgia, serif;
    color: #3a2a22;
}

.product-page {
    color: #3a2a22;
}

.edit-nav {
    position: sticky;
    top: 70px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 16px;
    padding: 12px 4px;
    background: #f3ebe1;
}

.edit-nav a {
    color: #7a6558;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-size: 14px;
}

.edit-nav a:hover {
    color: #3a2a22;
    border-bottom-color: #cfc6ba;
}

.edit-section {
    font-family: Lora, Georgia, serif;
    color: #3a2a22;
    scroll-margin-top: 130px;
}

.left-sidebar,
.scroll-sidebar,
.sidebar-nav,
.navbar,
.topbar,
.skin-blue-dark .left-sidebar,
.skin-blue-dark .topbar,
.skin-blue-dark .navbar {
    background: #fffaf4 !important;
}

.sidebar-nav ul li a,
.sidebar-nav ul li a i,
.hide-menu {
    color: #3a2a22 !important;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    background: #f3ebe1 !important;
}

html body .page-titles,
html body .page-titles .breadcrumb,
html body .page-titles .breadcrumb a,
html body .page-titles .breadcrumb-item.active,
html body .page-titles .text-themecolor {
    color: #3a2a22 !important;
    background: #f3ebe1 !important;
}

.table {
    color: #3a2a22;
}

.page-wrapper .table {
    background: #fffaf4;
    color: #3a2a22;
}

.page-wrapper .table th,
.page-wrapper .table td {
    background: transparent;
    color: #3a2a22;
    border-top-color: #e7d7c4;
}

.page-wrapper .table thead th {
    background: #f3ebe1 !important;
    color: #7a6558 !important;
}

html body .page-wrapper .table-hover tbody tr:hover,
html body .page-wrapper .table-hover tbody tr:hover > td,
html body .page-wrapper .table-hover tbody tr:hover > th {
    background: #f3efe8 !important;
    background-color: #f3efe8 !important;
    color: #3a2a22 !important;
}

html body .page-wrapper .table-striped tbody tr,
html body .page-wrapper .table-striped tbody tr:nth-of-type(odd),
html body .page-wrapper .table-striped tbody tr:nth-of-type(even),
html body .page-wrapper .table-striped tbody tr > td,
html body .page-wrapper .table-striped tbody tr > th,
html body .page-wrapper .table-bordered td,
html body .page-wrapper .table-bordered th {
    background: #fffaf4 !important;
    background-color: #fffaf4 !important;
    color: #3a2a22 !important;
    border-color: #e7d7c4 !important;
}

.preloader {
    background: #f3ebe1;
}

@media (max-width: 1100px) {
    .plans__list.tarifs__slider,
    .tarifs__small {
        grid-template-columns: 1fr 1fr;
    }
}

.plan__button {
    background: #9a4f34 !important;
    color: #f7f4ee !important;
    border: 0 !important;
    border-radius: 10px !important;
    width: 100%;
    box-shadow: none !important;
}

.plan__button.plan__button--trial {
    margin-top: auto !important;
    margin-bottom: 0;
    background: #fffaf4 !important;
    color: #9a4f34 !important;
    border: 1px solid #9a4f34 !important;
}

.plan form:has(.plan__button--trial) {
    margin-top: auto;
    width: 100%;
}

.plan form:has(.plan__button--trial) .plan__button--trial {
    margin-top: 0 !important;
}

.plan__trial-note {
    margin: 4px 0 0;
    color: #7a6558;
    font-size: 13px;
    line-height: 1.35;
}

.promo-apply-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.promo-apply-row .form-control {
    flex: 1 1 auto;
}

.promo-apply-msg {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.35;
}

.promo-apply-msg--ok {
    color: #2f6b3a;
}

.promo-apply-msg--bad {
    color: #a33b3b;
}

.pay-summary {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #e7d7c4;
    border-radius: 10px;
    background: #fffaf4;
    max-width: 420px;
}

.pay-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0;
}

.pay-summary__total {
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e7d7c4;
}

.primer-page {
    padding: 24px 0 48px;
}

.primer-page__lead {
    max-width: 720px;
    margin: 0 0 24px;
    color: #4a433c;
    line-height: 1.5;
}

.primer-stage {
    position: relative;
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 20px 18px 28px;
    border: 1px solid #e7d7c4;
    border-radius: 16px;
    background: #fffaf4;
}

.primer-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(44, 51, 48, 0.04);
}

.primer-tip__num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #9a4f34;
    color: #f7f4ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.primer-tip__text {
    margin: 0;
    color: #9a4f34;
    line-height: 1.4;
}

.primer-actions {
    text-align: center;
    margin-top: 20px;
}

.plan__trial-note + .plan__button,
.plan__button--trial + .plan__button,
.plan form:has(.plan__button--trial) + .plan__trial-note + .plan__button {
    margin-top: 6px !important;
}

.memory-card-trial {
    display: inline-block;
    margin: 8px 8px 0 0;
}

/* Плотная раскладка: без баннера на пол-экрана и без секций по 120px. */
html:has(header.header) {
    padding-top: 64px !important;
}

.header__top {
    min-height: 56px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.header__top__left__logo {
    font-size: 22px !important;
    line-height: 1.1 !important;
    font-family: Lora, Georgia, serif !important;
    font-weight: 560 !important;
}

.header__top__left__logo img {
    max-height: 36px;
    width: auto;
}

.header__nav menu > li > a {
    font-size: 14px !important;
}

section,
section.container {
    margin-bottom: 28px !important;
}

.plans {
    padding: 4px 0 12px !important;
    background: transparent !important;
}

.plans__header {
    margin-bottom: 12px !important;
    text-align: left;
}

.paper-home {
    margin-top: 28px;
}

.paper-home__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: stretch;
}

.paper-home .banner__info__title {
    font-size: 34px !important;
    line-height: 1.15 !important;
    margin: 0 0 8px !important;
    text-align: left !important;
}

.paper-home .banner__info__subtitle,
.paper-home__lead,
.paper-home__text {
    margin: 0 0 8px;
    color: #7a6558;
    font-size: 16px;
    line-height: 1.4;
}

.paper-home__price {
    margin: 0 0 8px;
    color: #3a2a22;
    font-size: 15px;
    line-height: 1.4;
}

.paper-home .banner__info__buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0;
}

.paper-home .banner__info__buttons .btn-quiet {
    background: #fffaf4 !important;
    color: #3a2a22 !important;
    border: 1px solid #9a4f34 !important;
    border-radius: 0.8rem !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 1.6rem 5.5rem !important;
}

.paper-home__facts {
    display: flex;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.paper-home__facts li {
    flex: 1;
    background: #fffaf4;
    border: 1px solid #e7d7c4;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
}

.paper-home__copy {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.paper-home__count {
    margin: auto 0 0;
    padding-top: 18px;
    color: #3a2a22;
    font-size: 16px;
}

.paper-home__count b {
    font-family: Lora, Georgia, serif;
    font-size: 28px;
    font-weight: 560;
    padding: 0 4px;
}

.paper-home .memorypage-card {
    margin: 0;
    height: 100%;
}

.paper-home .search-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    margin-top: 14px;
    background: #fffaf4;
    border: 1px solid #e7d7c4;
    border-radius: 14px;
}

.paper-home .search-form__row--main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.paper-home .search-form__label {
    min-width: 0;
    color: #7a6558;
}

.paper-home .search-advanced,
.paper-home .search-form__row--advanced {
    width: 100%;
}

.paper-home .search-form__row--center {
    width: auto;
    margin: 0;
}

.howwedo__slider {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.howwedo__slider__item {
    margin: 0 !important;
    box-shadow: none !important;
    background: #fffaf4 !important;
    border: 1px solid #e7d7c4;
    padding: 14px !important;
}

.howwedo__slider__img {
    display: none !important;
}

.howwedo__slider .slick-list,
.howwedo__slider .slick-track {
    display: contents !important;
}

.product-page .product_card {
    align-items: flex-start !important;
    gap: 12px !important;
}

.product-page .product_card__image {
    width: min(100%, 720px) !important;
    height: 420px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background-position: center top !important;
}

.product-page .product_card__name {
    font-size: 32px !important;
    line-height: 1.15 !important;
    text-align: left;
}

.product-page .page-nav {
    top: 64px !important;
    padding: 28px 0 8px !important;
    background: #f3ebe1 !important;
}

.memory-card--created {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    max-width: 760px;
    overflow: hidden;
}

.memory-card--created .card-img-top,
.memory-card--created .card-img-grid {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.memory-card--created .btn-primary,
.memory-card--created .btn-secondary {
    background: transparent !important;
    color: #3a2a22 !important;
    border: 0 !important;
    border-bottom: 1px solid #cfc6ba !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 2px !important;
    margin-right: 14px;
}

.edit-nav a {
    border: 1px solid #e7d7c4;
    border-radius: 999px;
    padding: 4px 10px;
    background: #fffaf4;
}

@media (max-width: 1100px) {
    .plans__list.tarifs__slider,
    .tarifs__small {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    html:has(header.header) {
        padding-top: 56px !important;
    }

    .tarifs__lead,
    .tarifs__small,
    .tarifs__title--desktop {
        display: none !important;
    }

    .paper-home__hero,
    .paper-home .search-form__row--main,
    .howwedo__slider,
    .memory-card--created {
        grid-template-columns: 1fr;
    }

    .paper-home .search-form,
    .paper-home .banner__info__buttons,
    .paper-home__facts {
        flex-direction: column;
        align-items: stretch;
    }

    .paper-home .banner__info__title {
        font-size: 28px !important;
    }

    .paper-home .search-form__row--center .btn,
    .paper-home .banner__info__buttons .btn-red,
    .paper-home .banner__info__buttons .btn-quiet {
        width: 100%;
    }

    .product-page .product_card__image {
        width: 100% !important;
        height: 320px !important;
        background-position: center top !important;
    }

    .product-page .product_card__name {
        font-size: 26px !important;
    }

    .edit-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        top: 56px;
    }

    .edit-nav a {
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    .plans__list.tarifs__slider,
    .tarifs__small,
    .createMemoryPageModal-steps .plans__list.tarifs__slider {
        grid-template-columns: 1fr;
    }
}

.paper-home .memorypage-card {
    width: 100%;
    max-width: none;
}

.paper-home .memorypage-card__header {
    flex-wrap: nowrap;
    align-items: center;
}

.paper-home .memorypage-card__header__refresh,
.paper-home .memorypage-card__header__refresh:hover {
    color: #9a4f34 !important;
    padding: 0;
}

.paper-home .refresh-button__icon {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0;
    background: none;
    color: #9a4f34;
}

.plans__list.tarifs__slider .plan,
.tarifs__small .plan {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.tarifs__small .plan__price,
.plan__price {
    margin-top: 8px !important;
}

.plan__button {
    margin-top: auto !important;
}

.footer__columns__item__title,
.footer__columns__item menu > li > a,
.footer__columns__item__smalltext,
.footer__columns__item__calllink,
.footer__columns__item__address {
    color: #3a2a22 !important;
}

h1.contacts__title,
.tarifs__title {
    padding-top: 28px;
}

.tarifs__table {
    background: #fffaf4 !important;
    box-shadow: none !important;
    margin-bottom: 28px !important;
    color: #3a2a22 !important;
}

.tarifs__table thead {
    background: #fffaf4 !important;
    color: #3a2a22 !important;
}

.tarifs__table th,
.tarifs__table td {
    padding: 8px 10px !important;
    border-bottom-color: #e7d7c4 !important;
}

.tarifs__table td:first-child {
    background: transparent !important;
    min-width: 0;
    color: #3a2a22 !important;
}

.tarifs__table tbody tr:hover {
    background: transparent !important;
}

.tarifs__table svg {
    color: #9a4f34 !important;
}

.material__slider--mainpage {
    counter-reset: step;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.material__slider--mainpage .material__slider__img {
    display: none !important;
}

.material__slider--mainpage .material__slider__item {
    counter-increment: step;
    display: block !important;
    margin: 0 !important;
    background: #fffaf4 !important;
    border: 1px solid #e7d7c4;
    border-radius: 14px;
    padding: 14px !important;
    box-shadow: none !important;
}

.material__slider--mainpage .material__slider__item:before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #9a4f34;
    color: #f7f4ee;
    font-weight: 700;
}

.services-card .material__slider__img {
    filter: grayscale(1) contrast(1.05);
    background: #f3ebe1;
}

.contacts .product-page.container {
    background: #fffaf4 !important;
    border: 1px solid #e7d7c4;
    box-shadow: none;
}

.contacts .contacts__subtitle,
.contacts .product-page a {
    color: #3a2a22 !important;
}

.contacts .form-control {
    border: 1px solid #e7d7c4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #3a2a22 !important;
    box-shadow: none !important;
}

.memory-qr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.memory-qr-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 10px 4px 14px;
    border: 1px solid #9a4f34;
    border-radius: 10px;
    color: #3a2a22;
    font-size: 14px;
    line-height: 1;
    cursor: default;
}

.memory-qr-share .ya-share2,
.memory-qr-share .ya-share2__container,
.memory-qr-share .ya-share2__list {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.memory-qr-share .ya-share2__item {
    margin: 0 2px !important;
}

.memory-qr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #9a4f34;
    border-radius: 10px;
    background: transparent;
    color: #3a2a22;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.memory-qr-btn:hover {
    background: #f3ebe1;
    color: #3a2a22;
}

.card-body .btn {
    margin: 0 6px 8px 0;
}

@media (max-width: 800px) {
    .material__slider--mainpage {
        grid-template-columns: 1fr;
    }
}


/* pet-theme */
:root {
  --pet-accent: #9a4f34;
}
.btn.btn-red,
.plan__button.btn-red,
.plan__button {
  background: #9a4f34 !important;
  border-color: #9a4f34 !important;
}
.plan__badge {
  background: #9a4f34 !important;
}
.paper-home__lead a {
  color: #9a4f34;
}

.header {
    border-top: 4px solid #9a4f34;
}
.header__top__left__logo img {
    max-height: 42px;
}
.pet-hero-photos {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    min-height: 340px;
}
.pet-hero-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #e7d7c4;
}
.pet-hero-photos img:first-child {
    grid-row: 1 / span 2;
}

.pet-kinds {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0 0 10px;
}
.pet-kind { margin: 0; cursor: pointer; }
.pet-kind input { position: absolute; opacity: 0; pointer-events: none; }
.pet-kind__face {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 78px;
    padding: 8px 4px;
    background: #fffaf4;
    border: 1px solid #e7d7c4;
    border-radius: 12px;
    color: #3a2a22;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}
.pet-kind__face svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pet-kind__face svg circle { fill: currentColor; stroke: none; }
.pet-kind input:checked + .pet-kind__face,
.pet-kind input:focus-visible + .pet-kind__face {
    border-color: #9a4f34;
    background: #f6ebe3;
    color: #9a4f34;
}
.pet-kind:hover .pet-kind__face { border-color: #c4a48f; }
.pet-kinds--create { margin: 0 0 8px; }
@media (max-width: 800px) {
    .pet-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.howwedo__slider__img {
    display: block !important;
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .pet-hero-photos { min-height: 220px; }
}
