@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #faf9f5;
    color: #263e34;
    font-family: "Manrope", Arial, sans-serif;
    /* font-size: 14px; */
    /* line-height: 1.7; */
}

.container{
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.header {
    background: #fffefa;
    border-bottom: 1px solid #e7e8df;
}

.header-inner{
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand{
    display: flex;
    align-items: center;
    color: #263e34;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.4px;
    text-decoration: none;
}

.brand-mark{
    display: grid;
    place-items: center;
    width: 38px;
    height: 40px;
    margin-right: 11px;
    border-radius: 12px;
    background: #215747;
    color: #f5eedc;
    font-family: Georgia, serif;
    font-size: 36px;
    font-style: italic;
}

.brand-dot{
    color: #d9ad57;
}

.navigation{
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-left: auto;
}

.navigation a{
    color: #6b756d;
    font-size: 13px;
    text-decoration: none;
}

.navigation a:hover{
    color: #215747;
}

.navigation .nav-active{
    color: #215747;
    font-weight: 800;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #d9ad57;
    outline-offset: 5px;
}

.hero{
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin: 32px 0 60px;
    padding: 48px;
    background: #eef1e6;
    border: 1px solid #e6eadb;
    border-radius: 8px;
}

.hero-copy{
    max-width: 570px;
}

.eyebrow{
    margin: 0;
    color: #58715b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 20px 0 18px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 46px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -1.2px;
}

.hero h1 em {
    color: #215747;
}

.hero-description{
    margin: 0 0 25px;
    color: #677365;
    font-size: 14px;
    line-height: 1.85;
}

.primary{
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 12px 19px;
    border-radius: 5px;
    background: #215747;
    color: #fff9e9;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.primary:hover{
    background: #163f33;
}

.primary span{
    font-size: 20px;
}

.hero-note{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    color: #7c8272;
    font-size: 10px;
}

.section-heading{
    margin-bottom: 24px;
}

.section-heading .eyebrow{
    color: #82907e;
    font-size: 9px;
}

.section-heading h2{
    margin: 5px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.4px;
}

.section-heading h2 span{
    margin-left: 12px;
    color: #c8a048;
    font-size: 22px;
}

.pinned{
    padding: 22px 25px;
    background: #fbf5e5;
    border: 1px solid #e8dfc5;
    border-left: 3px solid #d5b15f;
    border-radius: 6px;
    margin-bottom: 22px;
}

.pin-label{
    margin: 0 0 9px;
    color: #997c37;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.pinned h3{
    margin: 0 0 6px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.4;
}

.post-excerpt{
    margin: 0 0 14px;
    color: #7c786b;
    font-size: 12px;
    line-height: 1.8;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    padding: 0;
    border: none;
    background: transparent;
    color: #215747;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.text-button:hover {
    text-decoration: underline;
}

.text-button span {
    font-size: 17px;
}

.feed-controls{
    margin-bottom: 24px;
}

.filters{
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.filters button {
    padding: 7px 12px;
    border: 1px solid #e7e8df;
    border-radius: 5px;
    background: transparent;
    color: #263e34;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.7;
    cursor: pointer;
}

.filters button.selected{
    background: #215747;
    color: #ffffff;
    border-color: #215747;
}

.filters button:hover:not(.selected) {
    background: #ecf0e7;
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #e7e8df;
    border-radius: 5px;
    background: #fffefa;
    color: #8b9389;
}

.search svg{
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.search input{
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #263e34;
    font-family: inherit;
    font-size: 12px;
}

.search input::placeholder {
    color: #91968c;
}

.search:focus-within {
    border-color: #71927f;
    outline: 2px solid #71927f;
    outline-offset: 2px;
}

.post {
    margin-bottom: 20px;
    border: 1px solid #e7e8df;
    border-radius: 6px;
    background: #fffefa;
    overflow: hidden;
}

.post-body {
    padding: 23px 25px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #838b7f;
    font-size: 10px;
}

.badge {
    padding: 4px 7px;
    border-radius: 3px;
    font-size: 9px;
    line-height: 1.4;
}

.badge.education {
    background: #edf2e8;
    color: #547651;
}

.badge.events {
    background: #e8eef4;
    color: #526f8a;
}

.badge.announcement {
    background: #fbf0d8;
    color: #937231;
}

.badge.greeting {
    background: #f4e7ed;
    color: #956078;
}

.post h3 {
    margin: 0 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.35px;
}

.post .post-excerpt {
    margin-bottom: 17px;
    color: #788071;
    line-height: 1.85;
}

.post-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 14px;
    border-top: 1px solid #f0f0e9;
}

.byline {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8a9185;
    font-size: 10px;
}

.byline span {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #e8eee1;
    color: #57735c;
    font-family: Georgia, serif;
}

.content-layout{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 276px;
    align-items: start;
    gap: 43px;
    margin-bottom: 48px;
}

.feed {
    min-width: 0;
}

.welcome-card,
.note-card{
    padding: 24px;
    border-radius: 6px;
}

.welcome-card{
    background: #edf0e6;
    border: 1px solid #e4e8d9;
}

.mini-icon{
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #dde6d1;
    color: #4c714d;
    font-size: 29px;
}

.sidebar .eyebrow {
    font-size: 9px;
}

.welcome-card h2{
    margin: 11px 0 15px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.35;
}

.sidebar-description{
    margin: 0;
    color: #75816d;
    font-size: 12px;
    line-height: 1.9;
}

.teacher{
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid #dce3d1;
}

.avatar{
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #d2dfc6;
    color: #5a7853;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
}

.teacher-info strong,
.teacher-info span{
    display: block;
}

.teacher-info strong{
    font-size: 11px;
}

.teacher-info span{
    margin-top: 2px;
    color: #89927c;
    font-size: 9px;
}

.note-card {
    margin-top: 20px;
    background: #fbf3df;
    border: 1px solid #eee5cd;
}

.note-card .eyebrow {
    color: #ac9259;
}

.note-card h3 {
    margin: 10px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.4;
}

.note-card .sidebar-description {
    color: #8c8167;
}

.note-bottom {
    margin: 18px 0 0;
    color: #a49a80;
    font-size: 9px;
    line-height: 1.7;
}

.empty-state{
    padding: 36px 20px;
    margin-bottom: 20px;
    border: 1px dashed #e7e8df;
    border-radius: 6px;
    text-align: center;
}

.empty-state h3{
    font-family: "Playfair Display", Georgia, serif;
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 500;
}

.empty-state p{
    margin: 0;
    color: #788071;
    font-size: 12px;
    line-height: 1.8;
}

.empty-state .text-button{
    margin-top: 16px;
}

#post-dialog{
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(700px, calc(100% - 32px));
    max-height: 85vh;
    padding: 40px 28px;
    border: 1px solid #e7e8df;
    border-radius: 8px;
    background: #faf9f5;
    color: #263e34;
    overflow-y: auto;
}

#post-dialog::backdrop{
    background: rgb(23 45 36 / 65%);
}

.dialog-close{
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: #647762;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#dialog-title{
    margin: 0 0 20px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.35;
}

.dialog-content{
    font-size: 14px;
    line-height: 1.9;
    color: #667362;
}

.dialog-content p:last-child{
    margin-bottom: 0;
}

.dialog-content p {
    margin: 0 0 16px;
}

.footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 0;
    border-top: 1px solid #e7e8df;
}

