/* Подключение шрифта Cygre */

/* Regular */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Light */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

/* Book */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-Book.ttf") format("truetype");
  font-weight: 450;
  font-style: normal;
}

/* Medium */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* Semibold */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* ExtraBold */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

/* Black */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

/* Thin */
@font-face {
  font-family: "Cygre";
  src: url("cygre_default/Cygre-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--main-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/bg.png");

  pointer-events: none;

  z-index: 2;
  opacity: 0.5;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

h1 {
  font-size: var(--font-size-2xl);
}
h2 {
  font-size: var(--font-size-xl);
}
h3 {
  font-size: var(--font-size-lg);
}
h4 {
  font-size: var(--font-size-base);
}

p {
  margin: 0;
  line-height: 1.6;
}

/* Buttons */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  overflow: visible;
  text-transform: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  display: block;
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-hover);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: white;
}

:root {
  /* Colors */
  --main-bg: #e0e3f2;
  --sidebar-bg: #ffffff;
  --primary-color: #6366f1;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-secondary2: #8f9bba;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #dc2626;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --text-secondary3: #a3aed0;

  /* Background variants */
  --bg-hover: #f3f4f6;
  --bg-active: #eef2ff;
  --bg-error: #fef2f2;
  --bg-success: #f0fdf4;

  /* Typography */
  --font-family: "Cygre", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-symbols: "Segoe UI Symbol", sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;

  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Layout */
  --sidebar-width: 286px;
  --tabs-width: 200px;
  --max-content-width: 1200px;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

.text-highlight {
  background: linear-gradient(30deg, #3d73eb 0%, #de8fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: 180px;
  margin-right: 180px;
}

.navbar {
  position: relative;
  margin: 15px auto 0 auto;
  width: 85%;
  z-index: 100;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(61, 115, 235, 0.3),
    rgba(222, 143, 255, 0.3)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  position: relative;
}

/* ===== УГЛОВЫЕ ЭЛЕМЕНТЫ НАВБАРА ===== */

.navbar-content::before,
.navbar-content::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1px solid #323240;
  z-index: 2;
  pointer-events: none;
}

.navbar-content::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.navbar-content::after {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}

.navbar-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1px solid #323240;
  z-index: 2;
  pointer-events: none;
}

