@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


:root {
   --color-black: #1a1a1a;
   --color-white: #fff;
   --color-accent: rgb(204, 101, 52);


   --font-primary: 'Open Sans', sans-serif;
   --font-secondary: 'Manrope', sans-serif;


   --font-size-1: .95rem;
   --font-size-2: 1rem;
   --font-size-3: 1.1rem;
   --font-size-4: 1.15rem;
   --font-size-5: 1.2rem;
   --font-size-6: 1.25rem;


   --font-weight-1: 400;
   --font-weight-2: 500;
   --font-weight-3: 600;
   --font-weight-4: 700;
   --font-weight-5: 800;
   --font-weight-6: 900;

   --br-1: .25rem;
   --br-2: .5rem;
   --br-3: 1rem;
   --br-4: 1.5rem;
   --br-5: 2rem;


   --padding-1: 1rem;
   --padding-2: 1.5rem;
   --padding-3: 2rem;


   --gap-1: .5rem;
   --gap-2: 1rem;
   --gap-3: 1.5rem;
   --gap-4: 2rem;
   --gap-5: 2.5rem;
   --gap-6: 3rem;
}

/* ###################### */
/* ### LAZY LOADING ### */
/* ###################### */

/* Image Container Styles */
.image-container {
   position: relative;
   overflow: hidden;
   background-color: #f8f9fa;
   width: 100%;
   height: 100%;
   /* padding-bottom: 56.25%; */
}

/* Logo specific container */
.logo-image-container {
   background-color: transparent;
   border-radius: 0;
}

/* Instagram-style Shimmer Placeholder */
.image-placeholder {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, #f0f0f0 0%, #f0f0f0 40%, #e0e0e0 50%, #f0f0f0 60%, #f0f0f0 100%);
   background-size: 200% 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 2;
   opacity: 1;
   transition: opacity .4s ease;
}

/* Shimmer overlay effect */
.shimmer-overlay {
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg,
         transparent 0%,
         rgba(255, 255, 255, .7) 50%,
         transparent 100%);
   animation: shimmer 1.8s infinite ease-in-out;
   transform: skewX(-15deg);
}

/* Shimmer animation */
@keyframes shimmer {
   0% {
      left: -100%;
   }

   100% {
      left: 100%;
   }
}

/* Lazy Image Styles */
.lazy-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0;
   transition: opacity .5s ease-in-out, transform .3s ease-out;
   position: relative;
   z-index: 1;
   transform: scale(1.05);
}

/* Image Loaded State */
.lazy-image.loaded {
   opacity: 1;
   transform: scale(1);
}

/* Hide placeholder when image is loaded */
.image-container.loaded .image-placeholder {
   opacity: 0;
   pointer-events: none;
}

/* Fade-in animation for images coming into view */
.lazy-image.fade-in {
   animation: fadeInUp .6s ease-out forwards;
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(20px) scale(1.02);
   }

   to {
      opacity: 1;
      transform: translateY(0) scale(1);
   }
}

/* Error state */
.lazy-image.error {
   opacity: 1;
   background: #f8f9fa;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #6c757d;
   font-size: 14px;
   transform: scale(1);
}

.lazy-image.error::after {
   content: "Изображение не загружено";
}

/* Performance indicator (development only) */
.perf-indicator {
   position: fixed;
   top: 10px;
   right: 10px;
   background: rgba(0, 0, 0, 0.8);
   color: white;
   padding: 8px 12px;
   border-radius: 4px;
   font-size: 12px;
   z-index: 9999;
   display: none;
}

.perf-indicator.show {
   display: block;
}

/* ######################### */



html {
   color: var(--color-black);
}

body {
   color: var(--color-black);
   font-family: var(--font-secondary);
   font-size: var(--font-size-2);
}

aside {
   background-color: #f1f1f1;
   display: flex;
   justify-content: space-between;
   padding: .6rem 7rem;
}

@media screen and (max-width: 65em) {
   aside {
      display: none;
   }
}

.detials-wrapper {
   display: flex;
   gap: var(--gap-6);
}

.detials-item {
   display: flex;
   align-items: center;
   gap: var(--gap-1);
}

.detials-item i,
a,
p {
   color: #000;
   font-weight: var(--font-weight-2);
   font-size: .87rem;
   transition: color .35s ease;
}

.detials-item a:hover {
   color: var(--color-accent);
}

.top-socials-wrapper {
   display: flex;
   align-items: center;
   gap: var(--gap-2);
}

.top-socials-wrapper i {
   /* color: #6f6f6f; */
   transition: all .35s ease;
}

.top-socials-wrapper a:nth-child(1) {
   font-size: .9rem;
}

.top-socials-wrapper a:nth-child(1):hover {
   color: rgb(81, 173, 209);
}

.top-socials-wrapper a:nth-child(2) {
   font-size: 1rem;
}

.top-socials-wrapper a:nth-child(2):hover {
   color: red;
}

.top-socials-wrapper a:nth-child(3) {
   font-size: 1rem;
}

.top-socials-wrapper a:nth-child(3):hover {
   color: blue;
}

.mobile-top-menu {
   background-color: #f1f1f1;
   padding: .5rem .85rem;
}

@media screen and (min-width: 65em) {
   .mobile-top-menu {
      display: none;
   }
}



/* ######################## */
/* ### HEADER ### */
/* ###################### */

.header {
   background-color: transparent;
   box-shadow: 0 6px 20px transparent;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: clamp(1rem, 0.9296rem + 0.3005vw, 1.2rem) clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem);
   position: sticky;
   top: 0;
   z-index: 1000;
   -webkit-transition: all .35s ease;
   transition: all .35s ease;
}

/* Sticky header styles */
.header-sticky {
   background-color: rgb(255, 255, 255);
   box-shadow: 0 5px 25px rgba(0 0 0 / .06);
}

.logo {
   width: clamp(14rem, 13.2958rem + 3.0047vw, 16rem);
}

/* ######################## */
/* ### NAVIGATION OVERLAY ### */
/* ###################### */

.nav-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background-color: rgba(0, 0, 0, 0.6);
   -webkit-backdrop-filter: blur(4px);
   backdrop-filter: blur(4px);
   opacity: 0;
   visibility: hidden;
   z-index: 999;
   transition: opacity .4s ease, visibility .4s ease;
}

.nav-overlay.overlay-active {
   opacity: 1;
   visibility: visible;
}

/* ######################## */
/* ### NAVIGATION ### */
/* ###################### */

.nav-wrapper {
   display: flex;
   align-items: center;
}

.nav-menu-wrapper {
   display: flex;
   align-items: center;
   gap: var(--gap-4);
}

.nav-link {
   color: var(--color-black);
   font-size: 1.01rem;
   transition: all .35s ease;
}

.nav-link:hover {
   color: var(--color-accent);
}

.divider-line,
.mobile-details,
.mobile-item {
   display: none;
}

#menu-close,
#menu-open {
   color: var(--color-black);
   display: none;
}

@media screen and (max-width: 57em) {
   .nav-wrapper {
      background-color: rgb(255, 255, 255);
      box-shadow: -15px 0 27px 0 rgba(0 0 0 / .08);
      position: fixed;
      top: 0;
      right: 0;
      width: 75%;
      height: 100vh;
      flex-direction: column;
      align-items: center;
      gap: 2.5rem;
      padding-top: 10rem;
      transform: translateX(100%);
      transition: transform .35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      z-index: 1001;
   }

   #menu-close {
      position: absolute;
      top: 1.3rem;
      right: 1.3rem;
      background: none;
      border: none;
   }

   #menu-open {
      background: none;
      border: none;
   }

   #menu-close,
   #menu-open {
      background-color: #efefef;
      border: 1.15px solid #e8e8e8;
      border-radius: var(--br-2);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: var(--gap-1);
      padding: .47rem .7rem;
      font-weight: var(--font-weight-2);
      font-size: var(--font-size-1);
      transition: all .35s ease;
   }

   #menu-close:hover,
   #menu-open:hover {
      background-color: rgb(220, 220, 220);
   }

   .nav-menu-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--gap-5);
   }

   .nav-link {
      font-size: 1.03rem;
   }

   .divider-line {
      display: block;
      width: 15rem;
      height: 1px;
      background-color: #e2e2e2;
   }

   .mobile-details {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: var(--gap-3);
      padding-inline: 3.4rem 1rem;
   }

   .mobile-item {
      display: flex;
      gap: var(--gap-1);
   }

   .mobile-item i, a {
      font-size: .85rem;
   }
}

