:root {
  --blue: #113855; /* */
  --lightblue: #7a98ae;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    width: 100vw;
    overflow-x: hidden;
}

body,p,h1,h2,h3 {
  color: gray;
  font-family: fantasy;
}

p,a {
  margin: 10px 0;
}

p,a,ul,li {
  font-family: Arial;
  font-size: 1.0em;
}

a {
  color: gray;
  text-decoration: none;
}

a:hover {
  color: #9e6a8e;
}

h1 {
  font-size: 2.0em;
  margin: 20px 0;
  text-align: center;
  text-transform: uppercase;
}

h2 {
  font-size: 1.6em;
}

h2.modeltitle {
  text-transform: none;
}

h3 {
  font-size: 1.2em;
}

h2,h3 {
  margin: 0;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
}

img {
  width: -moz-available;
  width: -webkit-fill-available;
  margin: 10px;
  float: left;
}

button {
  width: -moz-available;
  width: -webkit-fill-available;
  background-color: lightgray;
  border-radius: 8px;
  float: left;
  margin: 10px;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.header {
  background-color: #113855;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section20,.section30,.section33,.section40,.section50,.section60,.section70,
.section80 {
  border-radius: 8px;
  float: left;
}

.section20 {
  width: 20%;
}

.section30 {
  width: 30%;
}

.section33 {
  width: 33.3333%;
}

.section40 {
  width: 40%;
}

.section50 {
  width: 50%;
}

.section60 {
  width: 60%;
}

.section70 {
  width: 70%;
}

.section80 {
  width: 80%;
}

/*Background*/
.lilacfon,.whitefon,.grayfon,.pinkfon,.lightgrayfon,.grayfon-light,.punktirfon,.beigefon,.lightbeigefon,
.greenfon,.opacityfon,.punktirfon-opacity-white,.punktirfon-opacity-lilac,
.pointfon {
  width: -moz-available;
  width: -webkit-fill-available;
  padding: 19px;
  margin: 10px;
  float: left;
  border-radius: 8px;
}

.transparentfon {
  width: -moz-available;
  width: -webkit-fill-available;
  background-color: #ffffff5c;
  float: left;
  margin: 0 10px;
  border-radius: 8px;
}

.opacityfon {
  background-color: #ffffff5c;
}

.whitefon {
  background-color: white;
}

.grayfon {
  background-color: #ddd;
}

.pointfon {
  background-image: url('/include/imgs/backgrounds/pointfon.png');
  background-repeat: repeat;
  border: 1px solid #e9e9e9;
}

.punktirfon {
  border: 2px dashed #c5c5c5;
  border-radius: 8px;
  background-color: #ffffff7a;
}

.punktirfon-opacity-white {
  border: 2px dashed #ffffff9c;
}

.punktirfon-opacity-lilac {
  border: 2px dashed #9e6a8e;
}

.lightgrayfon {
  background-color: whitesmoke;
}

.grayfon-light {
  background-color: #ececec;
}

.pinkfon {
  background-color: #eae2e8;
}

.lilacfon {
  background-color: #9e6a8e;
}

.beigefon {
  background-color: #f4dab196; /* #f4dab1 */;
}

.lightbeigefon {
  background-color: #eee6d7; /* #ffffff82 */
}

.greenfon {
  background-color: #b2d0482e;
}

.align-center {
  text-align: center;
}

/* Баннер успешной регистрации */
.success-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(46, 204, 113, 0.95);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.banner-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}

/* Форма регистрации */
.registration-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-hint {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 5px;
    display: block;
}

.input-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.input-success {
    color: #2ecc71;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-button {
    width: 100%;
    padding: 14px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.form-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.form-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.verification-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    display: none;
}

.verification-code-group {
    display: flex;
    gap: 10px;
}

.verification-input {
    flex: 1;
}

.send-code-button {
    white-space: nowrap;
    padding: 0 20px;
}

.timer-text {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Страница профиля */
.profile-page {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--blue), #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.profile-email {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Верхняя навигационная панель с логотипом и навигацией */
.top-nav {
    background-color: #2c3e50;
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.top-nav-container {
    width: -moz-available;
    max-width: 1800px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.site-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-title-description {
    display: flex;
    flex-direction: column;
}

.site-title {
    color: #ecf0f1;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-description {
    color: #bdc3c7;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #7a98ae;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.registration-link {
    color: var(--lightblue);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid var(--lightblue);
    background-color: #ffffff0f;
}

.registration-link:hover {
  background-color: rgb(255, 255, 255);
  border-color: var(--blue);
  color: var(--blue);
}

.profile-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    padding: 11px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-icon {
    width: 20px;
    height: 20px;
    fill: #ecf0f1;
}

/* Основной контент */
.container {
  margin: 0 auto;
  padding: 40px 20px;
}

/* Секция новинок */
.new-models-section {
    margin-bottom: 20px;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    position: relative;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    position: relative;
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--blue);
    border-radius: 3px;
}

.models-count {
    color: #2ecc71;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.models-count::before {
    content: '+';
    font-size: 1.4rem;
    font-weight: 800;
}

/* Слайдер с перетаскиванием */
.slider-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 12px;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: grab;
    user-select: none;
}

.slider-container:active {
    cursor: grabbing;
}

.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(10% - 0.1px);
  gap: 20px;
  transition: transform 0.5s ease;
  width: max-content;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.slider-container:hover .slider-nav {
    opacity: 1;
    visibility: visible;
}

.slider-nav:hover {
    background: var(--blue);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:hover .nav-arrow {
    fill: white;
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

.nav-arrow {
    width: 20px;
    height: 20px;
    fill: #2c3e50;
    transition: fill 0.3s;
}

/* Карточки товаров с эффектом глаза */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Эффект глаза при наведении */
.eye-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
    pointer-events: none;
}

.product-card:hover .eye-overlay {
    opacity: 1;
}

.eye-icon {
    width: 50px;
    height: 50px;
    fill: var(--blue);
    animation: eyePulse 1.5s infinite;
}

@keyframes eyePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Бейдж NEW для новинок */
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2ecc71;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 0.9rem;
    border-radius: 8px;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 180px);
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--blue);
    flex: 0 0 auto;
}