.footer .brand{
    font-size: 22px;
}

.footer p{
    margin: 0;
    color: #788071;
    font-size: 11px;
}

.footer > span {
    color: #788071;
    font-size: 10px;
}

.hero-art{
    display: block;
    width: 100%;
    max-width: 460px;
    justify-self: end;
}

.post-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-image[hidden] {
    display: none;
}

.dialog-image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 6px;
}

.feed-status {
    margin: 20px 0;
    color: #677365;
    font-size: 14px;
    line-height: 1.7;
}

.admin-page{
    max-width: 760px;
    padding-top: 40px;
    padding-bottom: 48px;
}

.admin-page .section-heading{
    margin-top: 28px;
}

.admin-page h1{
    margin: 8px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
    font-weight: 500;
}

.admin-form{
    display: grid;
    gap: 20px;
    padding: 28px;
    border: 1px solig #e7e8df;
    border-radius: 8px;
    background: #fffefa;
}

.admin-field {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce3d5;
    border-radius: 5px;
    background: #faf9f5;
    color: #263e34;
    font: inherit;
}

.admin-field input:focus-visible,
.admin-field select:focus-visible,
.admin-field textarea:focus-visible {
    outline: 2px solid #71927f;
    outline-offset: 2px;
}

.admin-field textarea {
    resize: vertical;
    line-height: 1.7;
}