.navbar-corner--bottom-left {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.navbar-corner--bottom-right {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* ===== СТРУКТУРА НАВБАРА ===== */
.navbar__left {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.navbar__center {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar__right {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== ЛОГОТИП ===== */
.logo {
  height: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

.logo--desktop {
  display: block;
}

.logo--mobile {
  display: none;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.navbar__left::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  background-image: url("images/logo2.svg");
  pointer-events: none;
}

/* ===== НАВИГАЦИЯ ===== */
.nav-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link--active {
  color: #1f2937;
  font-weight: 600;
}

.nav-link:hover {
  color: #1f2937;
}

/* ===== КНОПКИ ===== */
.btn-login,
.btn-signup {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 0;
  white-space: nowrap;
  width: 90px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
}

.btn-login {
  background: transparent;
  /* border: 1px solid #e5e7eb; */
  color: #6b7280;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #1f2937;
}

.btn-signup {
  background: linear-gradient(30deg, #3d73eb, #de8fff);
  border: none;
  color: white;
  font-weight: 400;
}

.btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* ===== УГЛОВЫЕ ЭЛЕМЕНТЫ КНОПОК ===== */

.btn-login::before,
.btn-login::after,
.btn-signup::before,
.btn-signup::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #323240;
  z-index: 3;
  pointer-events: none;
}

.btn-login::before,
.btn-signup::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.btn-login::after,
.btn-signup::after {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.btn-login-corners,
.btn-signup-corners {
  position: relative;
  display: inline-block;
}

.btn-login-corners::before,
.btn-login-corners::after,
.btn-signup-corners::before,
.btn-signup-corners::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #323240;
  z-index: 3;
  pointer-events: none;
}

.btn-login-corners::before,
.btn-signup-corners::before {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.btn-login-corners::after,
.btn-signup-corners::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* ===== МОБИЛЬНАЯ КНОПКА ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #1f2937;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid #323240;
  z-index: 3;
  pointer-events: none;
}

.mobile-menu-toggle::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.mobile-menu-toggle::after {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.mobile-menu-toggle-corners {
  position: relative;
  display: none;
}

.mobile-menu-toggle-corners::before,
.mobile-menu-toggle-corners::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid #323240;
  z-index: 3;
  pointer-events: none;
}

.mobile-menu-toggle-corners::before {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.mobile-menu-toggle-corners::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(61, 115, 235, 0.3),
    rgba(222, 143, 255, 0.3)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  z-index: 50;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-menu.mobile-menu--open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #353544;
  font-weight: 500;
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

.mobile-menu .nav-link:hover {
  color: #ffffff;
  opacity: 0.8;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-auth-buttons .btn-login-corners,
.mobile-auth-buttons .btn-signup-corners {
  width: 100%;
}

.mobile-auth-buttons .btn-login,
.mobile-auth-buttons .btn-signup {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}

/* ===== СОСТОЯНИЯ ===== */
.navbar.menu-open .mobile-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar.menu-open .mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle svg line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 12px 12px;
}

.mobile-menu-toggle.active svg line:nth-child(1) {
  transform: translate(0, 6px) rotate(45deg);
  transform-origin: 12px 6px;
}

.mobile-menu-toggle.active svg line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active svg line:nth-child(3) {
  transform: translate(0, -6px) rotate(-45deg);
  transform-origin: 12px 18px;
}

/*==== POST SECTION ====*/
.post-section {
  margin: 15px auto 0 auto;
  width: 85%;
}

.post-section h1 {
  margin-top: 40px;

  font-size: 60px;
  font-weight: 400;
}

.post-section p {
  font-size: 18px;
  font-weight: 400;

  margin-top: 20px;
}

.posts-header {
  display: flex;
  justify-content: space-between;

  margin: 20px auto;
}

.posts-header span {
  font-size: 18px;
  font-weight: 400;
}

.skip-left {
  background: #ffffff;
  padding: 7px;

  border-radius: 10px;

  width: 34px;
}

.skip-right {
  background: #ffffff;
  padding: 7px;

  border-radius: 10px;

  width: 34px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto 100px auto;
}

.post-card {
  max-width: 310px;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(188, 165, 255, 0.1),
    rgba(163, 207, 255, 0.1)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  justify-self: center;
  padding: 8.6px;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

.post-card__image {
  width: 100%;
  height: 200px;
  display: block;

  border-radius: 20px;
}

.post-card__content {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-card__title {
  font-size: 14x;
  font-weight: 400;
  color: #3e3232;
}

.post-card__description {
  font-size: 14px;
  font-weight: 400;
  color: #3e3232bf;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 11px 13px;
  margin-top: auto;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-info__name {
  font-size: 12px;
  font-weight: 600;
  color: #3e3232;
}

.author-info__date {
  font-size: 12px;
  font-weight: 400;
  color: #3e3232bf;
}

.post-card__bookmark {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.post-card__bookmark:hover {
  opacity: 1;
  transform: scale(1.1);
}

/*==== FOOTER ====*/
footer {
  margin-left: 176px;
  margin-right: 176px;
}

.footer-content {
  background-image: url("./images/logo-neutys3.svg");
  background-position: top left;
  background-repeat: no-repeat;

  border: 1px solid rgba(50, 50, 64, 0.1);
}

.footer-top {
  display: flex;
  justify-content: space-between;

  display: flex;
  flex-direction: row;
  align-items: center;

  padding: 68px 102px 42px 102px;
}

.footer-top img {
  width: 120px;
}

.footer-top-right {
  display: flex;
  flex-direction: row;
}

.footer-top-right img {
  width: 20px;
}

.footer-top-right span {
  text-transform: uppercase;
  color: #74767e;
}

/* ==== FOOTER MIDDLE ==== */
.footer-middle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 42px 18px 42px 42px;
  border-top: 1px solid rgba(50, 50, 64, 0.1);
  border-bottom: 1px solid rgba(50, 50, 64, 0.1);
}

.footer-column {
  display: flex;
  flex-direction: row;
  align-items: top;
  gap: 25px;
}

.footer-column h4 {
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 20px;
  color: #323240;
  display: flex;
  flex-direction: row;
}

.footer-column a {
  display: block;
  margin-bottom: 10px;
  color: #323240;
  text-decoration: none;
  font-size: 14px;
}

.footer-column a:hover {
  color: #6c63ff;
}

.footer-column-left {
  display: flex;
  text-transform: uppercase;
  color: #74767e;
  height: 25px;
}

.footer-column-left img {
  width: 20px;
}

.footer-column-left span {
  font-size: 10px;
}

.footer-column-right {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.footer-column-right a {
  font-size: 14px;
  color: #4c4c4c;
}

.footer-auth .auth-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-info p {
  font-size: 13px;
  margin-bottom: 12px;
  color: #74767e;
}

/* ==== FOOTER BOTTOM ==== */
.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #74767e;
}

/* ===== АДАПТИВНЫЕ БРЕЙКПОИНТЫ ===== */
@media (max-width: 1600px) {
  .container {
    margin-left: 120px;
    margin-right: 120px;
  }

  .navbar {
    width: 95%;
  }
}

@media (max-width: 1500px) {
  footer {
    margin: 0;
  }
}

@media (max-width: 1400px) {
  .navbar {
    width: 100%;
  }
  .navbar__center {
    gap: 20px;
  }
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .container {
    margin-left: 80px;
    margin-right: 80px;
  }

  .navbar {
    width: 100%;
  }
  .navbar-content {
    padding: 12px 12px;
  }
  .navbar__center {
    gap: 14px;
  }
  .navbar__right {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .btn-login,
  .btn-signup {
    padding: 6px 12px;
    font-size: 13px;
    width: 80px;
    min-width: 60px;
  }

  footer {
    margin-left: 80px;
    margin-right: 80px;
  }

  .footer-top {
    padding: 50px 60px 30px 60px;
  }

  .footer-middle {
    padding: 30px 18px;
    gap: 30px;
  }
}

@media (max-width: 1024px) {
  footer {
    margin: 0;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1000px) {
  .navbar {
    width: 98%;
  }
  .navbar-content {
    padding: 12px 20px;
    min-height: 60px;
  }
  .navbar__center {
    gap: 16px;
  }

  .navbar__right {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .logo--desktop {
    display: none;
  }
  .logo--mobile {
    display: block;
    animation: logoFadeIn 0.5s ease;
    height: 32px;
    max-width: 140px;
  }

  .navbar-content::before,
  .navbar-content::after,
  .navbar-corner {
    width: 12px;
    height: 12px;
  }
  .btn-login::before,
  .btn-login::after,
  .btn-signup::before,
  .btn-signup::after,
  .btn-login-corners::before,
  .btn-login-corners::after,
  .btn-signup-corners::before,
  .btn-signup-corners::after {
    width: 6px;
    height: 6px;
  }
  .btn-login,
  .btn-signup {
    padding: 5px 8px;
    font-size: 12px;
    width: 65px;
    min-width: 55px;
  }
}

@media (max-width: 968px) {
  footer {
    margin-left: 50px;
    margin-right: 30px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    padding: 40px 30px;
  }

  .footer-middle {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 30px 20px;
  }

  .footer-column {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 950px) {
  .navbar-content {
    padding: 12px 16px;
    min-height: 50px;
  }

  .navbar__center {
    display: none !important;
  }
  .navbar__right .btn-login-corners,
  .navbar__right .btn-signup-corners {
    display: none !important;
  }

  .mobile-menu-toggle-corners {
    display: block !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }

  .navbar-content::before,
  .navbar-content::after,
  .navbar-corner {
    width: 10px;
    height: 10px;
  }

  .logo--desktop {
    display: block;
    animation: logoFadeIn 0.5s ease;
    height: 32px;
    max-width: 140px;
  }
  .logo--mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  footer {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-content {
    margin: 0 20px;
  }

  .footer-middle {
    gap: 30px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px 30px 20px;
    align-items: center;
  }

  .footer-top-right span {
    font-size: 12px;
  }

  .footer-top img {
    width: 100px;
    max-width: 100px;
    height: auto;
  }

  .footer-top-right img {
    width: 20px;
  }

  .container {
    margin-left: 20px;
    margin-right: 20px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card__image {
    height: 180px;
  }
}

@media (max-width: 700px) {
  .logo--mobile {
    height: 28px;
    max-width: 120px;
  }

  .container {
    margin: 20px;
  }
}

@media (max-width: 600px) {
  .navbar-content {
    padding: 10px 14px;
  }

  footer {
    margin-left: 20px;
    margin-right: 20px;
  }

  .footer-top {
    padding: 30px 20px;
  }

  .footer-middle {
    padding: 20px 15px;
  }

  .footer-column h4 {
    font-size: 13px;
  }

  .footer-column a {
    font-size: 13px;
  }

  .footer-auth .auth-buttons {
    flex-direction: column;
  }

  .footer-auth .btn-login,
  .footer-auth .btn-signup {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-content {
    margin: 0;
    border-left: none;
    border-right: none;
    background-size: 80px;
    background-position: 20px 20px;
  }

  .post-section h1 {
    font-size: 40px;
  }
}

.btn-login:hover::before,
.btn-login:hover::after,
.btn-signup:hover::before,
.btn-signup:hover::after,
.btn-login-corners:hover::before,
.btn-login-corners:hover::after,
.btn-signup-corners:hover::before,
.btn-signup-corners:hover::after {
  border-color: #333333;
}

@media (hover: none) and (pointer: coarse) {
  .btn-login:hover,
  .btn-signup:hover,
  .mobile-menu-toggle:hover {
    transform: none;
    box-shadow: none;
  }
  .logo:hover {
    transform: none;
    filter: none;
  }
  .btn-login:active {
    background: rgba(255, 255, 255, 0.3);
  }
  .btn-signup:active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo--desktop,
  .logo--mobile {
    transition: none;
  }
  .logo:hover {
    transform: none;
    filter: none;
  }
  @keyframes logoFadeIn {
    from,
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media print {
  .navbar {
    display: none !important;
  }
}