.nav-active {
   transform: translateX(0);
}



/* ######################## */
/* ### HERO ### */
/* ###################### */

.hero {
   /* margin-block: 0 4rem; */
   /* margin-inline: clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem); */
}

.carousel-container {
   position: relative;
   width: 100%;
   overflow: hidden;
}

.carousel-wrapper {
   position: relative;
}

.carousel-slides {
   position: relative;
   height: clamp(20rem, 11.1972rem + 37.5587vw, 45rem);
   overflow: hidden;
}

.carousel-slide {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   opacity: 0;
   transition: opacity .8s ease;
   z-index: 1;
}

.carousel-slide.slide-active {
   opacity: 1;
   z-index: 2;
}

.carousel-controls {
   position: absolute;
   top: 50%;
   width: 100%;
   display: flex;
   align-items: center;
   justify-content: space-between;
   transform: translateY(-50%);
   z-index: 10;
   padding: 0 1rem;
}

.carousel-btn {
   background-color: var(--color-white);
   border: none;
   border-radius: 50%;
   width: clamp(2.5rem, 2.3239rem + 0.7512vw, 3rem);
   height: clamp(2.5rem, 2.3239rem + 0.7512vw, 3rem);
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all .35s ease;
   color: var(--color-black);
}

.carousel-btn i {
   transition: all .35s ease;
}

.carousel-btn:hover i {
   color: var(--color-accent);
}

.carousel-btn:focus-visible {
   outline: 3px solid var(--color-accent);
   outline-offset: 2px;
}

.carousel-indicators {
   position: absolute;
   bottom: 20px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: var(--gap-1);
   z-index: 10;
}

.carousel-indicator {
   background-color: rgba(255, 255, 255, 0.6);
   border-radius: var(--br-3);
   border: none;
   cursor: pointer;
   width: 17px;
   height: 3.2px;
   transition: all .35s ease;
}

.carousel-indicator.indicator-active {
   background-color: var(--color-white);
   width: 22px;
   transform: scale(1.1);
}

.carousel-indicator:hover {
   background-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicator:focus-visible {
   outline: 3px solid var(--color-accent);
   outline-offset: 2px;
}

/* Pause on hover/focus */
.carousel-wrapper:hover .auto-play-active,
.carousel-wrapper:focus-within .auto-play-active {
   animation-play-state: paused;
}

.hero-content-wrapper {
   background-color: #f8f8f8;
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   gap: var(--gap-2);
   padding-block: clamp(2rem, 1.6479rem + 1.5023vw, 3rem);
   padding-inline: clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem);
}

.hero-content-title {
   /* font-family: var(--font-primary); */
   font-size: clamp(1.7rem, 1.3303rem + 1.5775vw, 2.75rem);
   max-width: 40rem;
}

.hero-content {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: var(--gap-4);
   max-width: 37.5rem;
}

.hero-content-text {
   font-size: var(--font-size-1);
}

.hero-content a {
   background-color: var(--color-accent);
   border-radius: var(--br-2);
   color: var(--color-white);
   display: flex;
   align-items: center;
   gap: var(--gap-1);
   font-size: var(--font-size-2);
   padding: .8rem 1rem;
   transition: background-color .35s ease;
}

.hero-content a:hover {
   background-color: rgb(234, 124, 73);
}

/* @media screen and (max-width: 40em) {
   .hero-content-title {
      text-align: center;
   }

   .hero-content-text {
      text-align: center;
   }

   .hero-content a {
      justify-content: center;
      width: 100%;
   }
} */


/* ######################## */
/* ### SCHEDULE SECTION ### */
/* ######################## */

.schedule {
   margin-block: 5rem;
   position: relative;
}

.schedule-container {
   max-width: 75rem;
   margin: 0 auto;
   padding-inline: clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem);
}

/* Schedule Header */
.schedule-header {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   margin-bottom: clamp(3rem, 2.6479rem + 1.5023vw, 4rem);
   flex-wrap: wrap;
   gap: var(--gap-1);
}

.schedule-title-wrapper {
   text-align: center;
   flex: 1;
}

.schedule-title {
   color: var(--color-black);
   /* font-family: var(--font-primary); */
   font-size: clamp(1.55rem, 1.3035rem + 1.0516vw, 2.25rem);
   margin-bottom: var(--gap-1);
}

.schedule-subtitle {
   font-size: 1.04rem;
   font-weight: var(--font-weight-2);
   margin-bottom: clamp(1.5rem, 1.3239rem + 0.7512vw, 2rem);
}

.schedule-controls {
   display: flex;
   flex-wrap: wrap;
   gap: var(--gap-2);
}

@media screen and (max-width: 35em) {
   .schedule-controls {
      justify-content: center;
   }
}

.schedule-refresh-btn,
.schedule-share-btn {
   background: var(--color-white);
   color: #595d67;
   border: 1px solid #e5e7eb;
   padding: .5rem 1rem;
   border-radius: var(--br-2);
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: var(--gap-1);
   font-size: .9rem;
   font-weight: var(--font-weight-2);
   transition: all .3s ease;
}

.schedule-refresh-btn:hover,
.schedule-share-btn:hover {
   /* background: #f9fafb; */
   border-color: var(--color-accent);
   color: var(--color-accent);
}

.schedule-refresh-btn:focus,
.schedule-share-btn:focus {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
}

.schedule-refresh-btn:active,
.schedule-share-btn:active {
   transform: translateY(0);
}

/* Loading State */
.schedule-loading {
   text-align: center;
   padding: 4rem 2rem;
   animation: slideInUp .5s ease-out;
}

.loading-content {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: var(--gap-1);
   /* flex-direction: column; */
}

.loading-spinner {
   width: 1.5rem;
   height: 1.5rem;
   border: 3px solid var(--color-black);
   border-top: 3px solid var(--color-white);
   border-radius: 50%;
   animation: spin 1s linear infinite;
}

.loading-content p {
   color: #6b7280;
   font-size: clamp(0.95rem, 0.9324rem + 0.0751vw, 1rem);
   margin: 0;
}

/* Error State */
.schedule-error {
   text-align: center;
   margin-bottom: 1rem;
   animation: slideInUp .5s ease-out;
}

.error-content {
   display: flex;
   flex-direction: column;
   align-items: center;
   /* gap: var(--gap-2); */
}

.error-icon {
   color: #ef4444;
   opacity: 0.8;
   font-size: 3rem;
}

.error-content h3 {
   color: var(--color-black);
   margin: 0;
   font-size: 1.2rem;
   font-weight: var(--font-weight-3);
   margin-bottom: 1rem;
}

.error-message {
   color: #6b7280;
   margin: 0;
   font-size: 1rem;
   margin-bottom: 1rem;
}

.retry-btn {
   background: var(--color-white);
   border-radius: var(--br-2);
   border: 1px solid #e5e7eb;
   color: #6b7280;
   cursor: pointer;
   padding: .5rem 1rem;
   display: flex;
   align-items: center;
   gap: var(--gap-1);
   font-size: .95rem;
   font-weight: var(--font-weight-2);
   transition: all .3s ease;
}

.retry-btn:hover {
   background: #b8744a;
   color: var(--color-white);
   transform: translateY(-1px);
}

.retry-btn:focus {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
}


/* Schedule Content */
.schedule-content {
   display: flex;
   flex-direction: column;
   gap: clamp(1.5rem, 1.3239rem + 0.7512vw, 2rem);
   margin-bottom: clamp(3rem, 2.6479rem + 1.5023vw, 4rem);
}