.admin-hint {
    color: #75816d;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}

.admin-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.admin-checkbox input {
    margin-top: 4px;
    accent-color: #215747;
}

.admin-form [hidden] {
    display: none;
}

.admin-image-preview {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: contain;
    padding: 12px;
    border: 1px solid #e7e8df;
    border-radius: 6px;
    background: #eef1e6;
}

.admin-submit {
    justify-self: start;
    border: none;
    cursor: pointer;
}
















/* АНІМАЦІЯ */
.toast {
    --toast-accent: #215747;

    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    width: min(410px, calc(100vw - 40px));
    padding: 20px;
    overflow: hidden;

    border: 1px solid #c8dfcc;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5fbf2, #e6f3e8);
    color: #263e34;

    box-shadow: 0 16px 48px #183c2526;

    opacity: 0;
    visibility: hidden;
    transform: translate(-24px, -12px) scale(0.97);

    transition:
        opacity 250ms ease,
        transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 250ms;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) scale(1);
}

.toast.is-error {
    --toast-accent: #a33b3b;

    border-color: #edcece;
    background: linear-gradient(135deg, #fff7f4, #f9e8e5);
    color: #633b35;
}

.toast-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;
    border-radius: 50%;

    background: var(--toast-accent);
    color: #ffffff;
}

.toast-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast-error-icon,
.toast.is-error .toast-success-icon {
    display: none;
}

.toast.is-error .toast-error-icon {
    display: block;
}

.toast.is-visible .toast-icon {
    animation: toast-pop 450ms ease both;
}

.toast.is-visible .toast-icon path {
    stroke-dasharray: 32;
    stroke-dashoffset: 32;
    animation: toast-draw 450ms 150ms ease forwards;
}

.toast-copy {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    overflow-wrap: anywhere;
}

.toast-copy strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

.toast-copy p {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.7;
}

.toast-close {
    padding: 0 3px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;

    background: var(--toast-accent);
    transform-origin: left;
}

.toast.is-visible .toast-progress {
    animation: toast-countdown 6s linear forwards;
}

.toast.is-error .toast-progress {
    display: none;
}

.admin-submit {
    min-height: 48px;
    gap: 10px;
    padding: 13px 22px;
    font-size: 14px;
    box-shadow: 0 6px 16px #21574720;

    transition:
        background 200ms,
        transform 200ms,
        box-shadow 200ms;
}

.admin-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px #21574730;
}

.admin-submit:disabled {
    cursor: wait;
    opacity: 0.8;
}

.admin-submit.is-loading::before {
    content: "";
    width: 15px;
    height: 15px;
    flex-shrink: 0;

    border: 2px solid #ffffff55;
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: publish-spin 700ms linear infinite;
}

@keyframes publish-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes toast-pop {
    0% {
        transform: scale(0.65);
    }
    65% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes toast-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes toast-countdown {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast,
    .admin-submit {
        transition: none;
    }

    .toast.is-visible .toast-icon,
    .toast.is-visible .toast-icon path,
    .toast.is-visible .toast-progress,
    .admin-submit.is-loading::before {
        animation: none;
    }

    .toast.is-visible .toast-icon path {
        stroke-dashoffset: 0;
    }
}

/* КІНЕЦЬ АНІМАЦІЇ */
































.manage-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 28px 0;
}

.manage-heading .section-heading {
    margin: 0;
}

.manage-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.manage-post {
    padding: 20px;
    border: 1px solid #e7e8df;
    border-radius: 10px;
    background: #fffefa;
    overflow-wrap: anywhere;
}

.manage-post.is-pinned {
    border-left: 3px solid #d5b15f;
    background: #fbf5e5;
}

.manage-post h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

.manage-post p {
    margin: 8px 0 0;
    color: #75816d;
    font-size: 12px;
    line-height: 1.7;
}

.manage-post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.manage-post-copy {
    flex: 1;
    min-width: 0;
}

.manage-edit {
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1px solid #dce3d5;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}

.manage-edit:hover {
    background: #edf2e8;
}

.manage-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.manage-delete {
    color: #a04436;
}

.manage-delete:hover {
    color: #7f3028;
}

.manage-delete:disabled {
    opacity: 0.6;
    cursor: wait;
}

#manage-status.is-error {
    color: #a04436;
}

