:root {
    --sf-ink: #171717;
    --sf-muted: #68635f;
    --sf-cream: #f7f3ed;
    --sf-paper: #fffdfa;
    --sf-berry: #b72552;
    --sf-berry-dark: #8f173d;
    --sf-line: rgba(23, 23, 23, .12);
    --sf-radius: 26px;
}

/* Branded authentication pages */
body#login {
    color: var(--sf-ink);
    background: var(--sf-cream);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body#login > .display-flex {
    background: var(--sf-cream);
}

body#login .background-cover {
    position: relative;
    width: 48%;
    max-width: 760px;
    background-image:
        linear-gradient(180deg, rgba(24, 16, 18, .06), rgba(24, 16, 18, .36)),
        url('/content/legacy/themes/Peafowl/theme-img/soberifoto/hero-collage.webp') !important;
    background-position: center;
    background-size: cover;
}

body#login .background-cover::after {
    position: absolute;
    right: 38px;
    bottom: 36px;
    left: 38px;
    color: #fff;
    content: "Фото остаются с вами";
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.02;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .24);
}

body#login .flex-center {
    position: relative;
    width: 52%;
    min-width: 510px;
    padding: 118px 48px 60px;
    background: radial-gradient(circle at 90% 4%, rgba(183, 37, 82, .09), transparent 28%), var(--sf-cream);
}

body#login .flex-center::before {
    position: absolute;
    top: 42px;
    left: 50%;
    width: 210px;
    height: 48px;
    background: url('/content/images/system/default/soberifoto-logo.svg') center / contain no-repeat;
    content: "";
    transform: translateX(-50%);
}

body#login .content-box.card-box {
    width: min(460px, 100%);
    max-width: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body#login .fancy-box {
    padding: 36px;
    background: rgba(255, 253, 250, .94);
    border: 1px solid var(--sf-line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(42, 34, 30, .12);
    backdrop-filter: blur(14px);
}

body#login .fancy-box-heading {
    margin: 0 0 12px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
}

body#login .fancy-box-heading .fas,
body#login .fancy-box-heading .far {
    color: var(--sf-berry);
    font-family: "Font Awesome 6 Free";
    font-size: 22px;
}

body#login .content-section {
    color: var(--sf-muted);
    line-height: 1.5;
}

body#login .sf-auth-note {
    margin: 22px 0 0;
    color: #8b8580;
    font-size: 12px;
    line-height: 1.55;
}

body#login a {
    color: var(--sf-berry);
    font-weight: 700;
}

body#login .fancy-fieldset {
    overflow: hidden;
    border: 1px solid rgba(23, 23, 23, .14);
    border-radius: 14px;
}

body#login .fancy-fieldset .input {
    min-height: 50px;
    color: var(--sf-ink);
    background: #fff;
    font-size: 15px;
}

body#login .fancy-fieldset .input:focus {
    background: #fff;
    box-shadow: inset 3px 0 0 var(--sf-berry);
}

body#login .btn.btn-input.accent,
body#login .icon--input-submit {
    color: #fff;
    background: var(--sf-berry);
}

body#login .btn.btn-input.accent {
    min-height: 48px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(183, 37, 82, .2);
    font-weight: 800;
}

body#login .btn.btn-input.accent:hover,
body#login .icon--input-submit:hover {
    background: var(--sf-berry-dark);
}

body#login #top-left {
    top: 18px;
    left: 18px;
}

body#login .sf-auth-home a {
    display: inline-flex;
    height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    background: rgba(18, 18, 18, .48);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

body#login .footer {
    display: none;
}

@media (max-width: 860px) {
    body#login .background-cover { display: none; }
    body#login .flex-center {
        width: 100%;
        min-width: 0;
        padding: 105px 20px 36px;
    }
    body#login .sf-auth-home a {
        color: var(--sf-ink);
        background: rgba(255, 255, 255, .76);
        border-color: var(--sf-line);
    }
}

@media (max-width: 520px) {
    body#login .flex-center { box-sizing: border-box; align-items: flex-start; padding-right: 14px; padding-left: 14px; }
    body#login .flex-center::before { top: 32px; width: 176px; height: 38px; }
    body#login .content-box.card-box { box-sizing: border-box; width: 100%; margin: 0; }
    body#login .fancy-box { box-sizing: border-box; width: 100%; margin: 0; padding: 26px 20px; border-radius: 20px; }
    body#login .fancy-box-heading { font-size: 26px; }
    body#login .sf-auth-home a { width: 40px; padding: 0; justify-content: center; }
    body#login .sf-auth-home span { display: none; }
}