.schedule-item {
   /* background-color: #fafafa; */
   border: .06px solid #e8e8e8;
   border-radius: var(--br-3);
   /* box-shadow: 0 6.5px 20px rgba(0, 0, 0, .065); */
   background: #fafafa;
   box-shadow: 13px 13px 26px #e6e6e6,
      -13px -13px 26px #ffffff;
   padding: clamp(1.25rem, 1.0739rem + 0.7512vw, 1.75rem);
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
   transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   animation: slideInUp .5s ease-out forwards;
}

.schedule-item:hover {
   box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
   border-color: var(--color-accent);
}

/* Schedule Item States */
.schedule-item.today {
   background: #fef7f0;
   border-left: 4px solid var(--color-accent);
   position: relative;
}

.schedule-item.today::after {
   content: 'СЕГОДНЯ';
   position: absolute;
   top: 1.6rem;
   right: 1.3rem;
   background: var(--color-accent);
   color: white;
   font-size: .7rem;
   font-weight: 600;
   letter-spacing: 0.5px;
   padding: .25rem .5rem;
   border-radius: var(--br-1);
   box-shadow: 0 2px 8px rgba(244, 144, 77, 0.3);
   animation: todayPulse 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes todayPulse {
   0%,
   100% {
      transform: scale(1);
   }

   50% {
      transform: scale(1.06);
   }
}

/* Mobile responsiveness */
@media screen and (max-width: 48em) {
   .schedule-item.today::after {
      font-size: .6rem;
      padding: .2rem .4rem;
   }
}

/* Schedule Date */
.schedule-date {
   display: flex;
   align-items: center;
   gap: var(--gap-2);
   min-width: -webkit-fill-available;
   min-width: fit-content;
   flex-shrink: 0;
}

.date-day {
   background: linear-gradient(135deg, var(--color-accent) 0%, #b8744a 100%);
   border-radius: var(--br-2);
   color: var(--color-white);
   font-size: clamp(1.25rem, 1.1620rem + 0.3756vw, 1.5rem);
   font-weight: var(--font-weight-4);
   width: 3rem;
   height: 3rem;
   display: flex;
   align-items: center;
   justify-content: center;
}

.date-info {
   display: flex;
   flex-direction: column;
   gap: .2rem;
}

.date-month {
   color: var(--color-black);
   font-size: var(--font-size-2);
   font-weight: var(--font-weight-2);
}

.date-weekday {
   font-size: var(--font-size-1);
   color: #666;
   font-weight: var(--font-weight-1);
   text-transform: capitalize;
}

/* Schedule Details */
.schedule-details {
   flex: 1;
   display: flex;
   flex-direction: column;
   gap: var(--gap-2);
}

.service-title {
   font-size: clamp(1.05rem, 1.0324rem + 0.0751vw, 1.1rem);
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   line-height: 1.4;
   margin: 0 0 0.5rem 0;
}

.service-times {
   display: flex;
   flex-direction: column;
   gap: var(--gap-2);
}

.service-time {
   display: flex;
   align-items: center;
   gap: var(--gap-2);
}

.service-time i {
   color: var(--color-accent);
   font-size: var(--font-size-1);
}

.service-time-value {
   /* background: linear-gradient(135deg, var(--color-accent) 0%, #b8744a 100%);
   border-radius: var(--br-1);
   color: var(--color-white);
   padding: .15rem .4rem; */
   font-weight: var(--font-weight-3);
   font-size: .88rem;
}

.service-type {
   color: #4b5563;
   font-weight: var(--font-weight-2);
   font-size: .9rem;
}

.service-note {
   color: #6b7280;
   border-top: 1px solid #e0e0e0;
   font-size: clamp(0.85rem, 0.8148rem + 0.1502vw, 0.95rem);
   font-style: italic;
   margin-top: .5rem;
   padding-top: .75rem;
}

/* Schedule Stats */
.schedule-stats {
   background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
   border-radius: var(--br-2);
   border: 1px solid #f3f4f6;
   display: flex;
   justify-content: center;
   gap: 2rem;
   padding: 1.5rem;
   border-radius: .75rem;
   margin-top: 2rem;
}

.stats-item {
   color: #6b7280;
   display: flex;
   align-items: center;
   gap: var(--gap-1);
   font-size: .9rem;
   font-weight: var(--font-weight-2);
}

.stats-item i {
   color: var(--color-accent);
}

.stats-item span:last-child {
   color: var(--color-black);
   font-weight: var(--font-weight-3);
}

/* Schedule Footer */
.schedule-footer {
   background-color: #f8f9fa;
   border-radius: var(--br-2);
   padding: clamp(1.25rem, 1.0739rem + 0.7512vw, 1.75rem);
   display: flex;
   flex-direction: column;
   gap: var(--gap-3);
   align-items: center;
   text-align: center;
}

.schedule-note {
   color: #6b7280;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: var(--gap-2);
   font-size: var(--font-size-2);
}

.schedule-note i {
   color: var(--color-accent);
   font-size: var(--font-size-3);
}

.schedule-contact {
   background: var(--color-accent);
   border: 2px solid var(--color-accent);
   color: var(--color-white);
   padding: .6rem 1.5rem;
   border-radius: var(--br-2);
   font-size: .95rem;
   font-weight: var(--font-weight-2);
   display: flex;
   align-items: center;
   gap: var(--gap-2);
   text-decoration: none;
}

.schedule-contact i {
   font-size: 1rem;
}


/* ADMIN PANEL */

/* Admin Trigger */
.admin-trigger {
   position: fixed;
   bottom: 2rem;
   right: 2rem;
   z-index: 1000;
   animation: slideInUp .5s ease-out;
}

.admin-trigger button {
   background: var(--color-accent);
   color: var(--color-white);
   border: none;
   width: 3rem;
   height: 3rem;
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.25rem;
   transition: all .3s ease;
   border: 2px solid var(--color-accent);
}

.admin-trigger button:hover {
   background: #b8744a;
   border-color: #b8744a;
   box-shadow: 0 6px 25px rgba(204, 101, 52, 0.4);
}

.admin-trigger button:focus {
   outline: 2px solid var(--color-white);
   outline-offset: 2px;
}

/* Admin Panel Overlay */
.schedule-admin-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background: rgba(0, 0, 0, 0.6);
   -webkit-backdrop-filter: blur(4px);
   backdrop-filter: blur(4px);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 9999;
   opacity: 0;
   visibility: hidden;
   transition: all .35s ease;
   padding: 1rem;
}

.schedule-admin-overlay.active {
   opacity: 1;
   visibility: visible;
}

/* Admin Panel */
.schedule-admin {
   background: var(--color-white);
   border-radius: var(--br-3);
   width: 100%;
   max-width: 900px;
   max-height: 90vh;
   display: flex;
   flex-direction: column;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
   transform: scale(0.9) translateY(20px);
   transition: all .3s ease;
   overflow: hidden;
}

.schedule-admin-overlay.active .schedule-admin {
   transform: scale(1) translateY(0);
}

/* Admin Header */
.admin-header {
   background: #f8fafc;
   border-bottom: 1px solid #e5e7eb;
   padding: 1.5rem 2rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-shrink: 0;
}

.admin-title {
   display: flex;
   align-items: center;
   gap: .75rem;
}

.admin-title i {
   color: var(--color-accent);
   font-size: 1.25rem;
}

.admin-title h3 {
   margin: 0;
   font-size: 1.25rem;
   font-weight: var(--font-weight-3);
   color: var(--color-black);
}

.admin-actions-header {
   display: flex;
   gap: var(--gap-1);
}

.admin-minimize,
.admin-close {
   background: transparent;
   border: 1px solid #e5e7eb;
   color: #6b7280;
   width: 2rem;
   height: 2rem;
   border-radius: 0.375rem;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s ease;
   font-size: 1rem;
}

.admin-minimize:hover,
.admin-close:hover {
   background: #f3f4f6;
   color: var(--color-black);
   border-color: #d1d5db;
}

.admin-close:hover {
   background: #fef2f2;
   color: #ef4444;
   border-color: #fecaca;
}

/* Admin Content */
.admin-content {
   flex: 1;
   display: flex;
   flex-direction: column;
   overflow: hidden;
}

/* Admin Tabs */
.admin-tabs {
   display: flex;
   background: #f8fafc;
   border-bottom: 1px solid #e5e7eb;
   padding: 0 2rem;
   gap: 0.25rem;
   flex-shrink: 0;
}

.admin-tab {
   background: transparent;
   border: none;
   color: #6b7280;
   padding: 1rem 1.5rem;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.9rem;
   font-weight: var(--font-weight-2);
   border-radius: var(--br-1) var(--br-1) 0 0;
   transition: all 0.2s ease;
   position: relative;
}

.admin-tab:hover {
   background: #f3f4f6;
   color: var(--color-black);
}

.admin-tab.active {
   background: var(--color-white);
   color: var(--color-accent);
   border-bottom: 2px solid var(--color-accent);
}

.admin-tab i {
   font-size: 0.9rem;
}

/* Tab Content */
.admin-tab-content {
   flex: 1;
   overflow-y: auto;
   padding: 2rem;
}

.admin-tab-panel {
   display: none;
}

.admin-tab-panel.active {
   display: block;
}

/* Admin Sections */
.admin-section {
   margin-bottom: 2rem;
}

.admin-section:last-child {
   margin-bottom: 0;
}

.admin-section label {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   margin-bottom: 1rem;
   font-size: 1rem;
}

.admin-section label i {
   color: var(--color-accent);
   font-size: 1rem;
}

/* JSON Editor */
.json-editor-container {
   border: 1px solid #e5e7eb;
   border-radius: var(--br-2);
   overflow: hidden;
   background: var(--color-white);
}

#admin-json-editor {
   width: 100%;
   border: none;
   padding: 1.5rem;
   font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
   font-size: .85rem;
   line-height: 1.5;
   background: #fafbfc;
   color: var(--color-black);
   resize: none;
   min-height: 300px;
}