.delete-dialog {
    width: min(440px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 28px;
    border: 1px solid #e4e8d9;
    border-radius: 14px;
    background: #fffefa;
    color: #263e34;
    box-shadow: 0 24px 70px #263e3433;
}

.delete-dialog::backdrop {
    background: #263e3466;
    backdrop-filter: blur(4px);
}

.delete-dialog h2 {
    margin: 12px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.delete-dialog-name {
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.delete-dialog-description {
    margin: 0;
    color: #6b756d;
    font-size: 14px;
    line-height: 1.7;
}

.delete-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.delete-dialog-actions button {
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.delete-dialog-cancel {
    background: #eef1e6;
    color: #215747;
}

.delete-dialog-cancel:hover {
    background: #e1e8d8;
}

.delete-dialog-confirm {
    background: #a04436;
    color: #fffefa;
}

.delete-dialog-confirm:hover {
    background: #7f3028;
}

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 40px 0;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 36px;
    border: 1px solid #e4e8d9;
    border-radius: 16px;
    background: #fffefa;
    box-shadow: 0 18px 60px #263e3410;
}

.login-card .brand {
    width: fit-content;
    margin-bottom: 36px;
}

.login-card h1 {
    margin: 12px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.25;
}

.login-description {
    margin: 0 0 28px;
    color: #6b756d;
    font-size: 14px;
    line-height: 1.8;
}

.login-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dce2d5;
    border-radius: 7px;
    background: #faf9f5;
    color: #263e34;
    font: inherit;
    font-weight: 400;
}

.login-field input:focus-visible {
    border-color: #215747;
    outline: 2px solid #71927f;
    outline-offset: 2px;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 7px;
    background: #215747;
    color: #fff9e9;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.login-button:hover {
    background: #163f33;
}

.login-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.login-status {
    margin: 14px 0 22px;
    color: #a04436;
    font-size: 13px;
    line-height: 1.6;
}

.admin-entry {
    display: inline-block;
    margin-left: 4px;
    padding: 8px;
    color: #82907e;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.admin-entry:hover {
    color: #215747;
}

.manage-heading-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.manage-logout-form {
    margin: 0;
}

.manage-logout {
    color: #6b756d;
}

.manage-logout:hover {
    color: #263e34;
}

.navigation .nav-about {
    padding: 0;
    border: none;
    background: transparent;
    color: #6b756d;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.navigation .nav-about:hover {
    color: #215747;
}

.about-dialog {
    position: relative;
    width: min(500px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 40px 32px 32px;
    border: 1px solid #e4e8d9;
    border-radius: 16px;
    background: #fffefa;
    color: #263e34;
    box-shadow: 0 24px 70px #263e3433;
}

.about-dialog::backdrop {
    background: #263e3466;
    backdrop-filter: blur(4px);
}

.about-dialog h2 {
    margin: 14px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
}

.about-description {
    margin: 0;
    color: #6b756d;
    font-size: 14px;
    line-height: 1.85;
}

.about-author {
    display: grid;
    gap: 6px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e7e8df;
}

.about-author span {
    color: #82907e;
    font-size: 11px;
}

.about-author strong {
    font-size: 14px;
    letter-spacing: 1.5px;
}

.about-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 26px;
}

.about-telegram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #215747;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.about-telegram:hover {
    text-decoration: underline;
}









body.dialog-open{
    overflow: hidden;
}

/* АДАПТАЦІЯ ДЛЯ МОБІЛОК */
@media (max-width: 1000px) {
    .content-layout {
        grid-template-columns: minmax(0, 1fr) 245px;
    gap: 25px;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 380px;
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
    }

    .note-card {
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .sidebar {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px 22px;
    }

    .login-card h1 {
        font-size: 30px;
    }

    .about-dialog {
        padding: 40px 24px 28px;
    }

    .about-dialog h2 {
        font-size: 28px;
    }
}

@media (max-width: 650px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 20px 0;
        gap: 18px;
    }

    .navigation {
        width: 100%;
        margin-left: 0;
        gap: 18px;
    }

    .hero {
        margin: 22px 0 35px;
        padding: 28px 24px;

    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -0.7px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}