@font-face {
    font-family: 'Jorik';
    src: url("../fonts/Jorick-Regular.ttf");
}
body{
    font-family: 'Jorik', sans-serif;
}
main{
    background: #efefef;
}
main > .container {
    padding: 40px 0 20px;
    min-height: 95vh;
}
.alert{
    position: absolute;
    top: 100px;
    left: 0;
    border: none;
    border-radius: 0;
}

.site-login{
    width: 100%;
    padding: 100px 400px 0 ;
}
.site-register{
    width: 100%;
    padding: 100px 400px 0 ;
}
.site-register form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-btn{
    width: 100%;
    background: #202020;
    color: white;
    border-radius: 10px;
    height: 40px;
font-size: 14pt !important;
    font-family: 'Jorik', sans-serif;
    align-self: center;
    line-height: 22pt;
}
.my-btn-rev{
    width: 100%;
    font-size: 14pt !important;
    background: white;
    color: #202020;
    border-radius: 10px;
    height: 40px;
    font-family: 'Jorik', sans-serif;
    align-self: center;
    line-height: 22pt;
    transition: .4s;
    border: 2px solid #ffffff;
}
.my-btn-rev:hover{
    transition: .4s;
    border: 2px solid #202020;
}
.navbar-brand h4{
    margin: 0;
    font-size: 18pt;
}

.my-nav{
    background: rgba(81, 81, 81, 0.66);
    height: 40px;
}
.my-nav .container{
    max-width: 100% !important;
}
.nav-link{
    font-size: 16pt;
}
.navbar-collapse{
    display: flex;
    justify-content: end;
}
footer{
    height: 40px;
    display: flex;
    align-items: center;
}
footer .container{
    display: flex;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    align-items: center;
}
footer .container p{
    margin: 0;
    height: min-content;
}
input{
    border-radius: 10px !important;
}
/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: #c27e5a;
    color: white;
    box-shadow: 0 4px 10px rgba(194, 126, 90, 0.2);
}

.btn-primary:hover {
    background: #a8643f;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #c27e5a;
    color: #c27e5a;
}

.btn-outline:hover {
    background: #c27e5a20;
}
.bl-1{
    width: 100%;
    display: flex;
    height: 95vh;
    justify-content: space-between;
}
.bl-2{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: fit-content;
    padding: 100px;
    justify-content: center;
}

.img-1{
    height: 100%;
    width: 400px;
    background: url("../media/bg.jpg") no-repeat;
    background-size: cover;
}

.bl-2 h2 {
    font-size: 32pt;
    font-weight: 600;
    color: #2c241f;
}
.bl-2 p{
    font-size: 14pt;
    max-width: 600px;
    font-family: "Century Gothic", sans-serif;
    text-align: right;
}

.slider-section {
    margin: 30px 0 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c27e5a;
    margin-top: 8px;
}

.swiper {
    width: 100%;
    height: auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
}
.swiper-slide {
    background: #fff3ed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    min-height: 280px;
}
.swiper-slide i {
    font-size: 3rem;
    color: #c27e5a;
    margin-bottom: 20px;
}
.swiper-slide h3 {
    font-size: 1.7rem;
    margin-bottom: 12px;
}
.swiper-slide p {
    font-size: 1rem;
    max-width: 80%;
    color: #5a4234;
}

.quick-links {
    background: white;
    padding: 40px 32px;
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    border: 1px solid #f3e7e0;
}
.links-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    width: 100%;
}
.link-card {
    background: #fef5f0;
    padding: 24px 28px;
    text-align: center;
    width: 100%;
    transition: 0.25s;
    cursor: pointer;
    border: 1px solid #ffe3d6;
}
.link-card:hover {
    transform: translateY(-6px);
    background: #fff;
    box-shadow: 0 15px 25px -10px rgba(0,0,0,0.1);
}
.link-card i {
    font-size: 2.2rem;
    color: #c27e5a;
    margin-bottom: 12px;
}
.link-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
}
.link-card p {
    font-size: 0.85rem;
    color: #8b6c58;
    margin-top: 8px;
}
.badge-stub {
    background: #ede0d8;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 12px;
    color: #9c6e55;
}

.info-mission {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 70px 0 50px;
}
.info-card {
    flex: 1;
    background: #ffffffcc;
    padding: 28px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.02);
    border: 1px solid #f3e2d8;
}
.info-card h3 {
    font-size: 1.7rem;
    margin-bottom: 16px;
    color: #2f241f;
}
.info-card p {
    line-height: 1.5;
    color: #4d3a2e;
    margin-bottom: 12px;
}

/* Team section (заглушка с функционалом: при клике алерт "скоро") */
.team-section {
    margin: 60px 0;
}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 32px;
}
.team-member {
    background: white;
    padding: 28px 20px 24px;
    text-align: center;
    width: 220px;
    transition: 0.2s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border: 1px solid #f2e2d8;
    cursor: pointer;
}
.team-member:hover {
    border-color: #c27e5a;
    transform: scale(1.02);
}
.avatar {
    width: 110px;
    height: 110px;
    background: #f3e1d6;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c27e5a;
}
.team-member h4 {
    font-size: 1.3rem;
    font-weight: 600;
}
.team-member .role {
    color: #c27e5a;
    font-weight: 500;
    margin: 6px 0 10px;
}
.team-stub-note {
    font-size: 0.7rem;
    background: #f9efea;
    display: inline-block;
    padding: 4px 10px;
    margin-top: 10px;
}

.contact-map {
    background: #fef3ed;
    padding: 48px 32px;
    margin: 50px 0;
}
.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.contact-details {
    flex: 1;
}
.contact-details h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.contact-item i {
    width: 32px;
    color: #c27e5a;
    font-size: 1.3rem;
}
.map-wrapper {
    flex: 1.2;
    min-height: 280px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}


@media (max-width: 760px) {
    .hero h2 {
        font-size: 2rem;
    }
    .links-grid {
        gap: 18px;
    }
    .contact-flex {
        flex-direction: column;
    }
    .map-wrapper {
        width: 100%;
    }
}



/* web/css/master.css - исправленные стили */

.avatar-upload {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.avatar-preview {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

/* Анимация только при загрузке */
.avatar-preview.uploading {
    animation: pulse 1s ease-in-out;
    animation-iteration-count: 1; /* Только один раз */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(0,0,0,0.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

#imagePreview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    transition: all 0.3s ease;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
}

.upload-overlay i {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-overlay span {
    font-size: 14px;
    font-weight: 500;
}

.avatar-preview:hover .upload-overlay {
    opacity: 1;
}

/* Индикатор загрузки */
.upload-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

/* Уведомления */
.upload-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.upload-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f44336;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* web/css/master.css */
.pagination-wrapper {
    margin-top: 20px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination .page-link {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    color: #007bff;
    cursor: pointer;
    background: #fff;
}

.pagination .active .page-link {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .page-link:hover {
    background: #e9ecef;
}

/* Анимация загрузки фото */
#profile-photo {
    transition: all 0.3s ease;
}

#profile-photo:hover {
    opacity: 0.8;
    cursor: pointer;
}

.site-service-i{
    margin-top: 40px;
    border-radius: 0;
    background: white;
    padding: 20px;
}