  :root {
	--body: #EAEFF6;
	--line: #2196F3;
	--bg: #FFFFFF;
	--bg_hover: #F3F6FA;
	--text-color: #212121;
	--border: #E0E0E0;
	--button: #2196F3;
	--button_hover: #1B89E4;
	--baner: radial-gradient(circle at center,#2F9DF1 0%,#2175CA 100%);
	--button-red: #FF5A4D;
	--button-red_hover: #E64A3D;
}

.dark-mode {
	--body: #1D2328;
	--line: #2196F3;
	--bg: #0B0D0F;
	--bg_hover: #232323;
	--text-color: #D4D4D4;
	--border: #414141;
	--button: #2D516E;
	--button_hover: #27465F;
	--baner: radial-gradient(circle at center,#2D516E 0%,#27465F 100%);
	--button-red: #B43F36;
	--button-red_hover: #A5362F;
	--img: brightness(0) invert(1) saturate(0) brightness(63%) contrast(95%) sepia(100%) grayscale(100%);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%; 
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-sizing: border-box;
}

.preloader img {
    width: 180px;
}

.progress-bar {
    width: 180px;
    height: 3px;
    background-color: var(--bg);
    margin-top: 10px;
    border-radius: 5px;
    position: relative;
    box-sizing: border-box;
}

.progress-bar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: var(--line);
    border-radius: 5px;
    animation: progress 2s infinite;
    box-sizing: border-box;
}


@keyframes progress {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}


.loading-container {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--line);
    z-index: 9999;
}

.loading-line {
    height: 100%;
    width: 0;
    background-color: var(--line);
    transition: width 0.3s ease;
}

@keyframes loading {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

.loading-dots {
    display: inline-block;
    font-size: 15px;
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: var(--bg); 
    border-radius: 50%;
    animation: dot 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot {
    0%, 20%, 100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}



body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--body);
    padding-top: 80px; 
}

.header {
    background-color: var(--body);
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    min-width: 320px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 7px 12px;
    gap: 10px;
    border-radius: 50px;
    background: var(--bg);
}

.logo {
    display: flex;
    align-items: center;
}

.catalog-btn {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    gap: 8px;
}

.sidebar {
	position: fixed;
	top: 0;
	left: -420px;       
	width: 320px;
	height: 100%;
	background: var(--bg);
	box-shadow: 2px 0 8px rgba(0,0,0,0.2);
	padding: 20px;
	transition: left 0.3s ease;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;    
}

.sidebar.active {
	left: 0;
}

.sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
}

.sidebar-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: bold;
}

.close-btn {
	background: none;
	border: none;
	font-size: 38px;
	cursor: pointer;
	color: var(--text-color);
	line-height: 1;
	padding: 0;
	margin: 0;
}	

.close-btn:hover {
	color: var(--button);
	transform: scale(1.2);
	
}

.sidebar h3 {
	margin: 0 0 10px;
	font-size: 18px;
	color: var(--button);
}

.sidebar .menu-group {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.sidebar .menu-group a {
	display: block;
	padding: 8px;
	background: var(--body);
	border-radius: 8px;
	text-decoration: none;
	color: var(--text-color);
	text-align: center;
	font-size: 14px;
	transition: background 0.2s;
}

.sidebar .menu-group a:hover {
	background: var(--button_hover);
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(5px); 
	-webkit-backdrop-filter: blur(5px);
	opacity: 0;
	visibility: hidden;
	transition: 0.3s;
	z-index: 1050;
}


.overlay.active {
	opacity: 1;
	visibility: visible;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--bg);
  min-width: 160px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: var(--bg_hover);
  border-radius: 25px;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-icon {
  transition: transform 0.3s;
}

.dropdown.open .dropdown-icon {
  transform: rotate(180deg); 
}

.search-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    height: 42px;
    border-radius: 50px;
    border: 1px solid var(--border);
    padding: 0 4px;
    background: var(--bg);
}

.search-input {
    border: none;
    background: transparent;
    padding: 0 13px;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.search-button {
    background-color: var(--button);
    border: none;
    border-radius: 50%;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: var(--button_hover);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.catalog-btn:hover {
    background-color: var(--bg_hover);
}


.login-btn,
.signup-btn {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}


.login-btn {
    background-color: transparent;
    color: var(--text-color);
}


.signup-btn {
    background-color: var(--button);
    color: #fff;
}


.login-btn:hover,
.signup-btn:hover {
    background-color: var(--button_hover);
    color: #fff;
}


.container {
    min-width: 320px;
    max-width: 1324px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 12px; 
    gap: 10px;
    box-sizing: border-box;
}



.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--body);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1001;
}