#admin-json-editor:focus {
   outline: none;
   background: var(--color-white);
}

.json-editor-tools {
   display: flex;
   gap: 0.5rem;
   padding: 1rem 1.5rem;
   background: #f8fafc;
   border-top: 1px solid #e5e7eb;
   flex-wrap: wrap;
}

.json-editor-tools button {
   background: var(--color-white);
   border: 1px solid #e5e7eb;
   color: #6b7280;
   padding: 0.5rem 1rem;
   border-radius: var(--br-1);
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.85rem;
   font-weight: var(--font-weight-2);
   transition: all 0.2s ease;
}

.json-editor-tools button:hover {
   background: #f9fafb;
   border-color: var(--color-accent);
   color: var(--color-accent);
}

.json-editor-tools button i {
   font-size: 0.8rem;
}

/* File Upload Area */
.file-upload-area {
   border: 2px dashed #d1d5db;
   border-radius: var(--br-2);
   padding: 3rem 2rem;
   text-align: center;
   cursor: pointer;
   transition: all 0.3s ease;
   background: #fafbfc;
}

.file-upload-area:hover,
.file-upload-area.dragover {
   border-color: var(--color-accent);
   background: #fef7f0;
}

.upload-content {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 1rem;
}

.upload-content i {
   font-size: 2.5rem;
   color: #9ca3af;
   transition: all 0.3s ease;
}

.file-upload-area:hover .upload-content i,
.file-upload-area.dragover .upload-content i {
   color: var(--color-accent);
}

.upload-content h4 {
   margin: 0;
   font-size: 1.1rem;
   font-weight: var(--font-weight-3);
   color: var(--color-black);
}

.upload-content p {
   margin: 0;
   font-size: 0.9rem;
   color: #6b7280;
}

/* Backup Actions */
.backup-actions {
   display: flex;
   gap: 0.75rem;
   margin-bottom: 1.5rem;
   flex-wrap: wrap;
}

.backup-actions button {
   background: var(--color-white);
   border: 1px solid #e5e7eb;
   color: #6b7280;
   padding: 0.75rem 1.25rem;
   border-radius: var(--br-1);
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: .5rem;
   font-size: .9rem;
   font-weight: var(--font-weight-2);
   transition: all .2s ease;
}

.backup-actions button:hover {
   background: #f9fafb;
   border-color: var(--color-accent);
   color: var(--color-accent);
}

.backup-actions button i {
   font-size: 0.85rem;
}

/* Backup List */
.backup-list {
   max-height: 300px;
   overflow-y: auto;
   border: 1px solid #e5e7eb;
   border-radius: var(--br-2);
   background: var(--color-white);
}

.backup-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1rem 1.25rem;
   border-bottom: 1px solid #f3f4f6;
   transition: all 0.2s ease;
}

.backup-item:last-child {
   border-bottom: none;
}

.backup-item:hover {
   background: #fafbfc;
}

.backup-item-info {
   flex: 1;
}

.backup-item-title {
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   margin-bottom: 0.25rem;
   font-size: 0.95rem;
}

.backup-item-meta {
   font-size: 0.8rem;
   color: #6b7280;
}

.backup-item-actions {
   display: flex;
   gap: 0.5rem;
}

.backup-item-actions button {
   background: transparent;
   border: 1px solid #e5e7eb;
   color: #6b7280;
   width: 2rem;
   height: 2rem;
   border-radius: var(--br-1);
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s ease;
   font-size: 0.8rem;
}

.backup-item-actions button:hover {
   background: #f3f4f6;
   color: var(--color-black);
}

.backup-item-actions button:first-child:hover {
   background: #fef7f0;
   color: var(--color-accent);
   border-color: var(--color-accent);
}

.backup-item-actions button:last-child:hover {
   background: #fef2f2;
   color: #ef4444;
   border-color: #fecaca;
}

/* Settings */
.settings-group {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.setting-item {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 1rem;
   background: #fafbfc;
   border: 1px solid #f3f4f6;
   border-radius: var(--br-2);
   transition: all 0.2s ease;
}

.setting-item:hover {
   background: var(--color-white);
   border-color: #e5e7eb;
}

.setting-item input[type="checkbox"] {
   width: 1.25rem;
   height: 1.25rem;
   accent-color: var(--color-accent);
   cursor: pointer;
}

.setting-item label {
   margin: 0;
   cursor: pointer;
   font-size: 0.95rem;
   font-weight: var(--font-weight-2);
   color: var(--color-black);
}

/* Admin Footer */
.admin-footer {
   background: #f8fafc;
   border-top: 1px solid #e5e7eb;
   padding: 1.5rem 2rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-shrink: 0;
   gap: 1rem;
}

.admin-status {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.9rem;
   color: #6b7280;
   flex: 1;
}

.admin-status i {
   font-size: 1rem;
   color: var(--color-accent);
}

.admin-main-actions {
   display: flex;
   gap: .75rem;
}

.btn-secondary,
.btn-primary {
   border: 1px solid;
   border-radius: var(--br-2);
   cursor: pointer;
   padding: .75rem 1.5rem;
   display: flex;
   align-items: center;
   gap: var(--gap-1);
   font-size: .9rem;
   font-weight: var(--font-weight-2);
   transition: all .3s ease;
}

.btn-secondary {
   background: var(--color-white);
   color: #6b7280;
   border-color: #e5e7eb;
}

.btn-secondary:hover {
   background: #f9fafb;
   color: var(--color-black);
   border-color: #d1d5db;
}

.btn-primary {
   background: var(--color-white);
   border-color: #e5e7eb;
   color: #6b7280;
}

.btn-primary:hover {
   background: #ececec;
   border-color: #d1d5db;
   color: var(--color-black);
}

.btn-secondary:focus,
.btn-primary:focus {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
}

.btn-secondary i,
.btn-primary i {
   font-size: .85rem;
}

/* ### NOTIFICATIONS ### */
.notification-container {
   position: fixed;
   top: 2rem;
   right: 2rem;
   z-index: 10000;
   display: flex;
   flex-direction: column;
   gap: .75rem;
   max-width: 400px;
   pointer-events: none;
}

.notification {
   background: var(--color-white);
   border: 1px solid #e5e7eb;
   border-radius: var(--br-2);
   padding: 1rem 1.25rem;
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
   display: flex;
   align-items: flex-start;
   gap: .75rem;
   transform: translateX(100%);
   transition: all .35s ease;
   pointer-events: auto;
   position: relative;
   overflow: hidden;
}

.notification.show {
   transform: translateX(0);
}

.notification::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 4px;
   height: 100%;
   background: #e5e7eb;
}