.product-manufacturer {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex: 0 0 auto;
}

.manufacturer-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.manufacturer-icon {
    width: 16px;
    height: 16px;
    fill: #7f8c8d;
}

.max-version {
    font-size: 0.85rem;
    color: #95a5a6;
    position: relative;
}

.max-version-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 10;
}

.max-version-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 5px solid transparent;
    border-top-color: #2c3e50;
}

.max-version:hover .max-version-tooltip {
    opacity: 1;
    visibility: visible;
}

.manufacturer-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 10;
}

.manufacturer-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    border: 5px solid transparent;
    border-top-color: #2c3e50;
}

.manufacturer-info:hover .manufacturer-tooltip {
    opacity: 1;
    visibility: visible;
}

.grayfon {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-top: auto;
    border: 1px solid #eaeaea;
    flex: 0 0 auto;
}

.file-info {
    display: flex;
    gap: 12px;
    color: #5d6d7e;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.author-icon {
    width: 16px;
    height: 16px;
    fill: var(--blue);
}

.author-link {
    color: #5997c5;
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

.author-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 10;
}

.author-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
}

.author-info:hover .author-tooltip {
    opacity: 1;
    visibility: visible;
}

.download-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s;
}

.download-link:hover {
    text-decoration: underline;
    transform: scale(1.1);
}

/* Секция категорий - 6 карточек в строке, несколько строк */
.categories-section {
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    position: relative;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 320px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Эффект глаза для карточек категорий */
.category-eye-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
    pointer-events: none;
}

.category-card:hover .category-eye-overlay {
    opacity: 1;
}

.category-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex: 0 0 180px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.category-folder-icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.category-title-wrapper {
    flex: 1;
}

.category-title {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.category-count {
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.category-description {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
}

.close-modal {
    color: #95a5a6;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #2c3e50;
}

.modal-body {
    padding: 25px;
}

.modal-info {
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.modal-info-item {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

.modal-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-info-label {
    font-weight: 600;
    color: #2c3e50;
}

.modal-description {
    margin: 25px 0;
    line-height: 1.6;
    color: #5d6d7e;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.download-btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.download-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.archive-info {
    text-align: center;
    color: #95a5a6;
    font-size: 0.85rem;
}

/* Адаптивность */
@media (max-width: 1800px) {
    .slider {
        grid-auto-columns: calc(16.666% - 16.66px);
    }
}

@media (max-width: 1600px) {
    .slider {
        grid-auto-columns: calc(16.666% - 16.66px);
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1400px) {
    .slider {
        grid-auto-columns: calc(25% - 15px); /* 4 карточки в строке */
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .slider {
        grid-auto-columns: calc(33.333% - 13.33px); /* 3 карточки в строке */
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .top-nav-container {
        flex-direction: column;
        gap: 25px;
    }

    .site-branding {
        min-width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 15px;
    }

    .nav-section {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px) {
    .slider {
        grid-auto-columns: calc(33.333% - 13.33px);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        gap: 20px;
    }

    .product-card {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
  .registration-form {
      padding: 30px 20px;
  }

  .profile-header {
      flex-direction: column;
      text-align: center;
      padding: 30px 20px;
  }

  .profile-stats {
      justify-content: center;
      flex-wrap: wrap;
  }

  .banner-content {
      flex-direction: column;
      gap: 15px;
  }

    .container {
        padding: 30px 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .user-profile {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .slider {
        grid-auto-columns: calc(50% - 10px); /* 2 карточки в строке */
    }

    .slider-nav.prev {
        left: -15px;
    }

    .slider-nav.next {
        right: -15px;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-description {
        font-size: 0.85rem;
        max-width: 250px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .models-count {
        font-size: 1.3rem;
    }

    .product-card {
        min-height: 340px;
    }

    .category-card {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .slider {
        grid-auto-columns: calc(50% - 8px);
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }

    .nav-arrow {
        width: 16px;
        height: 16px;
    }

    .product-card {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
  .verification-code-group {
      flex-direction: column;
  }

  .send-code-button {
      width: 100%;
      padding: 12px;
  }

    .top-nav-container {
        padding: 0 15px;
    }

    .nav-links {
        gap: 10px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .slider {
        grid-auto-columns: calc(100% - 5px); /* 1 карточка в строке */
    }

    .models-count {
        font-size: 1.2rem;
    }

    .category-card {
        height: 280px;
    }

    .category-image-container {
        height: 160px;
        flex: 0 0 160px;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-count {
        font-size: 0.8rem;
    }
}
