/* Подключение шрифта 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;
}

/*==== HEADER SECTION ====*/
.reviews-header-section {
  margin: 15px auto 0 auto;
  padding: 14px 50px 14px 17px;
  width: 85%;
  border-radius: 8px;

  background: #ffffff42;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.company-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 90px;
}

.rating-card {
  display: flex;
  flex-direction: column;

  gap: 16px;
  text-align: left;
}

.rating-card h1 {
  font-size: 20px;
  font-weight: 600;
}

.reviews {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grade {
  padding: 5px 10px;
  background: #0d0c22;
  border-radius: 4px;
  color: white;
  font-size: 20;
  font-weight: 700;
}

.general-overview {
  color: #5465ff;

  font-size: 12px;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

.tags span {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
}

.blue {
  background: #eff8ff;
  color: #175cd3;
}

.purple {
  background: #f4f3ff;
  color: #5925dc;
}

.red {
  background: #fff6ed;
  color: #c4320a;
}

.actions-block {
  text-align: right;

  display: flex;
  flex-direction: column;
  gap: 60px;
}

.cta {
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 400;
  border-radius: 40px;

  background: linear-gradient(30deg, #3d73eb, #de8fff);
  color: white;
}

.social-icons {
  display: flex;
  flex-direction: row;

  gap: 24px;
}

/*==== ABOUT SECTION ====*/
.about-section {
  margin: 15px auto 0 auto;
  padding: 14px 50px 14px 17px;
  width: 85%;
  border-radius: 8px;

  background: #ffffff42;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 35px;
}

.about-section img,
.about-section video {
  width: 280px;
}

.about-section h1 {
  font-size: 16px;
  font-weight: 600;
}

.about-section p {
  font-size: 14px;
  font-weight: 400;
}

/*==== TOOLBAR ====*/

.reviews-control-bar {
  margin: 15px auto 0 auto;
  padding: 14px 0 14px 0;
  width: 85%;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.sort-select {
  background: #ffffff42;
  border: none;
  border-radius: 4px;
  padding: 6px 44px 6px 14px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("images/icons/chevron-down.svg");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.sort-select:focus {
  outline: none;
  border-color: #6366f1;
}

.write-review-btn {
  padding: 8px 62px;

  font-size: 18px;
  font-weight: 400;

  max-width: 250px;

  background: linear-gradient(30deg, #3d73eb, #de8fff);
  color: white;
}

.write-review-btn::before,
.write-review-btn::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #323240;
  z-index: 3;
  pointer-events: none;
}

.write-review-btn::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.write-review-btn::after {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.write-review-btn-corners {
  position: relative;
  display: inline-block;
}

.write-review-btn-corners::before,
.write-review-btn-corners::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #323240;
  z-index: 3;
  pointer-events: none;
}

.write-review-btn-corners::before {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.write-review-btn-corners::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/*==== REVIEWS SUMMARY ====*/
.reviews-summary {
  margin: 15px auto 0 auto;
  padding: 24px 32px;
  width: 85%;
  border-radius: 8px;
  background: #ffffff42;

  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.rating-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

.rating-summary h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.rating-score {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.star-rating {
  display: flex;
  gap: 4px;
}

.star {
  width: 22px;
  height: 22px;
}

.star path {
  fill: none;
  stroke: #f7b668;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.star.filled path {
  fill: #f7b668;
}

.star.half path {
  fill: url(#halfGradient);
}

.review-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  font-size: 14px;
  color: var(--text-primary);
  min-width: 60px;
}

.bar-container {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffa500, #f7b668);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.bar-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 40px;
  text-align: right;
}

/*==== COMMENTS SECTION ====*/
.comments-section {
  margin: 15px auto 0 auto;
  padding: 24px 32px;
  width: 85%;
  border-radius: 8px;
  background: #ffffff42;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.comment-date {
  font-size: 14px;
  color: #858585;
  font-weight: 700;
}

.comment-stars {
  display: flex;
  gap: 8px;
}

.comment-stars .star {
  width: 16px;
  height: 16px;
}

.comment-stars .star path {
  fill: #f7b668;
  stroke: none;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5465ff2f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5465ff;
  font-weight: 600;
  font-size: 14px;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 14px;
  font-weight: 400;
  color: #0d0c22;
}

.author-position {
  font-size: 14px;
  color: #858585;
  font-weight: 400;
}

.comment-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #0d0c22;
}

.comment-divider {
  height: 2px;
  background: #0000000f;
  width: 100%;
}

/*==== PAGINATION ====*/
.pagination {
  margin: 15px auto 0 auto;
  width: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #d1d5db;
}

.pagination-btn.active {
  background: linear-gradient(30deg, #3d73eb, #de8fff);
  color: white;
  border-color: transparent;
}

.pagination-prev,
.pagination-next {
  min-width: 40px;
}

.pagination-dots {
  color: #6b7280;
  font-size: 14px;
  padding: 0 4px;
  user-select: none;
}

/*==== MODAL ====*/
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  background: white;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #e5e7eb;
}

.modal-close svg {
  color: #6b7280;
}

.modal-body {
  padding: 40px 32px 32px;
}

.modal-body--centered {
  text-align: center;
}

.modal-title {
  font-size: 28px;
  font-weight: 600;
  color: #0d0c22;
  margin-bottom: 8px;
  text-align: center;
}

.modal-subtitle {
  font-size: 19px;
  font-weight: 400;
  color: #0d0c22;
  margin-bottom: 32px;
  text-align: center;
}

.modal-star-rating {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.modal-star {
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-star path {
  fill: none;
  stroke: #f7b668;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease;
}

.modal-star:hover path,
.modal-star.active path {
  fill: #f7b668;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 16x;
  font-weight: 400;
  color: #1f2937;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  color: #1f2937;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-review-btn {
  padding: 14px 24px;
  background: linear-gradient(30deg, #3d73eb, #de8fff);
  color: white;
  border: none;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.modal-disclaimer {
  font-size: 14px;
  color: #0d0c22;
  text-align: left;
  margin-top: 8px;
}

.modal-disclaimer a {
  color: #6366f1;
  text-decoration: none;
}

.modal-disclaimer a:hover {
  text-decoration: underline;
}

.thank-you-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.ok-btn {
  padding: 14px 48px;
  background: linear-gradient(30deg, #3d73eb, #de8fff);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.ok-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/*==== 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,
  .reviews-header-section,
  .about-section,
  .reviews-control-bar,
  .reviews-summary,
  .comments-section,
  .pagination {
    width: 95%;
  }
}

@media (max-width: 1500px) {
  footer {
    margin: 0;
  }

  .company-info {
    gap: 50px;
  }
}

@media (max-width: 1400px) {
  .navbar,
  .reviews-header-section,
  .about-section,
  .reviews-control-bar,
  .reviews-summary,
  .comments-section,
  .pagination {
    width: 100%;
  }
  .navbar__center {
    gap: 20px;
  }
}

@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;
  }

  .cta {
    padding: 2px 6px;
    font-size: 10px;
  }
}

@media (max-width: 1024px) {
  footer {
    margin: 0;
  }
}

@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;
  }
  .reviews-header-section,
  .about-section {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .about-section img,
  .about-section video {
    align-self: flex-start;
  }

  .company-info {
    gap: 40px;
  }

  .actions-block {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .reviews-summary {
    flex-direction: column;
    gap: 32px;
    padding: 20px;
  }

  .comments-section {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  footer {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-content {
    margin: 0 20px;
  }

  .footer-middle {
    gap: 30px;
  }

  .footer-top-right span {
    font-size: 12px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px 30px 20px;
    align-items: center;
  }

  .footer-top img {
    width: 100px;
    max-width: 100px;
    height: auto;
  }

  .footer-top-right img {
    width: 20px;
  }

  .container {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@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%;
  }
  .rating-summary {
    align-items: center;
    text-align: center;
  }

  .bar-label {
    font-size: 12px;
    min-width: 50px;
  }

  .bar-count {
    font-size: 12px;
    min-width: 30px;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .author-name {
    font-size: 15px;
  }

  .author-position {
    font-size: 13px;
  }

  .comment-text {
    font-size: 13px;
  }
  .pagination {
    gap: 4px;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .pagination-prev,
  .pagination-next {
    min-width: 36px;
  }

  .modal-content {
    max-width: 95%;
  }

  .modal-body {
    padding: 32px 20px 24px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-star-rating {
    gap: 8px;
  }

  .modal-star {
    width: 32px;
    height: 32px;
  }

  .reviews-header-section {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  .company-info {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .company-info img {
    max-width: 80px;
    align-self: center;
  }

  .rating-card {
    gap: 12px;
    text-align: center;
    align-items: center;
  }

  .rating-card h1 {
    font-size: 18px;
  }

  .reviews {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .grade {
    font-size: 16px;
    padding: 4px 8px;
  }

  .star-rating {
    gap: 2px;
  }

  .star-rating .star {
    width: 18px;
    height: 18px;
  }

  .general-overview {
    font-size: 11px;
  }

  .tags {
    gap: 8px;
    justify-content: center;
  }

  .tags span {
    font-size: 11px;
    padding: 2px 6px;
  }

  .actions-block {
    width: 100%;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .cta {
    font-size: 11px;
    padding: 3px 8px;
  }

  .social-icons {
    gap: 16px;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
  }

  /* ABOUT SECTION */
  .about-section {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  .about-section img,
  .about-section video {
    width: 100%;
    max-width: 200px;
    align-self: center;
  }

  .about-section h1 {
    font-size: 15px;
  }

  .about-section p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* TOOLBAR */
  .reviews-control-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }

  .select-wrapper {
    width: 100%;
  }

  .sort-select {
    width: 100%;
    padding: 8px 40px 8px 12px;
    font-size: 13px;
  }

  .write-review-btn {
    width: 100%;
    max-width: 100%;
    padding: 10px 20px;
    font-size: 16px;
  }

  /* REVIEWS SUMMARY */
  .reviews-summary {
    flex-direction: column;
    gap: 24px;
    padding: 15px;
  }

  .rating-summary {
    align-items: center;
    text-align: center;
  }

  .rating-score {
    font-size: 40px;
  }

  .star-rating {
    gap: 3px;
  }

  .star-rating .star {
    width: 20px;
    height: 20px;
  }

  .review-count {
    font-size: 13px;
  }

  .rating-bars {
    gap: 10px;
  }

  .rating-bar-item {
    gap: 12px;
  }

  .bar-label {
    font-size: 12px;
    min-width: 50px;
  }

  .bar-container {
    height: 6px;
  }

  .bar-count {
    font-size: 12px;
    min-width: 30px;
  }

  /* COMMENTS SECTION */
  .comments-section {
    padding: 15px;
    gap: 16px;
  }

  .comment-card {
    gap: 12px;
  }

  .comment-header {
    gap: 8px;
  }

  .comment-date {
    font-size: 13px;
  }

  .comment-stars {
    gap: 6px;
  }

  .comment-stars .star {
    width: 14px;
    height: 14px;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .author-name {
    font-size: 13px;
  }

  .author-position {
    font-size: 12px;
  }

  .comment-text {
    font-size: 13px;
    line-height: 1.5;
  }

  /* PAGINATION */
  .pagination {
    gap: 4px;
    padding: 15px 0;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .pagination-prev,
  .pagination-next {
    min-width: 36px;
  }

  .pagination-dots {
    font-size: 13px;
  }

  /* MODAL */
  .modal-content {
    max-width: 95%;
  }

  .modal-body {
    padding: 32px 20px 24px;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-subtitle {
    font-size: 16px;
  }

  .modal-star-rating {
    gap: 8px;
  }

  .modal-star {
    width: 32px;
    height: 32px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 13px;
    padding: 10px;
  }

  .submit-review-btn {
    font-size: 16px;
    padding: 12px 20px;
  }

  .modal-disclaimer {
    font-size: 13px;
  }

  .ok-btn {
    font-size: 15px;
    padding: 12px 36px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    margin: 0;
    border-left: none;
    border-right: none;
    background-size: 80px;
    background-position: 20px 20px;
  }
}

.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;
  }
}