.notification.success::before {
   background: #10b981;
}

.notification.error::before {
   background: #ef4444;
}

.notification.warning::before {
   background: #f59e0b;
}

.notification.info::before {
   background: #3b82f6;
}

.notification-icon {
   font-size: 1.1rem;
   margin-top: 0.1rem;
   flex-shrink: 0;
}

.notification.success .notification-icon {
   color: #10b981;
}

.notification.error .notification-icon {
   color: #ef4444;
}

.notification.warning .notification-icon {
   color: #f59e0b;
}

.notification.info .notification-icon {
   color: #3b82f6;
}

.notification-content {
   flex: 1;
   min-width: 0;
}

.notification-title {
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   margin-bottom: .25rem;
   font-size: .95rem;
   line-height: 1.3;
}

.notification-message {
   font-size: 0.85rem;
   color: #6b7280;
   line-height: 1.4;
   margin: 0;
}

.notification-close {
   background: transparent;
   border: none;
   color: #9ca3af;
   cursor: pointer;
   padding: 0;
   width: 1.5rem;
   height: 1.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: var(--br-1);
   transition: all 0.2s ease;
   flex-shrink: 0;
   font-size: 0.9rem;
}

.notification-close:hover {
   background: #f3f4f6;
   color: #6b7280;
}

/* ### ANIMATIONS ### */
@keyframes spin {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

@keyframes slideInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes fadeIn {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

@keyframes slideInRight {
   from {
      opacity: 0;
      transform: translateX(30px);
   }

   to {
      opacity: 1;
      transform: translateX(0);
   }
}

/* ### RESPONSIVE DESIGN ### */
/* Tablet Styles */
@media screen and (max-width: 768px) {
   .schedule-stats {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
   }

   .schedule-note {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
   }

   .schedule-note i {
      margin-top: 0;
   }

   /* Admin Panel Mobile */
   .schedule-admin-overlay {
      padding: .5rem;
   }

   .schedule-admin {
      max-height: 95vh;
   }

   .admin-header {
      padding: 1rem 1.5rem;
   }

   .admin-tabs {
      padding: 0 1rem;
      overflow-x: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
   }

   .admin-tabs::-webkit-scrollbar {
      display: none;
   }

   .admin-tab {
      white-space: nowrap;
      flex-shrink: 0;
   }

   .admin-tab-content {
      padding: 1.5rem;
   }

   .admin-footer {
      padding: 1rem 1.5rem;
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
   }

   .admin-main-actions {
      justify-content: center;
   }

   .json-editor-tools {
      padding: 1rem;
   }

   .backup-actions {
      flex-direction: column;
   }

   .backup-actions button {
      justify-content: center;
   }
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
   .schedule-contact {
      padding: .75rem 1.25rem;
   }

   .notification-container {
      top: 1rem;
      right: 1rem;
      max-width: 90vw;
   }

   .notification {
      padding: .875rem 1rem;
   }

   .admin-trigger {
      bottom: 1.5rem;
      right: 1rem;
   }

   .admin-trigger button {
      width: 3rem;
      height: 3rem;
      font-size: 1.1rem;
   }

   .admin-header {
      padding: 1rem;
   }

   .admin-title h3 {
      font-size: 1.1rem;
   }

   .admin-tab-content {
      padding: 1rem;
   }

   .admin-footer {
      padding: 1rem;
   }

   #admin-json-editor {
      padding: 1rem;
      font-size: 0.8rem;
      min-height: 250px;
   }

   .file-upload-area {
      padding: 2rem 1rem;
   }

   .upload-content i {
      font-size: 2rem;
   }

   .upload-content h4 {
      font-size: 1rem;
   }

   .upload-content p {
      font-size: 0.85rem;
   }
}

/* Focus Visible Support */
.schedule-refresh-btn:focus-visible,
.schedule-share-btn:focus-visible,
.retry-btn:focus-visible,
.schedule-contact:focus-visible,
.admin-trigger button:focus-visible {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
}

/* Accessibility Improvements */
.sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border-width: 0;
}

/* Loading State Animation */
.schedule-loading.fade-in {
   animation: fadeIn 0.5s ease-out;
}

.schedule-content.fade-in {
   animation: slideInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
   scroll-behavior: smooth;
}

/* Custom Scrollbar */
.admin-tab-content::-webkit-scrollbar,
.backup-list::-webkit-scrollbar {
   width: 6px;
}

.admin-tab-content::-webkit-scrollbar-track,
.backup-list::-webkit-scrollbar-track {
   background: #f1f5f9;
   border-radius: 3px;
}

.admin-tab-content::-webkit-scrollbar-thumb,
.backup-list::-webkit-scrollbar-thumb {
   background: #cbd5e1;
   border-radius: 3px;
}

.admin-tab-content::-webkit-scrollbar-thumb:hover,
.backup-list::-webkit-scrollbar-thumb:hover {
   background: #94a3b8;
}

/* Enhanced Focus Styles */
*:focus-visible {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
}

/* Button Focus States */
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
}

/* Input Focus States */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
   border-color: var(--color-accent);
}

/* Link Focus States */
a:focus-visible {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
   border-radius: 0.25rem;
}

/* Checkbox Focus States */
input[type="checkbox"]:focus-visible {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
}

/* Enhanced Hover States */
.admin-tab:hover i {
   transform: translateY(-1px);
   transition: transform .3s ease;
}

.backup-item:hover .backup-item-title {
   color: var(--color-accent);
   transition: color .2s ease;
}


/* Form Styles */
.form-group {
   margin-bottom: 1.5rem;
}

.form-label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: var(--font-weight-2);
   color: var(--color-black);
   font-size: 0.9rem;
}