body#index.landing {
    background: var(--sf-paper);
    color: var(--sf-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-top: 72px;
}

body#index.landing #top-bar {
    height: 72px;
    background: rgba(255, 253, 250, .93);
    border-bottom: 1px solid var(--sf-line);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

body#index.landing #top-bar .content-width {
    width: min(1180px, calc(100% - 40px));
    height: 72px;
}

body#index.landing .top-bar-logo,
body#index.landing .top-bar-logo a,
body#index.landing .top-bar-logo img {
    height: 38px;
}

body#index.landing .top-bar-left,
body#index.landing .top-bar-right {
    height: 72px;
}

body#index.landing .top-bar-left > li,
body#index.landing .top-bar-right > li {
    height: 72px;
    line-height: 72px;
}

body#index.landing .top-bar-left > li > a,
body#index.landing .top-bar-right > li > a,
body#index.landing .top-bar-right > li > .top-btn-text {
    color: var(--sf-ink);
}

body#index.landing .sf-home-nav {
    margin-left: 38px;
}

body#index.landing .sf-home-nav li {
    display: inline-flex;
    align-items: center;
}

body#index.landing .sf-home-nav a {
    padding: 0 13px;
    color: #4f4b48;
    font-size: 14px;
    font-weight: 600;
}

body#index.landing .sf-home-nav a:hover {
    color: var(--sf-berry);
}

body#index.landing #top-bar-signin a {
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    height: 42px;
    line-height: 42px;
    margin-top: 15px;
    padding: 0 16px;
}

body#index.landing [data-nav="upload"] a {
    color: #fff !important;
    background: var(--sf-ink);
    border-radius: 12px;
    height: 42px;
    line-height: 42px;
    margin-top: 15px;
    padding: 0 18px;
}

body#index.landing .footer {
    display: none;
}

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

.sf-landing {
    overflow: hidden;
}

.sf-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.sf-hero {
    position: relative;
    padding: 68px 0 76px;
    background: radial-gradient(circle at 11% 4%, rgba(183, 37, 82, .10), transparent 29%), linear-gradient(180deg, #fffdfa 0%, #f7f3ed 100%);
}

.sf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(520px, 1.07fr);
    gap: 58px;
    align-items: center;
}

.sf-eyebrow,
.sf-kicker {
    color: var(--sf-berry);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    background: rgba(183, 37, 82, .08);
    border-radius: 999px;
}

.sf-eyebrow span {
    width: 7px;
    height: 7px;
    background: var(--sf-berry);
    border-radius: 50%;
}

.sf-hero h1 {
    max-width: 690px;
    margin: 24px 0 22px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5.25vw, 76px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .99;
}

.sf-hero h1 em {
    color: var(--sf-berry);
    font-weight: 400;
}

.sf-lead {
    max-width: 610px;
    margin: 0;
    color: #57524f;
    font-size: 18px;
    line-height: 1.65;
}

.sf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.sf-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sf-btn:hover { transform: translateY(-2px); }

.sf-btn-primary {
    color: #fff !important;
    background: var(--sf-berry);
    box-shadow: 0 12px 30px rgba(143, 23, 61, .22);
}

.sf-btn-primary:hover { background: var(--sf-berry-dark); }

.sf-btn-secondary {
    color: var(--sf-ink) !important;
    background: rgba(255, 255, 255, .7);
    border-color: var(--sf-line);
}

.sf-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    margin: 26px 0 0;
    padding: 0;
    color: #625d59;
    font-size: 13px;
    list-style: none;
}

.sf-trust-list i { margin-right: 6px; color: var(--sf-berry); }

.sf-hero-visual { position: relative; min-width: 0; }

.sf-hero-visual::before {
    position: absolute;
    z-index: 0;
    top: -30px;
    right: -35px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(183, 37, 82, .16);
    border-radius: 50%;
    content: "";
}

.sf-hero-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 590px;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(50, 38, 31, .18);
}

.sf-float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(23, 23, 23, .08);
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(36, 26, 22, .18);
    backdrop-filter: blur(12px);
}

.sf-float-card i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--sf-berry);
    border-radius: 11px;
    font-size: 18px;
}

.sf-float-card span { display: grid; gap: 2px; }
.sf-float-card strong { font-size: 13px; }
.sf-float-card small { color: var(--sf-muted); font-size: 11px; }
.sf-float-card-qr { bottom: 34px; left: -34px; }
.sf-float-card-download { top: 34px; right: -24px; }

.sf-section { padding: 96px 0; }
.sf-section-heading { max-width: 720px; margin-bottom: 42px; }

