* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Monda", sans-serif;
}

a {
    text-decoration: none;
}

.turquoise {
    color: #1a7f7f;
}

.grey {
    background-color: rgb(211, 211, 211);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav_up {
    height: 80px;
    width: 100%;
    background-color: #1a7f7f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    border-bottom: solid 3px #D8A827;
    position: relative;
    z-index: 100;
}

.nav_left {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo_name {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
    gap: 15px;
    height: 100%;
}

.logo_name img {
    width: 60px;
    height: 50px;
    object-fit: contain;
}

.nav_right {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.nav-link {
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link i {
    font-size: 16px;
}

.map {
    display: flex;
    align-items: center;
    color: white;
    font-size: 18px;
    gap: 8px;
}

.map img {
    width: 24px;
    height: 24px;
}

.auth_btn {
    background-color: #D8A827;
    color: #1a7f7f;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
}

.auth_btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #D8A827;
    padding: 5px 5px 5px 15px;
    border-radius: 25px;
    height: 45px;
}

.user-info span {
    color: #1a7f7f;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.nav_down {
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 99;
}

.nav_down ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav_down ul li a {
    color: #1a7f7f;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
    text-decoration: none;
}

.nav_down ul li a:hover {
    color: #D8A827;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 24px;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    height: 45px;
    line-height: 1;
    margin-left: auto;
}

main {
    min-height: calc(100vh - 250px);
    padding: 30px 0;
}

.osnova {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 50px;
    margin-top: 50px;
}

.bar_left {
    background-color: #1a7f7f;
    width: 265px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    padding: 20px 0;
}

.bar_left h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 24px;
}

.bar_left ul {
    color: white;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    list-style-type: none;
    font-size: 18px;
    width: 100%;
    padding-left: 40px;
}

.bar_left ul li {
    margin: 10px 0;
}

.main_info img {
    width: 100%;
    max-width: 1119px;
    height: auto;
    border-radius: 20px;
    margin-top: 20px;
}

.main_text {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 50px;
}

.zagalovok {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.textik {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.textik img {
    width: 60%;
    max-width: 960px;
    height: auto;
    border-radius: 20px;
}

.textik p {
    width: 40%;
    font-size: 18px;
    line-height: 1.6;
}

.big_but {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

#zayava {
    width: 600px;
    height: 100px;
    border-radius: 20px;
    background-color: #D8A827;
    color: #1a7f7f;
    font-size: 30px;
    border: 3px solid #1a7f7f;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

#zayava:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

footer {
    height: 100px;
    width: 100%;
    background-color: #1a7f7f;
    color: #D8A827;
    display: flex;
    align-items: center;
    padding-left: 50px;
}

footer p {
    font-size: 16px;
    line-height: 1.5;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
    padding: 20px;
}

.auth-box {
    background-color: white;
    padding: 50px;
    border-radius: 20px;
    border: 3px solid #1a7f7f;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-box h1 {
    color: #1a7f7f;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    padding: 15px;
    border: 2px solid #1a7f7f;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #D8A827;
}

.auth-form button {
    background-color: #1a7f7f;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: 100%;
}

.auth-form button:hover {
    background-color: #146666;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #1a7f7f;
    font-size: 16px;
}

.auth-link a {
    color: #D8A827;
    font-weight: bold;
    text-decoration: underline;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #c62828;
    font-size: 16px;
    display: none;
}

.success-message {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #2e7d32;
    font-size: 16px;
    display: none;
}

.profile_block {
    background-color: white;
    width: 100%;
    max-width: 1550px;
    height: 650px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    border: 3px solid #1a7f7f;
    overflow: hidden;
    margin: 20px 0;
}

.left_half {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.avatar_phone {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.avatar_phone img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a7f7f;
}

.avatar_phone p {
    font-size: 28px;
    color: #1a7f7f;
    font-weight: bold;
}

.data {
    display: flex;
    gap: 50px;
    font-size: 22px;
}

.data_name {
    color: #6d6d6d;
}

.data_info {
    color: #1a7f7f;
    font-weight: bold;
}

.data p {
    margin-bottom: 15px;
}

.right_half {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 40px;
}

.right_half a {
    color: #1a7f7f;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s;
}

.right_half a:hover {
    color: #D8A827;
}

.art {
    background: url('img/mashinka.png') no-repeat center;
    background-size: contain;
    width: 100%;
    height: 300px;
}

.block_name {
    text-align: left;
    margin-top: 25px;
    font-size: 30px;
    color: #1a7f7f;
}

.skibidi_perehod {
    font-size: 24px;
    color: #1a7f7f;
    margin: 35px 0;
    display: inline-block;
    transition: color 0.3s;
}

.skibidi_perehod:hover {
    color: #D8A827;
}

.list_block {
    width: 100%;
    max-width: 1350px;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
}

.list_block::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.list_block.scrollable::after {
    opacity: 1;
}

table {
    width: 100%;
    background-color: white;
    border: 2px solid #1a7f7f;
    border-radius: 20px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

thead tr {
    background-color: #1a7f7f;
    color: white;
}

th {
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #1a7f7f;
    font-size: 18px;
}

tr:last-child td {
    border-bottom: none;
}

th:first-child {
    border-radius: 18px 0 0 0;
}

th:last-child {
    border-radius: 0 18px 0 0;
}

.application-form {
    background-color: white;
    padding: 50px;
    border-radius: 20px;
    border: 3px solid #1a7f7f;
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
}

.application-form h2 {
    color: #1a7f7f;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #1a7f7f;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 18px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #1a7f7f;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #D8A827;
}

.submit-btn {
    background-color: #1a7f7f;
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #146666;
}

.status-new {
    color: #1a7f7f;
    font-weight: bold;
}

.status-completed {
    color: #2e7d32;
    font-weight: bold;
}

.status-cancelled {
    color: #c62828;
    font-weight: bold;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

.status-new-badge {
    background: #ffd700;
    color: #000;
}

.status-progress {
    background: #2196F3;
    color: white;
}

.status-completed-badge {
    background: #4CAF50;
    color: white;
}

.status-cancelled-badge {
    background: #f44336;
    color: white;
}

.brands-section {
    padding: 50px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #1a7f7f;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.brand-card {
    background: white;
    border: 2px solid #1a7f7f;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s;
    text-align: center;
}

.brand-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(26,127,127,0.3);
}

.brand-card h3 {
    color: #1a7f7f;
    margin-bottom: 10px;
    font-size: 20px;
}

.brand-card p {
    color: #666;
    font-size: 14px;
}

@media screen and (max-width: 1400px) {
    .osnova {
        flex-direction: column;
        align-items: center;
    }
    
    .bar_left {
        width: 90%;
        height: auto;
        margin: 10px 0;
    }
    
    .textik {
        flex-direction: column;
    }
    
    .textik img,
    .textik p {
        width: 100%;
    }
    
    .profile_block {
        flex-direction: column;
        height: auto;
    }
    
    .left_half,
    .right_half {
        width: 100%;
    }
}

@media screen and (max-width: 1200px) {
    .nav_up {
        padding: 0 30px;
    }
    
    .logo_name {
        font-size: 20px;
    }
    
    .nav_down ul {
        gap: 40px;
    }
    
    .nav_down ul li a {
        font-size: 18px;
    }
    
    .admin-container {
        padding: 15px;
    }
    
    .admin-tabs {
        justify-content: center;
    }
}

@media screen and (max-width: 992px) {
    .nav_up {
        padding: 0 20px;
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
    }
    
    .nav_left {
        height: 70px;
    }
    
    .logo_name {
        font-size: 18px;
    }
    
    .logo_name img {
        width: 45px;
        height: 40px;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 2;
    }
    
    .nav_right {
        width: 100%;
        order: 3;
        justify-content: center;
        padding: 15px 0;
        display: none;
        flex-wrap: wrap;
        gap: 15px;
        background-color: #1a7f7f;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav_right.show {
        display: flex;
    }
    
    .nav_down {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        z-index: 1000;
        height: auto;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav_down.show {
        display: block;
    }
    
    .nav_down ul {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .nav_down ul li {
        width: 100%;
    }
    
    .nav_down ul li a {
        display: block;
        padding: 12px 20px;
        background-color: #f5f5f5;
        border-radius: 8px;
        font-size: 16px;
        text-align: center;
    }
    
    .nav_down ul li a:hover {
        background-color: #1a7f7f;
        color: white;
    }
    
    .admin-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

@media screen and (max-width: 768px) {
    .nav_up {
        padding: 0 15px;
    }
    
    .nav_left {
        height: 60px;
    }
    
    .logo_name {
        font-size: 16px;
        gap: 8px;
    }
    
    .logo_name img {
        width: 35px;
        height: 30px;
    }
    
    .mobile-menu-btn {
        height: 40px;
        font-size: 22px;
        padding: 3px 12px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 18px;
        margin: 0;
    }
    
    .user-info {
        height: 40px;
        padding: 3px 3px 3px 12px;
    }
    
    .user-info span {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .auth_btn {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .admin-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-content {
        padding: 15px 10px;
    }
    
    table {
        min-width: 600px;
    }
    
    th {
        font-size: 14px;
        padding: 12px 8px;
    }
    
    td {
        font-size: 13px;
        padding: 10px 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .add-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .application-form {
        padding: 30px 20px;
        margin: 30px 15px;
    }
    
    .application-form h2 {
        font-size: 24px;
    }
    
    .form-group label {
        font-size: 16px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .add-review-btn {
        width: 90%;
        padding: 12px;
        font-size: 16px;
    }
}

@media screen and (max-width: 576px) {
    .nav-link {
        flex: 1;
        text-align: center;
    }
    
    .auth_btn {
        width: 100%;
        text-align: center;
    }
    
    .nav_right {
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .nav_up {
        padding: 0 10px;
    }
    
    .nav_left {
        height: 50px;
    }
    
    .logo_name {
        font-size: 14px;
        gap: 5px;
    }
    
    .logo_name img {
        width: 30px;
        height: 25px;
    }
    
    .mobile-menu-btn {
        height: 35px;
        font-size: 20px;
        padding: 3px 10px;
    }
    
    .nav_right {
        padding: 10px 0;
        gap: 8px;
    }
    
    .nav-link {
        padding: 5px 8px;
    }
    
    .nav-link i {
        font-size: 16px;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
        background: none;
        padding: 0;
    }
    
    .user-info span {
        background-color: #D8A827;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 12px;
    }
    
    .admin-container h1 {
        font-size: 24px;
        text-align: center;
    }
    
    .admin-tabs {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        font-size: 16px;
        padding: 12px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-content h3 {
        font-size: 18px;
    }
    
    .close {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
    
    .status-badge {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .application-form {
        padding: 20px 15px;
    }
    
    .application-form h2 {
        font-size: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 16px;
    }
}

@media screen and (max-width: 992px) {
    body.menu-open {
        overflow: hidden;
    }
    
    .nav_overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 98;
    }
    
    .nav_overlay.show {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .nav-link span {
        display: inline-block !important; 
        font-size: 14px;
        margin-left: 5px;
    }
    
    .nav-link i {
        font-size: 16px;
    }
    
    .nav-link {
        padding: 10px 15px;
        background-color: rgba(255,255,255,0.1);
        border-radius: 8px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav_right {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 10px;
    }
    
    .nav_right .user-info {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .auth_btn {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .nav-link span {
        font-size: 13px;
    }
    
    .nav-link i {
        font-size: 15px;
    }
    
    .nav-link {
        padding: 8px 12px;
    }
}