.form-input,
.form-textarea,
.form-select {
   width: 100%;
   padding: 0.75rem 1rem;
   border: 1px solid #e5e7eb;
   border-radius: var(--br-2);
   font-size: 0.95rem;
   transition: all 0.2s ease;
   background: var(--color-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
   border-color: var(--color-accent);
   box-shadow: 0 0 0 3px rgba(204, 101, 52, 0.1);
}

.form-textarea {
   resize: vertical;
   min-height: 100px;
}

.form-help {
   font-size: 0.8rem;
   color: #6b7280;
   margin-top: 0.5rem;
}

/* Final Responsive Adjustments */
@media screen and (max-width: 320px) {
   .schedule-container {
      padding-inline: 1rem;
   }

   .schedule-item {
      padding: 1rem;
   }

   .admin-header,
   .admin-footer,
   .admin-tab-content {
      padding: .75rem;
   }

   .notification-container {
      top: .5rem;
      right: .5rem;
      left: .5rem;
   }
}

/* Performance Optimizations */
.schedule-item,
.notification,
.admin-tab,
.btn-primary,
.btn-secondary {
   will-change: transform;
}

/* Ensure proper stacking context */
.schedule-admin-overlay {
   isolation: isolate;
}

.notification-container {
   isolation: isolate;
}


/* ######################## */
/* ### NEWS SECTION ### */ 
/* ######################## */

.news {
   margin-block: 5rem;
}

.news-container {
   max-width: 1400px;
   margin: 0 auto;
   padding: 0 clamp(1rem, 0.6479rem + 1.5023vw, 2rem);
}

/* News Header */
.news-header {
   text-align: center;
   margin-bottom: clamp(1.5rem, 1.3239rem + 0.7512vw, 2rem);
}

.news-title {
   color: var(--color-black);
   /* font-family: var(--font-primary); */
   font-size: clamp(1.55rem, 1.3035rem + 1.0516vw, 2.25rem);
   margin-bottom: var(--gap-1);
   position: relative;
}

.news-subtitle {
   /* color: #6b7280; */
   font-size: 1.04rem;
   font-weight: var(--font-weight-2);
}

/* News Tabs */
.news-tabs {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: var(--gap-1);
   margin-bottom: clamp(1.25rem, 1.1620rem + 0.3756vw, 1.5rem);
   max-width: 450px;
   margin-left: auto;
   margin-right: auto;
}

.news-tab {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: var(--gap-1);
   padding: .65rem clamp(1rem, 0.8944rem + 0.4507vw, 1.3rem);
   border: 1.15px solid #e5e7eb;
   background: transparent;
   color: #6b7280;
   border-radius: var(--br-2);
   cursor: pointer;
   transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
   font-weight: var(--font-weight-2);
   font-size: .9rem;
   position: relative;
   overflow: hidden;
   white-space: nowrap;
}

.news-tab:hover {
   color: var(--color-accent);
   border-color: var(--color-accent);
}

.news-tab.active {
   color: var(--color-accent);
   border-color: var(--color-accent);
   /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.news-tab i {
   font-size: .9rem;
}

/* News Controls - Redesigned */
.news-controls {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 1.5rem;
   margin-bottom: 2.5rem;
   flex-wrap: wrap;
}

.news-search {
   position: relative;
   flex: 1;
   max-width: 400px;
   min-width: 280px;
}

.news-search input {
   width: 100%;
   padding: 0.875rem 1rem 0.875rem 2.75rem;
   border: 1.6px solid #e5e7eb;
   border-radius: var(--br-2);
   font-size: .95rem;
   background: white;
   transition: all 0.3s ease;
   box-shadow: 0 2px 8px transparent;
}

.news-search input:focus {
   outline: none;
   border-color: var(--color-accent);
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.news-search i {
   position: absolute;
   left: 1rem;
   top: 50%;
   transform: translateY(-50%);
   color: #9ca3af;
   font-size: 1rem;
   transition: color 0.3s ease;
}

.news-search input:focus+i {
   color: var(--color-accent);
}

.news-sort {
   display: flex;
   align-items: center;
   gap: .75rem;
}

.news-sort select {
   color: #6f737b;
   padding: .875rem 1rem;
   border: 1.6px solid #e5e7eb;
   border-radius: var(--br-2);
   background: white;
   cursor: pointer;
   font-size: .9rem;
   transition: all .3s ease;
   /* min-width: 180px; */
}

.news-sort select:focus {
   outline: none;
   border-color: var(--color-accent);
   box-shadow: 0 0 0 3px rgba(204, 101, 52, 0.1);
}

/* News Content Grid - Improved */
.news-content {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
   gap: 1.5rem;
}

/* News Card - Completely Redesigned */
.news-card {
   background: white;
   border-radius: var(--br-3);
   overflow: hidden;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   text-decoration: none;
   color: inherit;
   display: block;
   position: relative;
   border: 1px solid rgba(255, 255, 255, 0.2);
   animation: slideInUp .6s ease-out;
}

.news-card:hover {
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
   text-decoration: none;
   color: inherit;
}

.news-card-image {
   border-radius: var(--br-3) var(--br-3) 0 0;
   position: relative;
   height: clamp(15rem, 11.4789rem + 15.0235vw, 25rem);
   overflow: hidden;
   transition: transform .65s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-image .image-container {
   width: 100%;
   height: 100%;
}

.news-card-image img {
   border-radius: var(--br-3) var(--br-3) 0 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-image {
   transform: scale(1.05);
}

.news-card-category {
   position: absolute;
   top: 1rem;
   left: 1rem;
   background: rgba(0, 0, 0, 0.8);
   color: white;
   padding: .375rem .875rem;
   border-radius: var(--br-1);
   font-size: .8rem;
   font-weight: var(--font-weight-3);
   text-transform: uppercase;
   letter-spacing: .5px;
   -webkit-backdrop-filter: blur(10px);
   backdrop-filter: blur(10px);
}

.news-card-content {
   cursor: pointer;
   padding: clamp(1.5rem, 1.3239rem + 0.7512vw, 2rem);
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.news-card-meta {
   display: flex;
   align-items: center;
   justify-content: space-between;
   color: #6b7280;
   font-size: .85rem;
   font-weight: var(--font-weight-2);
   margin-bottom: .5rem;
}

.news-card-date,
.news-card-author {
   display: flex;
   align-items: center;
   gap: .375rem;
}

.news-card-date i,
.news-card-author i {
   font-size: .85rem;
   color: var(--color-black);
}

.news-card-title {
   font-size: clamp(1.17rem, 1.1242rem + 0.1953vw, 1.3rem);
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   line-height: 1.4;
   margin: 0;
   display: -webkit-box;
   -webkit-line-clamp: 1;
   line-clamp: 1;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.news-card-description {
   color: #6b7280;
   line-height: 1.6;
   font-size: .95rem;
   margin: 0;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
   flex-grow: 1;
}

.news-card-footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding-top: 1rem;
   border-top: 1.15px solid #f3f4f6;
   margin-top: auto;
}

.news-card-reading-time {
   display: flex;
   align-items: center;
   gap: .375rem;
   font-size: .8rem;
   color: #9ca3af;
}

.news-card-reading-time i {
   color: var(--color-accent);
}

.news-card-read-more {
   color: var(--color-accent);
   font-weight: var(--font-weight-3);
   font-size: .9rem;
   display: flex;
   align-items: center;
   gap: .375rem;
   transition: all .3s ease;
   padding: .5rem 1rem;
   border-radius: 8px;
   background: rgba(204, 101, 52, 0.05);
}

.news-card:hover .news-card-read-more {
   gap: .75rem;
   background: rgba(204, 101, 52, 0.1);
   transform: translateX(2px);
}

/* Load More Button - Redesigned */
.news-load-more {
   text-align: center;
   margin: clamp(2rem, 1.8239rem + 0.7512vw, 2.5rem) 0 0 0;
}

.load-more-btn {
   background: transparent;
   border: 1.55px solid #e5e7eb;
   border-radius: var(--br-2);
   color: #6b7280;
   padding: .75rem 1.1rem;
   font-size: .95rem;
   font-weight: var(--font-weight-2);
   cursor: pointer;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   display: flex;
   align-items: center;
   gap: .75rem;
   margin: 0 auto;
}

.load-more-btn:hover {
   color: var(--color-accent);
   border-color: var(--color-accent);
}

.load-more-btn:disabled {
   opacity: .6;
   cursor: not-allowed;
   transform: none;
}

/* Individual News Page - Complete Redesign */
.individual-news-page {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background: #fafbfc;
   z-index: 10000;
   overflow-y: auto;
   animation: slideInFromRight .4s ease-out;
}

.news-article {
   max-width: 970px;
   margin: 0 auto;
   padding: clamp(2rem, 1.6479rem + 1.5023vw, 3rem);
   background: white;
   min-height: 100vh;
   box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/* Close Button */
.article-close {
   position: fixed;
   top: 2rem;
   right: 2rem;
   background: rgba(0, 0, 0, 0.8);
   color: white;
   border: none;
   width: clamp(2.1rem, 1.7831rem + 1.3521vw, 3rem);
   height: clamp(2.1rem, 1.7831rem + 1.3521vw, 3rem);
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.2rem;
   transition: all .3s ease;
   -webkit-backdrop-filter: blur(10px);
   backdrop-filter: blur(10px);
   z-index: 10001;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.article-close:hover {
   background: rgba(0, 0, 0, 0.9);
   transform: scale(1.1);
}

/* Breadcrumb Navigation */
.breadcrumb {
   margin-bottom: 2rem;
   padding: 1rem 0;
   border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
   display: flex;
   align-items: center;
   gap: .5rem;
   list-style: none;
   margin: 0;
   padding: 0;
   flex-wrap: wrap;
}

.breadcrumb-list li {
   display: flex;
   align-items: center;
   font-size: .9rem;
}

.breadcrumb-list li:not(:last-child)::after {
   content: '>';
   margin-left: .5rem;
   color: #2c2f34;
}

.breadcrumb-list a {
   color: var(--color-accent);
   text-decoration: none;
   transition: color .3s ease;
}

.breadcrumb-list a:hover {
   color: var(--color-black);
   text-decoration: underline;
}

.breadcrumb-current {
   color: #6b7280;
   font-weight: var(--font-weight-2);
}

/* Article Header */
.article-header {
   margin-bottom: 3rem;
   /* text-align: center; */
}

.article-meta {
   display: flex;
   /* justify-content: center; */
   align-items: center;
   gap: 1.5rem;
   margin-bottom: 1.5rem;
   flex-wrap: wrap;
}

.article-category {
   background: var(--color-accent);
   color: white;
   padding: .45rem 1rem;
   border-radius: var(--br-2);
   font-size: .8rem;
   font-weight: var(--font-weight-3);
   text-transform: uppercase;
   letter-spacing: .5px;
}

.article-date {
   color: #6b7280;
   font-size: .9rem;
   font-weight: var(--font-weight-2);
}

.article-title {
   color: var(--color-black);
   font-family: var(--font-primary);
   font-size: clamp(1.3rem, 0.8775rem + 1.8028vw, 2.5rem);
   font-weight: var(--font-weight-4);
   line-height: 1.3;
   /* text-align: center;
   margin-left: auto;
   margin-right: auto; */
   margin-bottom: 2rem;
   /* max-width: 45rem; */
}

.article-info {
   display: flex;
   /* justify-content: center;
   align-items: center; */
   gap: clamp(1rem, 0.6127rem + 1.6526vw, 2.1rem);
   flex-wrap: wrap;
   font-size: .9rem;
   font-weight: var(--font-weight-2);
   color: #6b7280;
}

.article-author,
.article-reading-time,
.article-word-count {
   display: flex;
   align-items: center;
   gap: .4rem;
}

.article-info i {
   color: var(--color-accent);
}

/* Reading Progress */
.reading-progress {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 4px;
   background: rgba(0, 0, 0, 0.1);
   z-index: 10002;
}

.progress-bar {
   height: 100%;
   background: linear-gradient(90deg, var(--color-accent), #d4926b);
   width: 0%;
   transition: width .35s ease;
}

/* Article Content */
.article-content {
   font-size: 1.1rem;
   line-height: 1.6;
   color: #374151;
   margin-bottom: 3rem;
}

.article-content h2 {
   font-size: clamp(1.25rem, 1.1620rem + 0.3756vw, 1.5rem);
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   margin: 2.5rem 0 1.5rem 0;
   line-height: 1.4;
}

.article-content h3 {
   font-size: clamp(1.15rem, 1.1148rem + 0.1502vw, 1.25rem);
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   margin: 2rem 0 1rem 0;
   line-height: 1.4;
}

.article-content p {
   margin-bottom: 1.5rem;
}

.article-content em {
   font-style: italic;
   color: #4b5563;
}

.article-content ul,
.article-content ol {
   margin: 1.5rem 0;
   padding-left: 2rem;
}

.article-content li {
   margin-bottom: 0.5rem;
}

/* Article Images */
.article-image {
   margin: 3rem 0;
   text-align: center;
}

.article-image .image-container {
   border-radius: var(--br-3);
   overflow: hidden;
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
   display: inline-block;
   width: 100%;
   height: 100%;
}

.article-image img {
   border-radius: var(--br-3);
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

.article-image figcaption {
   margin-top: 1rem;
   font-size: .85rem;
   color: #6b7280;
   font-style: italic;
   /* text-align: center; */
}

/* Social Sharing */
.article-sharing {
   background: #f9fafb;
   padding: clamp(1rem, 0.6479rem + 1.5023vw, 2rem);
   border-radius: 16px;
   margin: 3rem 0;
   text-align: center;
}

.article-sharing h3 {
   font-size: 1.1rem;
   font-family: var(--font-primary);
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   margin-bottom: 1.5rem;
}

.sharing-buttons {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: var(--gap-2);
   flex-wrap: wrap;
}

.share-btn {
   display: flex;
   align-items: center;
   gap: var(--gap-1);
   padding: .75rem clamp(1rem, 0.8239rem + 0.7512vw, 1.5rem);
   border: 1.6px solid #e5e7eb;
   background: white;
   color: #374151;
   text-decoration: none;
   border-radius: var(--br-2);
   font-weight: var(--font-weight-2);
   transition: all .35s ease;
   cursor: pointer;
   font-size: .95rem;
}

.share-btn:hover {
   border-color: var(--color-accent);
   color: var(--color-accent);
   transform: translateY(-1px);
   box-shadow: 0 4px 16px rgba(204, 101, 52, 0.15);
}

.share-btn[data-platform="telegram"]:hover {
   border-color: #0088cc;
   color: #0088cc;
   box-shadow: 0 4px 16px rgba(0, 136, 204, 0.15);
}

.share-btn[data-platform="vk"]:hover {
   border-color: #4680c2;
   color: #4680c2;
   box-shadow: 0 4px 16px rgba(70, 128, 194, 0.15);
}

/* Article Navigation */
/* .article-navigation {
   display: flex;
   justify-content: space-between;
   gap: 2rem;
   margin: 3rem 0;
   padding: 2rem 0;
   border-top: 1px solid #e5e7eb;
   border-bottom: 1px solid #e5e7eb;
} */

/* .nav-prev,
.nav-next {
   display: flex;
   align-items: center;
   gap: 1rem;
   padding: 1.5rem;
   background: white;
   border: 2px solid #e5e7eb;
   border-radius: 12px;
   text-decoration: none;
   color: #374151;
   transition: all 0.3s ease;
   flex: 1;
   max-width: 45%;
}

.nav-prev:hover,
.nav-next:hover {
   border-color: var(--color-accent);
   transform: translateY(-2px);
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
   text-decoration: none;
   color: var(--color-accent);
}

.nav-prev i,
.nav-next i {
   font-size: 1.2rem;
   color: var(--color-accent);
}

.nav-prev div,
.nav-next div {
   display: flex;
   flex-direction: column;
   gap: 0.25rem;
}

.nav-prev span,
.nav-next span {
   font-size: 0.8rem;
   color: #9ca3af;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.nav-prev strong,
.nav-next strong {
   font-weight: var(--font-weight-2);
   font-size: .95rem;
   line-height: 1.4;
} */

/* Related News */
.related-news {
   margin: 3rem 0;
   padding-top: 2rem;
   border-top: 1px solid #e5e7eb;
}

.related-news h3 {
   font-size: 1.35rem;
   font-weight: var(--font-weight-3);
   color: var(--color-black);
   margin-bottom: 2rem;
   text-align: center;
}

.related-news-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 1.5rem;
}

.related-news-item {
   background: white;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
   transition: all .3s ease;
   text-decoration: none;
   color: inherit;
   display: block;
}

.related-news-item:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
   text-decoration: none;
   color: inherit;
}

.related-news-item .image-container {
   height: 270px;
   overflow: hidden;
}

.related-news-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .6s ease;
}

.related-news-item:hover img {
   transform: scale(1.05);
}

.related-news-content {
   padding: 1.25rem;
}

.related-news-title {
   font-size: 1rem;
   font-weight: var(--font-weight-2);
   color: var(--color-black);
   margin: 0 0 0.75rem 0;
   line-height: 1.4;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.related-news-date {
   font-size: .8rem;
   color: #9ca3af;
}

/* Loading and Error States */
.news-loading,
.news-error {
   text-align: center;
   margin: 2rem 0;
}

/* .loading-spinner {
   width: 3rem;
   height: 3rem;
   border: 3px solid #f3f4f6;
   border-top: 3px solid var(--color-accent);
   border-radius: 50%;
   animation: spin 1s linear infinite;
   margin: 0 auto 1.5rem;
} */

.error-icon {
   font-size: 3rem;
   color: #ef4444;
   margin-bottom: 1rem;
}

.retry-btn {
   background: var(--color-accent);
   color: white;
   border: none;
   padding: 0.875rem 1.5rem;
   border-radius: 8px;
   cursor: pointer;
   font-weight: var(--font-weight-2);
   transition: all 0.3s ease;
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   margin-top: 1rem;
}

.retry-btn:hover {
   background: #b8814a;
   transform: translateY(-1px);
}

/* News Stats */
.news-stats {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 2rem;
   margin-top: 2rem;
   padding: 1.2rem;
   background: rgba(255, 255, 255, 0.8);
   border-radius: 12px;
   -webkit-backdrop-filter: blur(10px);
   backdrop-filter: blur(10px);
   border: 1px solid rgba(255, 255, 255, 0.2);
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stats-item {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   color: #6b7280;
   font-size: 0.9rem;
   font-weight: var(--font-weight-2);
}

.stats-item i {
   color: var(--color-accent);
   font-size: 1rem;
}

/* Animations */
@keyframes slideInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes slideInFromRight {
   from {
      opacity: 0;
      transform: translateX(100%);
   }
   to {
      opacity: 1;
      transform: translateX(0);
   }
}

@keyframes spin {
   0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
   .news-controls {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
   }

   .news-search {
      display: none;
   }

   .news-sort select {
      height: 3.2rem;
      width: 100%;
   }

   .news-content {
      grid-template-columns: 1fr;
      gap: 1.5rem;
   }

   .news-card {
      max-width: 100%;
   }

   .news-card-content {
      padding: 1.25rem;
   }

   .article-close {
      top: 1rem;
      right: 1rem;
      font-size: 1rem;
   }

   .news-article {
      padding: 1.5rem 1rem;
   }

   .article-title {
      line-height: 1.2;
   }

   .article-content {
      font-size: 1rem;
      line-height: 1.7;
   }

   .article-navigation {
      flex-direction: column;
      gap: 1rem;
   }

   .share-btn[data-platform="telegram"] p,
   .share-btn[data-platform="vk"] p  {
      display: none;
   }

   .share-btn[data-platform="telegram"],
   .share-btn[data-platform="vk"] {
      font-size: 1.03rem;
   }

   .share-btn[data-platform="copy"] {
      font-size: 1rem;
   }

   .share-btn[data-platform="vk"] {
      padding-block: .95rem;
   }

   .nav-prev,
   .nav-next {
      max-width: 100%;
   }

   .related-news-grid {
      grid-template-columns: 1fr;
   }

   .breadcrumb-list {
      font-size: 0.8rem;
   }
}

@media screen and (max-width: 480px) {
   .news-card-content {
      padding: 1rem;
   }

   .news-card-description {
      font-size: 0.9rem;
   }

   .nav-prev,
   .nav-next {
      padding: 1rem;
   }

   .nav-prev strong,
   .nav-next strong {
      font-size: .85rem;
   }
}


/* ######################## */
/* ### FOOTER ### */
/* ######################## */

footer {
   background: #f9fafb;
   padding: 2rem clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem);
}

.footer-nav-wrapper {
   padding-bottom: 1.25rem;
   border-bottom: 1.2px solid #e5e7eb;
}

.footer-nav {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: clamp(1.5rem, 1.1479rem + 1.5023vw, 2.5rem);
}

.footer-nav-link {
   color: var(--color-black);
   font-size: .95rem;
   transition: all .35s ease;
}

.footer-nav-link:hover {
   color: var(--color-accent);
   text-decoration: underline;
}

.footer-info {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: var(--gap-2);
   padding-top: 1.25rem;
}

@media screen and (max-width: 480px) {
   .footer-info {
      flex-direction: column;
      justify-content: center;
   }
}

.footer-info p, year {
   color: #6b7280;
   font-size: .85rem;
}

.footer-info-socials {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: var(--gap-3);
}

.footer-info-socials a {
   font-size: 1rem;
}

.footer-info-socials a:nth-child(1) {
   color: rgb(81, 173, 209);
}

.footer-info-socials a:nth-child(2) {
   color: red;
}

.footer-info-socials a:nth-child(3) {
   color: blue;
}



/* ######################## */
/* ### O-khrame / SVYATYNI ### */
/* ###################### */

.about-header,
.svyatyni-header,
.kontakti-header {
   background-color: rgb(255, 255, 255);
   box-shadow: 0 5.5px 25px rgba(0 0 0 / .06);
   /* border-bottom: 1px solid #e8e8e8; */
   padding: clamp(1rem, 0.9296rem + 0.3005vw, 1.2rem) clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem);
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 2rem;
   position: sticky;
   top: 0;
   z-index: 1000;
}

.about-back-btn,
.svyatyni-back-btn,
.kontakti-back-btn {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   left: clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem);
   color: var(--color-black);
   font-size: 1.025rem;
}

.about-header-title,
.svyatyni-header-title,
.kontakti-header-title {
   color: var(--color-black);
   font-size: 1.5rem;
}

.about-body,
.svyatyni-body,
.kontakti-body {
   padding-inline: clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem);
   margin-bottom: 1.25rem;
}

.about-content-wrapper,
.kontakti-wrapper {
   display: flex;
   flex-direction: column;
   gap: var(--gap-4);
}

.about-content-title,
.kontakti-content-title {
   font-size: 1.15rem;
}

.about-content,
.kontakti-content {
   display: flex;
   flex-direction: column;
   gap: var(--gap-1);
}


/* ### SVYATYNI ### */

.tab-content-body {
   display: flex;
   flex-direction: column;
   gap: var(--gap-3);
}

.tab-content-title {
   font-size: 1.15rem;
}

.tab-content-text a {
   color: var(--color-accent);
   text-decoration: underline;
}

.tab-content-image {
   border-radius: var(--br-3);
   object-fit: cover;
   width: 100%;
   height: 100%;
}



/* ### SVYATYNI TABS ### */

.svyatyni-nav {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: var(--gap-2);
   padding-inline: clamp(0.85rem, -1.3155rem + 9.2394vw, 7rem);
   margin-bottom: 2rem;
}

.svyatyni-tab-btn {
   background: var(--color-white);
   box-shadow: 0 4px 18px transparent;
   color: #595d67;
   border: 1.5px solid #e5e7eb;
   padding: .5rem 1rem;
   border-radius: var(--br-2);
   font-size: .85rem;
   font-weight: var(--font-weight-2);
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   text-align: center;
   cursor: pointer;
   display: block;
   text-decoration: none;
}

.svyatyni-tab-btn:hover {
   background: #f9fafb;
   color: var(--color-accent);
   border-color: var(--color-accent);
   box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
   /* background: rgba(204, 101, 52, 0.02); */
}

.svyatyni-tab-btn.svyatyniTabActive {
   background: var(--color-accent);
   color: white;
   border-color: var(--color-accent);
   box-shadow: 0 4px 16px rgba(204, 101, 52, 0.3);
}

.svyatyni-tab-btn:focus-visible {
   outline: 3px solid rgba(204, 101, 52, 0.5);
   outline-offset: 2px;
}

/* Tab Content */
.svyatyni-tab-content {
   display: none;
   animation: fadeInUp .4s ease;
}

.svyatyni-tab-content.svyatyniContentActive {
   display: block;
}


/* ######################## */
/* ### kontakti ### */
/* ###################### */

.kontakti-content div {
   display: flex;
   gap: .7rem;
}

.kontakti-content div a:hover {
   text-decoration: underline;
}

.kontakti-content div a {
   color: var(--color-black);
   text-decoration: none;
}

.kontakti-content div a:nth-child(1) {
   color: rgb(81, 173, 209);
}

/* .kontakti-content div a:nth-child(2) {
   color: red;
} */

.kontakti-content div a:nth-child(3) {
   color: blue;
}