.sf-section-heading h2,
.sf-values h2,
.sf-final-cta h2 {
    margin: 11px 0 13px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.sf-section-heading p,
.sf-values-grid > div > p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 17px;
    line-height: 1.65;
}

.sf-use-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.sf-use-card {
    position: relative;
    display: flex;
    min-height: 535px;
    flex-direction: column;
    padding: 38px;
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
}

.sf-use-card::after {
    position: absolute;
    right: -80px;
    bottom: -105px;
    width: 260px;
    height: 260px;
    border: 45px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    content: "";
}

.sf-use-card-event { background: #f4e8eb; }
.sf-use-card-pro { background: #e9eee8; }

.sf-use-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    place-items: center;
    color: #fff;
    background: var(--sf-ink);
    border-radius: 16px;
    font-size: 22px;
}

.sf-card-label {
    color: var(--sf-berry);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sf-use-card h3 {
    max-width: 510px;
    margin: 12px 0 16px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.13;
}

.sf-use-card p { color: #5c5753; font-size: 15px; line-height: 1.65; }

.sf-use-card ul {
    display: grid;
    gap: 10px;
    margin: 21px 0 28px;
    padding: 0;
    color: #373330;
    font-size: 14px;
    line-height: 1.45;
    list-style: none;
}

.sf-use-card li::before { margin-right: 9px; color: var(--sf-berry); content: "✓"; font-weight: 800; }

.sf-use-card > a {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--sf-ink);
    font-size: 14px;
    font-weight: 800;
}

.sf-use-card > a:hover { color: var(--sf-berry); }

.sf-how { color: #fff; background: var(--sf-ink); }
.sf-section-heading-light h2, .sf-how .sf-kicker { color: #fff; }
.sf-how .sf-kicker { opacity: .62; }

.sf-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 28px 32px;
    border-top: 1px solid rgba(255, 255, 255, .17);
}

.sf-steps li + li { border-left: 1px solid rgba(255, 255, 255, .17); }
.sf-steps > li > span { color: #dd95aa; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.sf-steps h3 { margin: 0 0 8px; color: #fff; font-size: 18px; }
.sf-steps p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.6; }

.sf-values { background: var(--sf-cream); }
.sf-values-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 90px; align-items: center; }
.sf-text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--sf-berry); font-weight: 800; }
.sf-value-list { display: grid; gap: 14px; }

.sf-value-list article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(23, 23, 23, .08);
    border-radius: 18px;
}

.sf-value-list i {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 14px;
    font-size: 19px;
}

.sf-value-list h3 { margin: 2px 0 5px; font-size: 16px; }
.sf-value-list p { margin: 0; color: var(--sf-muted); font-size: 14px; line-height: 1.5; }
.sf-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 92px; }
.sf-faq-list details { border-top: 1px solid var(--sf-line); }
.sf-faq-list details:last-child { border-bottom: 1px solid var(--sf-line); }

.sf-faq-list summary {
    position: relative;
    padding: 21px 42px 21px 0;
    cursor: pointer;
    color: var(--sf-ink);
    font-size: 16px;
    font-weight: 750;
    list-style: none;
}

.sf-faq-list summary::-webkit-details-marker { display: none; }
.sf-faq-list summary::after { position: absolute; top: 20px; right: 6px; color: var(--sf-berry); content: "+"; font-size: 22px; font-weight: 400; }
.sf-faq-list details[open] summary::after { content: "−"; }
.sf-faq-list details p { margin: -4px 46px 23px 0; color: var(--sf-muted); font-size: 14px; line-height: 1.65; }

