:root {
  --primary-color: #022247;
  --secondary-color: #444545;
  --light-background: #f3f4f8;
  --primary-font: "Montserrat", sans-serif;
  --additional-font: "Montserrat Alternates", sans-serif;
  --button-gradient-start: #4a90e2;
  --button-gradient-end: #50e3c2;
  --header-bg: rgba(255, 255, 255, 0.2);
}

.blades {
  margin: 0 auto;
  padding: 60px 0;
  background: var(--light-background);
  font-family: var(--primary-font);
  color: var(--secondary-color);
}

.blades-section__inner {
  display: flex;
  gap: 20px;
}

.filters {
  flex: 0 0 300px;
  background: var(--header-bg);
  padding: 15px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  margin-bottom: 10px;
  font-family: var(--additional-font);
  color: var(--primary-color);
}

.filter-group label {
  display: block;
  cursor: pointer;
  padding: 5px 10px;
  transition: background 0.3s;
}

.filter-group label:hover {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}

.filter-group input[type="checkbox"] {
  margin-right: 10px;
}

input[type="range"],
input[type="number"] {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin: 5px 0;
  border: none;
  border-radius: 5px;
  color: var(--secondary-color);
  font-family: var(--primary-font);
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

input[type="range"]:focus,
input[type="number"]:focus {
  outline: none;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

input[type="number"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#angle-value {
  margin-left: 10px;
  color: var(--primary-color);
  font-weight: bold;
}

.blades-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 0;
  height: fit-content;
}

.blade-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  text-align: center;
  cursor: pointer;
  background: var(--header-bg);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.blade-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.blade-card h4 {
  font-weight: 600;
  margin-bottom: 15px;
}

.blade-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  width: 120px;
  margin: 0 auto;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.7);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 90%;
  max-width: 1000px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.modal-images {
  display: flex;
  align-items: center;
  gap: 20px;
}

.blade-image img {
  width: 290px;
  height: auto;
  border-radius: 5px;
}

#blade-materials p {
  font-weight: 400;
  margin-bottom: 10px;
}

#blade-materials h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
}

.assembly-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assembly-row {
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
}

.assembly-row img {
  width: 150px;
  height: 150px;
  border-radius: 5px;
  object-fit: cover;
}

.assembly-row p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--secondary-color);
}

.tech-info {
  margin-top: 20px;
}

.tech-info p {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.tech-info p span {
  font-size: 1.1rem;
  font-weight: 400;
}

.close {
  color: var(--secondary-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  position: absolute;
}

.close:hover,
.close:focus {
  color: var(--primary-color);
  text-decoration: none;
}

/* тест осевые графики */
.aero {
  margin: 0 auto;
  padding: 3rem 0 6rem;
  background-color: #f5f5f5;
  color: #2c3e50;
  line-height: 1.6;
}

.aero__title {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

.aero__title::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #4a90e2, #50e3c2);
  border-radius: 2px;
}

.specs-container {
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
}

.aero__descr {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.sizes-column,
.graph-column {
  padding: 32px;
  background: #fafafa;
  border-right: 1px solid #eaeaea;
}

.graph-column {
  width: 100%;
}

.sizes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.size-item {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  color: #4a6cf7;
}

.size-item.active {
  background: linear-gradient(90deg, #4a90e2, #50e3c2);
  color: white;
  border: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(74, 108, 247, 0.3);
}

.graph-placeholder {
  height: 100%;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.graph-placeholder canvas {
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-graph-text {
  font-size: 1.2em;
  color: #666;
  text-align: center;
}

.graph-placeholder img {
  max-width: 95%;
  max-height: 95%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: none;
}

.graph-placeholder img.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@media (prefers-color-scheme: dark) {
  .graph-placeholder canvas {
    background-color: #2a2a2a;
  }

  .no-graph-text {
    color: #ccc;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.no-graph-text {
  color: #888;
  font-size: 18px;
  font-style: italic;
}

@media (max-width: 1200px) {
  .blades-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .filters {
    flex: 0 0 250px;
  }
}

@media (max-width: 992px) {
  .blades-section__inner {
    flex-direction: column;
  }

  .filters {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .filter-group h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
  }

  .filter-group label {
    flex: 1 1 120px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .filter-group label:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .filter-group input[type="checkbox"] {
    transform: scale(1.2);
  }

  .blades-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
  }

  .blade-card {
    padding: 12px;
  }

  .blade-card img {
    width: 100px;
  }

  .blade-card h4 {
    font-size: 1rem;
  }
}

@media (max-width: 899px) {
  .sizes-column,
  .graph-column {
    padding: 24px 16px;
  }
  .sizes-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .specs-header {
    font-size: 24px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .blades {
    padding: 40px 0;
  }

  .video-modal__content {
    padding: 0;
  }

  .blades-section__inner {
    display: block;
    padding: 0 15px;
  }
  .filter-group {
    flex-direction: column;
  }

  .filter-group label {
    flex: none;
    font-size: 1rem;
  }

  .blades-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }

  .blade-card {
    padding: 10px;
  }

  .blade-card img {
    width: 90px;
    margin-bottom: 10px;
  }

  .blade-card h4 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  /* Модальное окно */
  .modal-content {
    margin: 10% auto;
    padding: 15px;
    width: 95%;
    max-width: 400px;
    border-radius: 12px;
    max-height: 85vh;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .modal-images {
    flex-direction: column;
    align-items: center;
  }

  .blade-image img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 15px;
  }

  .assembly-images {
    display: none;
  }

  .assembly-row {
    flex-direction: column;
    align-items: center;
  }

  .assembly-row img {
    width: 120px;
    height: 120px;
    margin-bottom: 8px;
  }

  .assembly-row p {
    font-size: 11px;
    text-align: center;
  }

  .tech-info p {
    font-size: 0.9rem;
  }

  .tech-info p span {
    font-size: 1rem;
  }

  .close {
    font-size: 32px;
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .blades-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .blade-card {
    padding: 8px;
  }

  .blade-card img {
    width: 70px;
  }

  .blade-card h4 {
    font-size: 0.85rem;
  }

  .filter-group label {
    font-size: 0.9rem;
    padding: 8px;
  }

  .modal-content {
    margin: 5% auto;
    padding: 12px;
    max-height: 90vh;
  }

  .modal-content h2 {
    font-size: 1.3rem;
  }

  .tech-info p {
    font-size: 0.85rem;
  }

  .tech-info p span {
    font-size: 0.95rem;
  }

  .aero {
    padding-bottom: 3rem;
  }

  .aero__title {
    font-size: 1.5rem;
  }

  .specs-container {
    display: block;
  }
}