.bottom-nav a {
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 0;
    transition: background-color 0.2s;
}

.bottom-nav a:hover {
    background-color: var(--bg_hover);
}

@media (max-width: 1084px) {
    .header-container {
        justify-content: space-between;
        gap: 8px;
        padding: 8px 12px;
    }

    .catalog-btn:not(.dropdown-toggle),
    .login-btn,
    .signup-btn {
        display: none;
    }

    .top-header .top-links .dropdown {
        display: flex;
        align-items: center;
    }

    .top-header .top-links .dropdown .link-text {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

.header-container {
    position: relative;
}

.dropdown-menu {
    position: absolute; 
    top: 60px;           
    right: 0;           
    width: 220px;       
    padding: 5px;
    z-index: 2000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    background: var(--bg);
    border-radius: 15px;
    overflow: hidden;
}

.dropdown.open .dropdown-menu {
    display: flex;
}
}


@media (min-width: 1083px) {
.header-container {
    position: relative;
}

.dropdown-menu {
    position: absolute; 
    top: 60px;          
    right: 0;            
    width: 220px;       
    padding: 5px;
    z-index: 2000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    background: var(--bg);
    border-radius: 15px;
    overflow: hidden;
}

.dropdown.open .dropdown-menu {
    display: flex;
}
	
	
    .bottom-nav {
        display: none;
    }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px); 
	-webkit-backdrop-filter: blur(5px);
}
.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: var(--bg);
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  max-width: 90%;
  position: relative;
}
.modal-content h2 {
  margin-top: 0;
}
.modal-content label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}
.modal-content input,
.modal-content button {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}
.modal-content input {
  border: 1px solid var(--border);
}
.modal-content button {
  background: var(--button);
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-content button:hover {
  background: var(--button_hover);
}

.close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 38px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.close:hover {
  color: var(--button);
  transform: scale(1.2);
}

.banner-wrapper {
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
}
    .banner {
      width: 100%;
      height: 100%;
      border-radius: 25px;
      display: flex;
      justify-content: space-between;
      padding: 40px;
      box-sizing: border-box;
      color: white;
	background: var(--baner);
      overflow: hidden;
      position: relative;
    }
.banner-content {
  margin-top: 20px;
  max-width: 500px;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding-right: 30%; /* відсуває текст від картинки */
}
    .banner-content h2 {
      font-size: clamp(18px, 3vw, 36px);
      line-height: 1.3;
      margin-bottom: 20px;
    }
    .banner-content p {
      font-size: clamp(12px, 1.4vw, 24px);
      line-height: 1.4;
      margin-bottom: 30px;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
    .btn {
      display: inline-block;
      padding: clamp(8px, 1.2vw, 16px) clamp(16px, 2.4vw, 32px);
      background: var(--button-red);
      color: white;
      font-size: clamp(12px, 1.6vw, 18px);
      border-radius: 8px;
      text-decoration: none;
      transition: 0.3s;
      text-align: center;
      white-space: nowrap;
      width: fit-content;
      max-width: 100%;
      box-sizing: border-box;
    }
    .btn:hover {
      background: var(--button-red_hover);
    }
.banner-image {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 70%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.banner-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
    
    @media (max-width: 768px) {
      .banner {
        padding: 16px;
		aspect-ratio: unset;
        min-height: 240px;
      }

	  .banner-content p {
      font-size: clamp(11px, 1.1vw, 18px);
      line-height: 1.4;
      margin-bottom: 30px;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
      .banner-image {
        width: 70%;
        
      }
    }
    
    @media (max-width: 640px) {
      .banner {
        padding: 14px;
        aspect-ratio: unset;
        min-height: 240px;
      }

      .banner-wrapper {
        aspect-ratio: unset;
      }

      .banner-content {
        margin-top: 0;
        justify-content: space-between;
        height: 100%;
      }
	  .banner-content p {
      font-size: clamp(11px, 1.1vw, 16px);
      line-height: 1.4;
      margin-bottom: 30px;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

	.banner-image {
        width: 60%;      
      }
	
    }
    
    @media (max-width: 480px) {
      .banner {
        padding: 16px;
        aspect-ratio: unset;
        min-height: 200px;
      }
	      .banner-image {
        width: 40%;
        
      }
	  .banner-content {
        margin-top: 5px;
        max-width: 100%;
      }
      .banner-content h2 {
        margin-bottom: 10px;
      }
      .banner-content p {
        margin-bottom: 12px;
      }

    }