.sf-final-cta { padding: 72px 0; color: #fff; background: var(--sf-berry); }
.sf-final-cta .sf-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 64px; align-items: center; }
.sf-final-cta .sf-kicker, .sf-final-cta h2 { color: #fff; }
.sf-final-cta h2 { max-width: 810px; margin-bottom: 0; }
.sf-final-actions { display: grid; justify-items: start; gap: 16px; }
.sf-btn-light { color: var(--sf-ink) !important; background: #fff; }
.sf-final-actions > a:not(.sf-btn) { color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 700; }

@media (max-width: 980px) {
    .sf-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .sf-hero-copy { max-width: 760px; }
    .sf-hero-visual { width: min(760px, 100%); margin: 0 auto; }
    .sf-use-card { padding: 30px; }
    .sf-steps, .sf-values-grid, .sf-faq-grid { grid-template-columns: 1fr; }
    .sf-values-grid, .sf-faq-grid { gap: 42px; }
    .sf-steps li + li { border-left: 0; }
    body#index.landing .sf-home-nav { display: none; }
}

@media (max-width: 680px) {
    body#index.landing { padding-top: 62px; }
    body#index.landing #top-bar,
    body#index.landing #top-bar .content-width,
    body#index.landing .top-bar-left,
    body#index.landing .top-bar-right,
    body#index.landing .top-bar-left > li,
    body#index.landing .top-bar-right > li { height: 62px; }
    body#index.landing #top-bar .content-width, .sf-shell { width: min(100% - 28px, 1180px); }
    body#index.landing #top-bar-signin { display: none; }
    body#index.landing [data-nav="upload"] a { height: 38px; margin-top: 12px; padding: 0 13px; line-height: 38px; }
    body#index.landing [data-nav="upload"] .icon { display: none; }
    body#index.landing [data-nav="upload"] .btn-text { display: inline !important; font-size: 12px; }
    .sf-hero { padding: 48px 0 56px; }
    .sf-hero h1 { font-size: 43px; }
    .sf-lead { font-size: 16px; }
    .sf-btn { width: 100%; }
    .sf-trust-list { display: grid; gap: 10px; }
    .sf-hero-visual img { height: 430px; border-width: 5px; border-radius: 22px; }
    .sf-float-card-download { top: 18px; right: -5px; }
    .sf-float-card-qr { bottom: 18px; left: -4px; }
    .sf-section { padding: 68px 0; }
    .sf-section-heading h2, .sf-values h2, .sf-final-cta h2 { font-size: 37px; }
    .sf-use-grid { grid-template-columns: 1fr; }
    .sf-use-card { min-height: auto; padding: 26px; }
    .sf-use-card h3 { font-size: 27px; }
    .sf-steps li { padding: 24px 4px; }
    .sf-final-cta .sf-shell { grid-template-columns: 1fr; gap: 36px; }
}

/* SoberiFoto albums application */
body#events {
    background: #f7f4ef;
    color: var(--sf-ink);
}

body#events .top-bar-logo img {
    max-width: 142px;
}

.sf-app {
    min-height: calc(100vh - 50px);
    padding-bottom: 80px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sf-app-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.sf-dashboard,
.sf-create {
    padding-top: 58px;
}

.sf-app-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.sf-app-heading h1,
.sf-create-intro h1,
.sf-gate-card h1,
.sf-album-hero h1 {
    margin: 10px 0 8px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.sf-app-heading p,
.sf-create-intro > p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 16px;
}

.sf-panel {
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(42, 34, 30, .08);
}

.sf-app-empty {
    display: grid;
    min-height: 390px;
    place-items: center;
    align-content: center;
    padding: 46px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(23, 23, 23, .18);
    border-radius: 24px;
}

.sf-app-empty-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 19px;
    place-items: center;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 20px;
    font-size: 27px;
}

.sf-app-empty h2 {
    margin: 0 0 8px;
    color: var(--sf-ink);
    font-size: 22px;
}

.sf-app-empty p {
    max-width: 460px;
    margin: 0 0 24px;
    color: var(--sf-muted);
    font-size: 15px;
    line-height: 1.55;
}

.sf-album-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sf-album-card {
    overflow: hidden;
    color: var(--sf-ink) !important;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(42, 34, 30, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.sf-album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(42, 34, 30, .11);
}

.sf-album-card-cover {
    display: grid;
    min-height: 178px;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #fff;
}

.sf-album-card-cover.is-event { background: linear-gradient(135deg, #bd3c63, #77223d); }
.sf-album-card-cover.is-client { background: linear-gradient(135deg, #496053, #202b25); }
.sf-album-card-cover i { font-size: 30px; }
.sf-album-card-cover span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sf-album-card-body { padding: 20px; }
.sf-album-card-body h2 { margin: 0 0 7px; color: var(--sf-ink); font-size: 18px; }
.sf-album-card-body p { margin: 0; color: var(--sf-muted); font-size: 13px; }

.sf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--sf-muted);
    font-size: 13px;
    font-weight: 700;
}

.sf-create-grid {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(520px, 1.25fr);
    gap: 72px;
    align-items: start;
}

.sf-create-intro {
    position: sticky;
    top: 100px;
}

.sf-create-note {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    margin-top: 30px;
    padding: 18px;
    background: #f1e6e9;
    border-radius: 16px;
}

.sf-create-note > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--sf-berry);
    border-radius: 12px;
}

.sf-create-note div { display: grid; gap: 3px; }
.sf-create-note strong { font-size: 14px; }
.sf-create-note span { color: var(--sf-muted); font-size: 12px; line-height: 1.45; }
.sf-create-form { display: grid; gap: 22px; padding: 34px; }
.sf-type-picker { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.sf-type-picker legend, .sf-field > span { margin-bottom: 9px; color: var(--sf-ink); font-size: 13px; font-weight: 800; }
.sf-type-option { position: relative; cursor: pointer; }
.sf-type-option input { position: absolute; opacity: 0; }

.sf-type-content {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--sf-line);
    border-radius: 16px;
    transition: border-color .15s ease, background .15s ease;
}

.sf-type-option input:checked + .sf-type-content {
    background: rgba(183, 37, 82, .055);
    border-color: var(--sf-berry);
    box-shadow: 0 0 0 2px rgba(183, 37, 82, .08);
}

.sf-type-content > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 13px;
    font-size: 19px;
}

