* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin-bottom: 0px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: -webkit-linear-gradient(90deg, #f8f8f8, #f9f9f9);
    background: linear-gradient(90deg, #f8f8f8, #f9f9f9);
}
.error { color:#FF0000;
display:block;

font-size:14px;
padding-bottom: 3px;}

input.error { border:#FF0000 1px solid;}
input.valid { border: #00CC66 1px solid;}

select.error { border:#FF0000 1px solid;}
select.valid { border: #00CC66 1px solid;}

.content-block {
    width: 70%;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 0 16px 32px 16px;
}
.content-block a {
    width: max-content;
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #0056b3;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.content-block a:hover {
    background: #00408a;
}

.notice {
    position: fixed;
    max-width: calc(100% - 20px);
    width: max-content;
    top: 6px;
    right: 10px;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: show 0.4s ease, hide 0.4s ease 4s forwards;
}
.notice-ok {
    background: #249a55;
}
.notice-error {
    background: #c61812;
}
@keyframes show {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Анимация исчезновения */
@keyframes hide {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.live-search {
    background-color: yellow;
}
.live-search-m-a {
    background-color: yellow;
    color: #000000;
}

.header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 60px;
    width: 70%;
    margin: 0 auto;
    align-items: center;
    background-color: #ffffff;
    padding: 0 20px;
    border-bottom: 1px dotted #cccccc;
    grid-template-areas: "logo2 radius2 auth-reg2" ;
}

.logo {
    grid-area: logo2;
}
.logo img {
    max-height: 40px;
}
.radius {
    grid-area: radius2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.radius a {
    margin-left: 2px;
    color: #02284f;
    font-size: 15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    transition: all 0.3s;
}
.radius a:hover {
    color: #166fc7;
}
.radius img {
    max-height: 24px;
}
.auth-reg {
    grid-area: auth-reg2;
    justify-content: end;
    display: flex;
    column-gap: 15px;
    align-items: center;
}
.auth-reg div {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 4px;
}
.auth-reg div img {
    max-height: 22px;
}
.auth-reg div a {
    color: #02284f;
    font-size: 14px;
}
.auth-reg div a:hover {
    color: #166fc7;
    font-size: 14px;
}

.title {
    margin: 0 auto;
    width: 70%;
    display: block;
    background-color: #ffffff;
    padding: 10px 16px;
    color: #151515;
    font-size: 18px;
    font-weight: bold;
}

.types {
    display: flex;
    width: 70%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    justify-content: center;
    text-align: center;
    column-gap: 50px;
}
.types a {
    padding: 30px;
    border: #02284f solid 1px;
    box-shadow: 0 0 8px rgba(2, 40, 79, 0.3);
    color: #02284f;
    border-radius: 7px;
    font-size: 20px;
    font-weight: bolder;
    flex: 1 ;
    max-width: 250px;
    transition: all 0.3s;
}
.types a:hover {
    border: #166fc7 solid 1px;
    color: #166fc7;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.brands {
    display: grid;
    width: 70%;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    background-color: #ffffff;
    gap: 16px;
    padding: 16px;
    margin: 0 auto;
}
.brands-item {
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    color: #000000d3;
    transition: transform 0.3s, box-shadow 0.2s;
}
.brands-item:hover {
    color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.brands-img {
    width: 100%;
    aspect-ratio: 4 / 1.5; /* сохраняем пропорции */
    overflow: hidden;
    display: flex;
    align-items: center;  
    justify-content: center;
}
.brands-img img {
    width: 70%;
}
.brands-name {
    padding: 0px 10px 10px 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    /* обрезка длинного текста */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.models {
    display: grid;
    width: 70%;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    background-color: #ffffff;
    gap: 16px;
    padding: 16px;
    margin: 0 auto;
}
.models-item {
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    color: #000000d3;
    transition: transform 0.3s, box-shadow 0.2s;
}
.models-item:hover {
    color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.models-img {
    width: 100%;
    aspect-ratio: 4 / 2; /* сохраняем пропорции */
    overflow: hidden;
    display: flex;
    align-items: center;  
    justify-content: center;
}
.models-img img {
    height: 60px;
}
.models-name {
    padding: 0px 10px 10px 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    /* обрезка длинного текста */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.details {
    display: grid;
    width: 70%;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    background-color: #ffffff;
    gap: 16px;
    padding: 16px;
    margin: 0 auto;
}
.details-item {
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    color: #000000d3;
    transition: transform 0.3s, box-shadow 0.2s;
}
.details-item:hover {
    color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.details-img {
    width: 100%;
    aspect-ratio: 4 / 3; /* сохраняем пропорции */
    overflow: hidden;
    display: flex;
    align-items: center;  
    justify-content: center;
}
.details-img img {
    width: 50%;
}
.details-name {
    padding: 0px 10px 10px 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    /* обрезка длинного текста */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loading {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 10000;
}
.loading img {
    width: 64px;
    height: 64px;
}
.anchor {
    display: flex;
    width: 0;
    height: 0;
    opacity: 1;
    position: absolute;
    z-index: -1;
}
.anchor:target {
    width: 70%;
    height: 100vh;
    min-height: 100vh;
    background-color: #ffffff;
    left: 50%;
    transform: translateX(-50%);
}


.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 70%;
    margin: 0 auto 20px auto;
    padding: 0 16px;
}
.filters-item {
    flex-direction: row;
}
.filters-name {
    display: flex;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    color: #121212;
    margin-bottom: 3px;
}
.filters-meanings-block {
    display: flex;
    gap: 9px;
}
.filters-meanings {
    border:#a8a8a8 1px solid;
    border-radius: 4px;
    padding:4px 14px 4px 14px;
    color:#3c3c3c;
    font-size:14px;
    transition: all 0.3s;
}
.filters-meanings:hover {
    color:#000000;
    border-color:#000000;
}
.filters-meanings-change {
    padding:4px 14px 4px 14px;
    border-radius: 4px;
    font-size:14px;
    border:#000000 2px solid;
    color:#000000;
}
.filters-clear {
    display: block;
    width: 70%;
    margin: 0 auto;
    padding: 7px 16px;
}
.filters-clear a {
    color: #ff0000;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.25s;
}
.filters-clear a:hover {
    color: #cc0707;
    cursor: pointer;
}
.filters-radiobutton { display:none;}
.filters-radiobutton[type="radio"]:checked + label { border:#000000 1px solid;
border-radius: 4px;
color:#000000;
background-color: #efeff2;
padding:4px 14px 4px 14px;
font-size:14px;}
.filters-radiobutton-label {
    border:#dad8d8 1px solid;
    border-radius: 4px;
    color:#565656;
    font-size: 14px;
    padding:4px 14px 4px 14px;
}
.filters-radiobutton-label:hover { 
    color:#000000;
    border-color:#000000;
    cursor:pointer;
}


.a {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 70%;
    padding: 0 16px;
    margin: 0 auto 16px auto;
    gap: 16px;
    background-color: #ffffff;
    /*min-height: 200px;*/
}
.a-item {
    display: grid;
    grid-template-rows: auto 1fr 1fr auto auto auto;
    border:#d8d8d8 1px solid;
    border-radius: 4px;
    padding: 4px 7px;
    
    -webkit-box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
    -moz-box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
    box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
}
.a-item:hover { 
    border:#acaaaa 1px solid;
    transition: 0.2s;

    -webkit-box-shadow: 0px 0px 15px 10px rgba(34, 60, 80, 0.05);
    -moz-box-shadow: 0px 0px 10px 15px rgba(34, 60, 80, 0.05);
    box-shadow: 0px 0px 20px 5px rgba(34, 60, 80, 0.05);
}
.a-name-type {
    display: grid;
    grid-template-columns: 1fr auto;
    background: linear-gradient(to bottom, #022850, #003e81);
    color: #ffffff;
    font-size: 14px;
    margin: -4px -8px 4px -8px;
    padding: 4px 7px;
    border-radius: 4px 4px 0px 0px;
}
.a-name {}
.a-type {}
.a-type div {
    border: solid 1px #282828;
    background: linear-gradient(to bottom, #0466cf, #075fbe);
    padding: 5px 7px;
    margin-top: 0px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.2;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.a-pr-price {
    display: grid;
    grid-template-columns: 1fr auto;
}
.a-pr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0px 12px;
}
.a-no-pr { 
    color:#979696;
    font-size:13px;
    font-style:italic;
    font-family:Verdana, Arial, Helvetica, sans-serif;
}
.a-pr-name {
    font-weight: bold;
}
.a-price {
    color: #166fc7;
    font-weight: bold;
    font-size: 15px;
}
.a-descr {
    font-size:13px;
    font-style:italic;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    padding: 6px 0px 10px 0px;
}
.a-no-descr { color:#979696;
    font-size:13px;
    font-style:italic;
    font-family:Verdana, Arial, Helvetica, sans-serif;
}
.a-user-location {
    display: flex;
    align-items: center;
    padding: 3px 0px;
    color: #353535;
    font-size: 13px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.2;
}
.a-user-location img {
    width: 18px;
    margin-top: -4px;
    margin-right: 7px;
}
.a-contacts {
    display: flex;
    gap: 10px;
    padding-top: 6px;
    justify-content: center;
}
.a-desktop-close {
    display: none;
}
.a-viewphone {
    display: block;
}
.a-btn {
  display: inline-block;
  padding: 4px 20px;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.a-btn-blue {
    background-color: #007bff; 
    color: #ffffff;
}
.a-btn-blue:hover {
  background-color: #0056b3;
}

.a-btn-blue:active {
  background-color: #00408a;
}
.a-btn-blue:active {
  background-color: #00408a;
}
.a-btn-green {
    background-color: #28a745; /* синий */
    color: #ffffff;
}
.a-btn-green:hover {
  background-color: #0f7a48;
}
.a-btn-green:active {
  background-color: #0f7a48;
}


.radius-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    width: 70%;
    margin: 0 auto;
    padding: 0px 16px;
    background-color: #ffffff;
    padding-bottom: 20px;
}
.radius-block {
    display: flex;
    flex-direction: column;
    order:#d8d8d8 1px solid;
    border-radius: 4px;
    padding-bottom: 7px;
    -webkit-box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
    -moz-box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
    box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
}
.radius-alphabet {
    color: #5f5f5f;
    font-size: 28px;
    font-weight: bold;
    font-style: italic;
    padding: 4px 10px;
}
.radius-name {
    padding: 2px 10px;
}

.radius-name a {
    color: #166fc7;
}
.radius-name a:hover {
    color: #02284f;
}


.auth-block {
    width: 70%;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 70px 0;
    height: auto;
}
.auth-container {
    width: 320px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;

    -webkit-box-shadow: 0px 0px 15px 5px rgba(34, 60, 80, 0.05);
    -moz-box-shadow: 0px 0px 15px 5px rgba(34, 60, 80, 0.05);
    box-shadow: 0px 0px 15px 5px rgba(34, 60, 80, 0.05);
}
.auth-container .title {
    text-align: center;
}
.auth-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}
.auth-container input[type="tel"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 16px;
}
.auth-container input[type="tel"]:focus,
.auth-container input[type="password"]:focus {
    outline: none;
}
.auth-container .remember {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
    font-size: 14px;
}
.auth-container button {
    width: 100%;
    padding: 10px;
    background: #0056b3;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.auth-container button:hover {
    background: #00408a;
}
.auth-container .links {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.auth-container .links a {
    text-decoration: none;
    color: #166fc7;
}
.auth-container .links a:hover {
	color: #02284f;
}

.register-container {
    width: 70%;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 0 16px;
}
.register-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}
.register-container input[type="text"],
.register-container input[type="tel"] {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}
.register-container textarea {
    width: 100%;
    height: 100px;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}
.register-container input[type="text"]:focus,
.register-container input[type="tel"]:focus,
.register-container textarea {
    outline: none;
}
.register-container button {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background: #0056b3;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.register-container button:hover {
    background: #00408a;
}
.register-container .rules {
    width: 100%;
    max-width: 400px;
    font-size: 14px;
    color: #4e4e4e;
    margin-bottom: 20px;
    text-align: justify;
}

.auth-data {
    width: 100%;
    margin: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px calc(15% + 16px);
    background: linear-gradient(to bottom, #022850, #003e81);
    color: #ffffff;
    font-size: 14px;
}
.auth-data div {
    display: flex;
    gap: 0px 16px;
}
.auth-data a {
    color: #ffffff;
}
.auth-data a:hover {
    color: #f0efef;
}
.auth-data-new-ad {
    background: linear-gradient(to bottom, #0466cf, #075fbe);
    padding: 4px 15px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: all 0.3s;
}
.auth-data-new-ad:hover {
    background: linear-gradient(to bottom, #1269c6, #0e5caf);
}

.new-ad-types {
    display: flex;
    width: 70%;
    margin: -20px auto 0 auto;
	padding: 0px 16px 32px 16px;
    background-color: #ffffff;
	text-align:center;
	gap: 15px;
}
.new-ad-types a {
	width: 100%;
	max-width: 180px;
	border:#a8a8a8 1px solid;
    border-radius: 4px;
    padding:4px 14px 4px 14px;
    color:#3c3c3c;
    font-size:14px;
    transition: all 0.3s;
}
.new-ad-types a:hover {
	color:#000000;
    border-color:#000000;
}


.auth-data-mobile {
    display: none;
}

.m-a-block {
    width: 70%;
    margin: 0 auto;
    padding: 0 16px;
    background-color: #ffffff;
}
.m-a-search {
    width: 100%;
    max-width: 300px;
    padding: 4px 7px;
    margin-bottom: 12px;
    font-size: 13px;
}
.m-a-search:focus {
    outline: none;
}
.m-a-no-results {
    font-size: 14px;
    color: #888888;
    padding-bottom: 16px;
}
.m-a {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 70%;
    margin: 0 auto 16px auto;
    background-color: #ffffff;
    padding: 0 16px;
    gap: 16px;
}
.m-a-item {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    border:#d8d8d8 1px solid;
    border-radius: 4px;
    
    
    -webkit-box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
    -moz-box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
    box-shadow: 0px 0px 10px 3px rgba(34, 60, 80, 0.05);
}
.m-a-item:hover { 
    border:#acaaaa 1px solid;
    transition: 0.2s;

    -webkit-box-shadow: 0px 0px 15px 10px rgba(34, 60, 80, 0.05);
    -moz-box-shadow: 0px 0px 10px 15px rgba(34, 60, 80, 0.05);
    box-shadow: 0px 0px 20px 5px rgba(34, 60, 80, 0.05);
}

.m-a-name-type {
    display: grid;
    grid-template-columns: 1fr auto;
    background: linear-gradient(to bottom, #022850, #003e81);
    color: #ffffff;
    margin: 0 -1px;
    font-size: 14px;
    padding: 4px 7px;
    border-radius: 4px 4px 0px 0px;
}
.m-a-name {}
.m-a-type {}
.m-a-type div {
    border: solid 1px #282828;
    background: linear-gradient(to bottom, #0466cf, #075fbe);
    padding: 5px 7px;
    margin-top: 0px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.2;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.m-a-pr-price {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 4px 7px 7px 7px;
}
.m-a-pr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0px 12px;
}
.m-a-pr-name {
    font-weight: bold;
}
.m-a-price {
    color: #166fc7;
    font-weight: bold;
    font-size: 15px;
}
.m-a-descr {
    font-size:13px;
    font-style:italic;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    padding: 0px 7px 8px 7px;
}
.m-a-no-descr { 
    color:#979696;
    font-size:13px;
    font-style:italic;
    font-family:Verdana, Arial, Helvetica, sans-serif;
}
.m-a-date-action {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 7px 7px 7px 7px;
    border-top: 1px dotted #cccccc;
    font-size: 11px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.m-a-date {
    width: auto;
    white-space: nowrap;
}
.m-a-status {
    padding: 5px 8px 7px 8px;
    font-size: 11px;
}
.m-a-status-span {
    padding: 2px 7px 2px 7px;
    border-radius: 4px;
}
.m-a-status-span-0 {
    border: #c99d0e 1px solid;
    background-color: #b78e07;
    color: #ffffff;
}
.m-a-status-span-1 {
    border: #059330 1px solid;
    background-color: #009238;
    color: #ffffff;
}
.m-a-status-span-2 {
    border: #5f005c 1px solid;
    background-color: #73006f;
    color: #f0f0f0;
}
.m-a-status-span-3 {
    border: #cccccc 1px solid;
    background-color: #f5f5f5;
    color: #040404;
}
.m-a-status-span-4 {
    border: #d10e0e 1px solid;
    background-color: #ff0000;
    color: #FFFFFF;
}
.m-a-action {
    width: auto;
    white-space: nowrap;
}
.m-a-action a {
    color: #ff0000;
    font-weight: bold;
    transition: 0.3s;
}
.m-a-action a:hover {
    color: #d21414;
}
.m-a-search {
    
}
.m-a-extend {
    padding-left: 5px;
    font-size: 12px;
    font-weight: bold;
}
.m-a-extend a {
color: #166fc7;
}
.m-a-extend a:hover {
    color: #02284f;
}
.m-a-extend-status-0 {
    display: none;
}
.m-a-extend-status-1 {
    display: none;
}
.m-a-extend-status-4 {
    display: none;
}
.m-a-extend-ok {
    font-size: 12px;
    font-weight: bold;
}

.profile-block {
    width: 70%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background-color: #ffffff;
    padding: 0px 8px 32px 8px;
    gap: 12px;       /* расстояние между карточками */
}

.profile-block-item {
    padding: 12px 8px 0px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    height: auto; /* одинаковая высота карточек */
    display: flex;
    flex-direction: column;
}

.profile-title {
    font-weight: 500;
    color: #777;
    margin-bottom: 6px;
}

.profile-value {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.profile-edit {
    margin-top: auto; /* ключевой момент */
    align-self: flex-start; /* ссылка слева */
    padding: 0px 0px 10px 0px;
    color: #3B82F6;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold ;
    font-size: 14px;
    transition: all 0.3s;
}
.profile-edit:hover {
    color: #124ac2;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: start;
    justify-content: center;
    z-index: 1000;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    margin: 16px 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    position: relative;
}
.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 22px;
    cursor: pointer;
}
.modal-title {
    display: block;
    background-color: #ffffff;
    padding: 0px 0px 10px 0px;
    color: #151515;
    font-size: 18px;
    font-weight: bold;
}
.modal-input {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}
.modal-input:focus {
    outline: none;
}
.modal button {
    width: 100%;
    max-width: 180px;
    padding: 10px;
    background: #0056b3;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.modal button:hover {
    background: #00408a;
}



@media (max-width:1200px) {
    .header {
        width: 80%;
    }
    .content-block {
        width: 80%;
    }
    .anchor:target {
        width: 80%;
    }
    .title {
        width: 80%;
    }
    .auth-data {
        padding: 10px calc(10% + 16px);
    }
    .types {
        width: 80%;
    }
    .brands {
        width: 80%;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .models {
        width: 80%;
    }
    .details {
        width: 80%;
    }
    .filters {
        width: 80%;
    }
    .a {
        width: 80%;
        grid-template-columns: 1fr 1fr;
    }
    .auth-block {
        width: 80%;
    }
    .radius-view {
        width: 80%;
    }
    .m-a-block {
        width: 80%;
    }
    .register-container {
        width: 80%;;
    }
    .profile-block {
        width: 80%;
    }
    .m-a {
        width: 80%;
        grid-template-columns: 1fr 1fr;
    }
	.new-ad-types {
		width: 80%;
	}
}



@media (max-width:992px) {
    .header {
        width: 90%;
    }
    .content-block {
        width: 90%;
    }
    .anchor:target {
        width: 90%;
    }
    .title {
        width: 90%;
    }
    .auth-data {
        padding: 10px calc(5% + 16px);
    }
    .types {
        width: 90%;
    }
    .brands {
        width: 90%;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .models {
        width: 90%;
    }
    .details {
        width: 90%;
    }
    .filters {
        width: 90%;
    }
    .a {
        width: 90%;
        grid-template-columns: 1fr 1fr;
    }
    .auth-block {
        width: 90%;
    }
    .radius-view {
        width: 90%;
    }
    .m-a-block {
        width: 90%;
    }
    .register-container {
        width: 90%;;
    }
    .profile-block {
        width: 90%;
    }
    .m-a {
        width: 90%;
        grid-template-columns: 1fr 1fr;
    }
	.new-ad-types {
		width: 90%;
	}
}

@media (max-width:768px) { 

    .header {
        grid-template-areas: 
            "logo2 auth-reg2"
            "radius2 radius2" ;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 60px auto;
        height: auto;
        padding: 0px;
        width: 100%;
        margin: 0;
    }
    .content-block {
        width: 100%;
    }
    .logo {
        padding: 0 10px;
    }
    .radius {
        border-top: 1px dotted #cccccc;
        padding: 7px 10px;
    }
    .auth-reg {
        padding: 0 10px;
    }


    .anchor:target {
        width: 100%;
        margin: 0;
    }
    .types {
        width: 100%;
    }
    .title {
        width: 100%;
    }
    .brands {
        width: 100%;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .models {
        width: 100%;
    }
    .details {
        width: 100%;
    }
    .filters {
        width: 100%;
    }
    .a {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }
    .radius-view {
        margin: 0;
        width: 100%;
    }
    .auth-block {
        width: 100%;
        margin: 0 auto;
        padding: 70px 0;
    }
    .auth-data {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    .m-a-block {
        width: 100%;
    }
    .m-a {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .profile-block {
        width: 100%;
    }
	.new-ad-types {
		width: 100%;
	}

}

@media (max-width:576px) {
    body {
        margin-bottom: 76px;
    }
    .notice {
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        animation: show 0.4s ease forwards,
                   hide 0.4s ease 3s forwards;
    }
    @keyframes show {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        }
    @keyframes hide {
        to {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px);
        }
        }

    .header { 

    }
    .types {
        margin: 0;
    }
    .types a {
        padding: 15px 13px;
    }
    .title {
        margin: 0;
    }
    .brands {
        margin: 0;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .brands-name {
        font-size: 15px;
    }
    .models {
        margin: 0;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .models-name {
        font-size: 13px;
    }
    .models-img {
        aspect-ratio: 4 / 3; /* сохраняем пропорции */
    }
    .details {
        margin: 0;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .details-name {
        font-size: 13px;
    }
    .details-img {
        aspect-ratio: 4 / 3; /* сохраняем пропорции */
    }
    .filters {
        width: 100%;
        margin: 0;
    }
    .a {
        width: 100%;
        margin: 0;
        grid-template-columns: 1fr;
    }
    .a-desktop-close {
        display: block ;
    }
    .a-viewphone {
        display: none;
    }

    .anchor:target {
        width: 100%;
        margin: 0;
    }

    .logo img {
        width: 150px;
    }
    .radius {
        
    }
    .auth-reg div {
        flex-direction: column;
        column-gap: 4px;
    }
    .register-container {
        width: 100%;
        margin: 0 auto;
    }
    .auth-data {
        display: none;
    }

    .auth-data-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        width: 100%;
        height: 60px;
        align-items: center;
        background: linear-gradient(to bottom, #022850, #003e81);
        color: #ffffff;
        position: fixed;
        bottom: 0;
        left: 0;
    }
    .auth-data-mobile div {
        text-align: center;
    }
    .auth-data-mobile img {
        filter: brightness(0) invert(1);
        width: 30px;
    }
    .m-a-block {
        width: 100%;
        margin: 0;
    }
    .m-a {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 0;
    }
}