.sf-type-content > span { display: grid; gap: 4px; }
.sf-type-content strong { font-size: 14px; }
.sf-type-content small { color: var(--sf-muted); font-size: 12px; line-height: 1.4; }
.sf-field { display: grid; }
.sf-field > span small { color: #98918c; font-weight: 500; }

.sf-field input,
.sf-field textarea,
.sf-copy-row input {
    width: 100%;
    padding: 13px 14px;
    color: var(--sf-ink);
    background: #fff;
    border: 1px solid rgba(23, 23, 23, .17);
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    outline: 0;
}

.sf-field input:focus,
.sf-field textarea:focus {
    border-color: var(--sf-berry);
    box-shadow: 0 0 0 3px rgba(183, 37, 82, .1);
}

.sf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sf-submit { width: 100%; border: 0; cursor: pointer; }

.sf-alert {
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 650;
}

.sf-alert-error { color: #8b1738; background: #fbe8ed; border: 1px solid #efc2cf; }
.sf-alert-success { color: #285b3d; background: #e7f4ec; border: 1px solid #bdddc9; }

.sf-gate {
    display: grid;
    min-height: calc(100vh - 130px);
    place-items: center;
    padding: 48px 20px;
}

.sf-gate-card {
    width: min(460px, 100%);
    padding: 40px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 26px;
    box-shadow: 0 20px 65px rgba(42, 34, 30, .12);
}

.sf-gate-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    place-items: center;
    color: #fff;
    background: var(--sf-berry);
    border-radius: 18px;
    font-size: 23px;
}

.sf-gate-card h1 { font-size: 38px; }
.sf-gate-card > p { margin: 0 0 24px; color: var(--sf-muted); line-height: 1.55; }
.sf-gate-card form { display: grid; gap: 14px; text-align: left; }
.sf-gate-card button { width: 100%; border: 0; cursor: pointer; }

.sf-album-hero {
    padding: 64px 0;
    color: #fff;
}

.sf-album-hero.is-event { background: radial-gradient(circle at 82% 0%, rgba(255,255,255,.12), transparent 32%), linear-gradient(135deg, #b72552, #6f1935); }
.sf-album-hero.is-client { background: radial-gradient(circle at 82% 0%, rgba(255,255,255,.10), transparent 32%), linear-gradient(135deg, #43594d, #18211c); }
.sf-album-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sf-album-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sf-album-hero h1 { max-width: 780px; margin-top: 14px; color: #fff; }
.sf-album-hero p { max-width: 680px; margin: 13px 0 0; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.6; }
.sf-album-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: rgba(255,255,255,.78); font-size: 13px; }
.sf-album-meta span { display: inline-flex; align-items: center; gap: 7px; }
.sf-album-content { display: grid; gap: 24px; padding-top: 34px; }

.sf-owner-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
}

.sf-share-box,
.sf-qr-box {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 18px;
}

.sf-share-box > div:first-child { display: grid; gap: 5px; }
.sf-share-box strong { font-size: 16px; }
.sf-copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sf-copy-row input { background: #f7f4ef; font-size: 13px; }
.sf-copy-row button { padding: 0 16px; cursor: pointer; color: #fff; background: var(--sf-ink); border: 0; border-radius: 11px; font-size: 12px; font-weight: 800; }
.sf-qr-box { grid-template-columns: 112px 180px; align-items: center; }
.sf-qr-box img { display: block; width: 112px; height: 112px; padding: 7px; background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; }
.sf-qr-box div { display: grid; gap: 5px; }
.sf-qr-box strong { font-size: 14px; }
.sf-qr-box span { color: var(--sf-muted); font-size: 12px; line-height: 1.4; }
.sf-qr-box a { color: var(--sf-berry); font-size: 12px; font-weight: 800; }

.sf-upload-panel {
    display: grid;
    grid-template-columns: 58px minmax(260px, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 20px;
}

.sf-upload-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 16px;
    font-size: 22px;
}

.sf-upload-copy h2 { margin: 0 0 5px; color: var(--sf-ink); font-size: 18px; }
.sf-upload-copy > p { margin: 0; color: var(--sf-muted); font-size: 12px; line-height: 1.5; }
.sf-name-field { max-width: 390px; margin-top: 15px; }
.sf-name-field input { padding: 10px 12px; font-size: 13px; }
.sf-file-button { cursor: pointer; }
.sf-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-file-button span { display: inline-flex; height: 46px; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--sf-line); border-radius: 12px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.sf-file-button:hover span { border-color: var(--sf-berry); color: var(--sf-berry); }
.sf-upload-submit { display: none; border: 0; cursor: pointer; white-space: nowrap; }
.sf-file-button:has(input:valid) + .sf-upload-submit { display: inline-flex; }
.sf-gallery-empty { min-height: 310px; }
.sf-gallery-heading { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.sf-gallery-heading h2 { margin: 0; color: var(--sf-ink); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.sf-gallery-heading span { display: grid; min-width: 28px; height: 28px; place-items: center; color: var(--sf-berry); background: rgba(183,37,82,.09); border-radius: 999px; font-size: 12px; font-weight: 800; }

.sf-photo-grid {
    columns: 4 240px;
    column-gap: 12px;
}

.sf-photo-card {
    position: relative;
    margin: 0 0 12px;
    overflow: hidden;
    break-inside: avoid;
    background: #ece8e2;
    border-radius: 12px;
}

.sf-photo-card > .sf-photo-open { display: block; position: relative; }
.sf-photo-card img { display: block; width: 100%; height: auto; transition: transform .24s ease; }
.sf-photo-card:hover img { transform: scale(1.018); }
.sf-photo-download { position: absolute; right: 10px; bottom: 10px; display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: rgba(18,18,18,.76); border-radius: 10px; opacity: 0; transition: opacity .18s ease; }
.sf-photo-card:hover .sf-photo-download { opacity: 1; }
.sf-photo-card figcaption { position: absolute; bottom: 10px; left: 10px; max-width: calc(100% - 64px); padding: 7px 9px; overflow: hidden; color: #fff; background: rgba(18,18,18,.72); border-radius: 8px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
    .sf-album-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-create-grid { grid-template-columns: 1fr; gap: 34px; }
    .sf-create-intro { position: static; }
    .sf-owner-tools { grid-template-columns: 1fr; }
    .sf-qr-box { grid-template-columns: 112px 1fr; }
    .sf-upload-panel { grid-template-columns: 58px 1fr auto; }
    .sf-upload-submit { grid-column: 2 / -1; width: 100%; }
}

@media (max-width: 620px) {
    .sf-app-shell { width: min(100% - 28px, 1120px); }
    .sf-dashboard, .sf-create { padding-top: 34px; }
    .sf-app-heading { align-items: flex-start; flex-direction: column; }
    .sf-app-heading .sf-btn { width: 100%; }
    .sf-album-cards { grid-template-columns: 1fr; }
    .sf-create-form { padding: 22px; }
    .sf-form-row { grid-template-columns: 1fr; }
    .sf-gate-card { padding: 28px 22px; }
    .sf-album-hero { padding: 44px 0; }
    .sf-album-hero-inner { align-items: flex-start; flex-direction: column; }
    .sf-album-hero .sf-btn { width: 100%; }
    .sf-owner-tools { margin-top: -4px; }
    .sf-copy-row { grid-template-columns: 1fr; }
    .sf-copy-row button { height: 42px; }
    .sf-qr-box { grid-template-columns: 88px 1fr; }
    .sf-qr-box img { width: 88px; height: 88px; }
    .sf-upload-panel { grid-template-columns: 46px 1fr; align-items: start; padding: 18px; }
    .sf-upload-icon { width: 46px; height: 46px; border-radius: 13px; }
    .sf-file-button, .sf-upload-submit { grid-column: 1 / -1; width: 100%; }
    .sf-file-button span { width: 100%; justify-content: center; }
    .sf-photo-grid { columns: 2 145px; gap: 8px; }
    .sf-photo-card { margin-bottom: 8px; border-radius: 9px; }
    .sf-photo-download { opacity: 1; }
}

/* Product shell: replaces the public Chevereto navigation and footer */
body.sf-site-page {
    color: var(--sf-ink);
    background: var(--sf-paper);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.sf-site-page:not(#index) {
    padding-top: 68px;
}

.sf-top-bar#top-bar {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: 68px;
    color: var(--sf-ink);
    background: rgba(255, 253, 250, .94);
    border-bottom: 1px solid var(--sf-line);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.sf-top-bar#top-bar::before { display: none; }

.sf-top-bar .sf-top-bar-inner {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    height: 68px;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}

.sf-top-bar#top-bar #logo {
    display: block;
    position: static;
    flex: 0 0 auto;
    width: auto;
    height: 38px;
    text-align: left;
    inset: auto;
}

.sf-top-bar#top-bar #logo a,
.sf-top-bar#top-bar #logo img {
    display: block;
    position: static;
    width: auto;
    height: 38px;
    margin: 0;
    transform: none;
}

.sf-primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 36px;
    min-width: 0;
}

.sf-primary-nav a {
    padding: 9px 12px;
    color: #4f4b48;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.sf-primary-nav a:hover,
.sf-primary-nav a.is-current {
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .07);
}

.sf-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 0 auto;
}

.sf-top-actions > a,
.sf-user-menu > .top-btn-text {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 42px;
}

.sf-top-create {
    color: #fff !important;
    background: var(--sf-ink);
}

.sf-top-create:hover { background: #34312f; }

.sf-top-login {
    color: var(--sf-ink) !important;
    background: transparent;
    border: 1px solid var(--sf-line);
}

.sf-top-login:hover { color: var(--sf-berry) !important; border-color: rgba(183, 37, 82, .35); }

.sf-user-menu {
    position: relative;
    height: 42px;
    cursor: pointer;
}

.sf-user-menu > .top-btn-text {
    color: var(--sf-ink);
    background: #fff;
    border: 1px solid var(--sf-line);
}

.sf-user-menu .default-user-image {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    margin: 0;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
}

.sf-user-menu .sf-user-chevron { color: #958d87; font-size: 9px; }
.sf-user-menu .pop-box { top: 52px; min-width: 220px; }
.sf-user-menu .pop-box-inner { border-radius: 14px; box-shadow: 0 18px 45px rgba(32, 27, 25, .14); }

.sf-site-footer {
    margin-top: 72px;
    color: #eee8e2;
    background: #1e1c1b;
}

.sf-site-footer-inner {
    display: flex;
    width: min(1120px, calc(100% - 40px));
    min-height: 108px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto;
}

.sf-site-footer-inner > div { display: flex; align-items: center; gap: 14px; }
.sf-site-footer strong { color: #fff; font-size: 17px; }
.sf-site-footer span { color: #aaa29c; font-size: 12px; }
.sf-site-footer a { color: #fff; font-size: 12px; font-weight: 800; }
body#login .sf-site-footer { display: none; }
body#index .sf-site-footer { margin-top: 0; }

/* Album cards with real covers */
.sf-album-card-cover { position: relative; overflow: hidden; }
.sf-album-card-cover { height: 190px; min-height: 0; }
.sf-album-card-cover > img { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sf-album-card:hover .sf-album-card-cover > img { transform: scale(1.025); }
.sf-album-card-cover > span {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(22, 20, 19, .68);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}
.sf-album-card-cover > i { position: relative; z-index: 1; }

/* Premium album presentation */
.sf-album-hero { position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; }
.sf-album-hero.has-cover { min-height: clamp(360px, 52vw, 600px); background-image: linear-gradient(180deg, rgba(12, 10, 10, .10) 22%, rgba(12, 10, 10, .78) 100%), var(--sf-album-cover); background-position: center 38%; background-size: cover; }
.sf-album-hero.has-cover::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 55%); content: ""; pointer-events: none; }
.sf-album-hero-inner { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-top: 64px; padding-bottom: 58px; }
.sf-album-hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: .98; text-shadow: 0 4px 32px rgba(0, 0, 0, .24); }
.sf-album-hero .sf-btn-light { flex: 0 0 auto; }
.sf-album-content { padding-bottom: 18px; }

.sf-photo-card { background: #e7e2dc; }
.sf-photo-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}
.sf-photo-open img { display: block; width: 100%; height: auto; transition: transform .28s ease, filter .28s ease; }
.sf-photo-card:hover .sf-photo-open img { transform: scale(1.018); filter: brightness(.93); }
.sf-photo-download { z-index: 2; }

html.sf-lightbox-open { overflow: hidden; }
.sf-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #111;
    border: 0;
}
.sf-lightbox::backdrop { background: rgba(0, 0, 0, .94); }
.sf-lightbox-bar {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: linear-gradient(180deg, rgba(0,0,0,.72), transparent);
    font-size: 12px;
    font-weight: 800;
}
.sf-lightbox-bar > div { display: flex; align-items: center; gap: 10px; }
.sf-lightbox-bar button,
.sf-lightbox-download {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 11px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}
.sf-lightbox-bar button { width: 42px; padding: 0; font-size: 18px; }
.sf-lightbox-stage { position: absolute; inset: 72px 82px 48px; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.sf-lightbox-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 16px 60px rgba(0,0,0,.24); }
.sf-lightbox-stage span { position: absolute; right: 24px; bottom: 18px; left: 24px; overflow: hidden; color: rgba(255,255,255,.62); font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.sf-lightbox-nav { position: absolute; z-index: 3; top: 50%; display: grid; width: 48px; height: 64px; place-items: center; color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 12px; cursor: pointer; font-size: 18px; transform: translateY(-50%); backdrop-filter: blur(8px); }
.sf-lightbox-prev { left: 18px; }
.sf-lightbox-next { right: 18px; }

/* Calm, product-specific treatment for the only legacy account page we expose */
body#settings .top-sub-bar { display: none; }
body#settings .top-sub-bar .content-width,
body#settings > .content-width { width: min(720px, calc(100% - 40px)); }
body#settings > .content-width { margin-top: 0; padding-top: 42px; }
body#settings .form-content { padding: 30px; background: #fff; border: 1px solid var(--sf-line); border-radius: 22px; box-shadow: 0 18px 50px rgba(42,34,30,.08); }
body#settings .form-content::before { display: block; margin: 0 0 26px; color: var(--sf-ink); content: "Сменить пароль"; font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.1; }
body#settings .form-content .c12 { float: none; width: 100%; }
body#settings .text-input { min-height: 48px; padding: 0 13px; border: 1px solid rgba(23,23,23,.15); border-radius: 11px; }
body#settings .btn-container--fixed { position: static; margin-top: 18px; background: transparent; box-shadow: none; }
body#settings .btn-input.accent { min-height: 46px; background: var(--sf-berry); border-radius: 11px; }

@media (max-width: 900px) {
    .sf-primary-nav { display: none; }
}

@media (max-width: 760px) {
    body.sf-site-page:not(#index) { padding-top: 60px; }
    .sf-top-bar#top-bar { height: 60px; }
    .sf-top-bar .sf-top-bar-inner { width: calc(100% - 28px); height: 60px; }
    .sf-top-bar#top-bar #logo, .sf-top-bar#top-bar #logo a, .sf-top-bar#top-bar #logo img { height: 32px; }
    .sf-top-actions { gap: 7px; }
    .sf-top-actions > a, .sf-user-menu > .top-btn-text { height: 38px; padding: 0 11px; line-height: 38px; }
    .sf-user-menu { height: 38px; }
    .sf-user-menu .sf-user-chevron { display: none; }
    .sf-top-bar-shared .sf-top-login span { display: none; }
    .sf-top-bar-shared .sf-top-login { width: 38px; padding: 0; }
    .sf-site-footer-inner { min-height: 130px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; }
    .sf-site-footer-inner > div { align-items: flex-start; flex-direction: column; gap: 5px; }
    .sf-album-hero.has-cover { min-height: 440px; }
    .sf-album-hero h1 { font-size: clamp(38px, 12vw, 58px); }
    .sf-album-hero-inner { padding-top: 46px; padding-bottom: 34px; }
    .sf-lightbox-stage { inset: 64px 10px 78px; }
    .sf-lightbox-nav { top: auto; bottom: 16px; width: 44px; height: 44px; }
    .sf-lightbox-prev { left: 18px; }
    .sf-lightbox-next { right: 18px; }
    .sf-lightbox-download span { display: none; }
    .sf-user-menu .btn-text { display: none !important; }
    body#settings .form-content { padding: 22px 18px; }
}

@media (max-width: 480px) {
    .sf-top-create span { display: none; }
    .sf-top-create { width: 38px; padding: 0 !important; }
    .sf-top-login span { display: none; }
    .sf-top-login { width: 38px; padding: 0 !important; }
    .sf-album-hero.has-cover { min-height: 390px; }
    .sf-owner-tools, .sf-upload-panel { gap: 12px; }
    .sf-lightbox-bar { padding: 0 12px; }
    .sf-lightbox-stage span { right: 70px; left: 70px; }
}
