@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f1f1f1;
}
body {
    font-family: 'Roboto', sans-serif;
}

strong, b {
    font-weight: 700;
}

main {
    position: relative;
}

.header-image {
    width: 100%;     
    height: 70px;
    background-image: url('photo/header.webp');
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    background-color: #262626;
    
}

@media (min-width: 768px) {
    .header-image {
        background-image: url('photo/header2.webp');
        height: 150px;
    }
}

.header-container {
    height: auto;
    position: relative;
}
#title h1 {
    color: black;
    font-size: 24px;
    margin-top: 0;
    font-weight: 550;
    margin-bottom: 10px;
    padding-left: 18px;
    padding-right: 18px;
    
}

#title h2 {
    color: black;
    font-size: 23px;
    margin-top: 0;
    font-weight: 600;
    margin-bottom: 10px;
    padding-left: 18px;
    padding-right: 18px;
    
}

.nameAlexey {
    font-size: 18px;
    line-height: 28px;
}

.nameWork {
    font-size: 14px;
    color: #9f9f9f;
    
}

.text {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    margin: 8px 8px 20px 8px;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    
}

.text-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
}
.text-img1 {
    width: 35%;
    border-radius: 10px;
    margin: 0 12px 5px 0; 
    float: left;
}

@media (min-width: 768px) {
    .text-img1 {
        width: 15%;
    }
}

.text a {
    color: #0a58ca;
    text-decoration: none;
    font-weight: 500;
}

.text a:hover {
    text-decoration: underline;
}


#services {
    background-color: #373737a2;
    padding: 5px;
    text-align: left;
    margin-top: 7px;
    padding-bottom: 20px;
}

#nav {
    background-color: #f1f1f1;
    color: #313131;
    padding: 5px;
    padding-bottom: 35px;
}

#nav h2 {
    margin-left: 10px;
    margin-top: 20px;
    margin-right: 0px;
    font-weight: 600;  
}


#contact {
    background-color: #373737a2;
    padding: 5px;
    padding-bottom: 35px;
}
#contact h2 {
    color: #fff; 
}

.contact-link {
    color: #fff; 
    text-decoration: none;
}
.contact-info {
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-gap: 1px;
    margin-bottom: -20px;
}
.contact-item, .contact-item2, .contact-item a {
    color: white; 
    text-decoration: none;
}

.contact-item, .contact-item2 {
    margin: -15px 0 0 24px;
    font-size: 14px;
}

.contact-item p, .contact-item2 p {
    margin-top: -15px;
}
.contact-title {
    margin: 12px 0 12px 24px;
    font-size: 22px;
    color: #fff;
}

.section-title {
    margin-left: 10px;
    margin-top: 20px;
    margin-right: 0px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.details_top, .details_centre, .details_down {
    position: relative;
    display: block;
    max-width: 1900px;
    margin-left: 7px;
    margin-right: 7px;
    background: rgb(240, 244, 250);
    transition: 0.4s;
    overflow: hidden;
}

.details_text {
    position: relative;
    display: block;
    max-width: 1900px;
    background: rgb(240, 244, 250);
    transition: 0.4s;
    overflow: hidden;
}

.details_top {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}


.details_centre {
    border-radius: 0px;
}

.details_down {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}
  
.details_top::after, .details_centre::after, .details_down::after {
    position: absolute;
    right: 24px;
    top: 15px;
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-right: 3px solid #373737;
    border-bottom: 3px solid #373737;
    transform: rotate(45deg);
    transform-origin: center;
    transition: .3s;
    
}
.details_text::after{
    position: absolute;
    right: 10px;
    top: 32px;
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-right: 3px solid #373737;
    border-bottom: 3px solid #373737;
    transform: rotate(45deg);
    transform-origin: center;
    transition: 0.3s;
}
.details_top[open]::after, .details_down[open]::after, .details_centre[open]::after {
    transform: rotate(90deg);
}
  
.details_text[open]::after {
    transform: rotate(90deg);
}
.details_top[open], .details_centre[open], .details_down[open] {
    padding-bottom: 55px;
}
.details_text[open]{
    padding-bottom: 55px;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
}

.details_top[open] .details__title_top, .details_centre[open] .details__title_centre, .details_down[open] .details__title_down {
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
}
  
.details__title_top, .details__title_centre, .details__title_down{
    background: #fff;
    padding: 12px 24px;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
    font-weight: 400;
    transition: .3s;
    border-top: 1px solid #ccc;
}
.details__title_text {
    background: #fff;
    padding: 10px ;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    font-weight: 400;
    transition: .3s;
    border-top: 1px solid #ccc;
    padding-right: 30px;
}


.details__title_top::-webkit-details-marker, .details__title_centre::-webkit-details-marker, .details__title_down::-webkit-details-marker{
    display: none;
}

.details__title_text::-webkit-details-marker{
    display: none;
}

.details__content_top, .details__content_down, .details__content_centre {
    padding: 0 32px;
    font-size: 16px;
    margin-bottom: -35px;
    line-height: 1.5;
}

.details__content_text {
    padding: 5px 12px;
    font-size: 16px;
    margin-bottom: -35px;
    line-height: 1.5;
}

.buttons-container {
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center; 
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.buttons-container2{
    display: flex;
    justify-content: center; 
    align-items: center;
    flex-wrap: wrap;
    margin-right: 35px;
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .buttons-container2 {
        justify-content: flex-start;
    }
}
.button {
    position: relative;        
    padding: 9px 9px;
    margin: 4px;
    background-color: #262626;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    animation: colorBlink 2s infinite; 
    display: flex;            
    justify-content: center;  
    align-items: center;      
    text-align: center; 
    overflow: hidden;  
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);       
    box-shadow: 0 0 8px #ffffff, 0 0 15px #ffffff;
    
}

@keyframes colorBlink {
    0%, 100% {
      background-color: #4f77db;
    }
    50% {
      background-color: #57a6de;
    }
  }

.site-sections {
    padding: 10px 20px;
    text-align: center; 
}

.sections-list {
    list-style: none;        
    padding: 0;
    margin: 0;
    display: inline-flex;    
    gap: 12px;               
    flex-wrap: wrap;         
    justify-content: center; 
}

.sections-list li {
    margin: 0;
}

.sections-list a {
    text-decoration: none;   
    color: #333;             
    font-weight: 500;
    display: inline-block;
}

.sections-list a:hover {
    text-decoration: underline; 
    color: #000;
}

body.udalit-drom .header-image {
    background-image: url('assets/udalit_drom/header.webp');
}
body.ceny-i-sroki .header-image {
    background-image: url('assets/ceny-i-sroki/header.webp');
}
body.raschety-remonta .header-image {
    background-image: url('avtoteka/header.webp');
}
body.probeg .header-image {
    background-image: url('avtoteka/header-probeg.webp');
}
body.taksi-karshering .header-image {
    background-image: url('avtoteka/header-taksi-karshering.webp');
}
body.udalit-obyavlenie-avito .header-image {
    background-image: url('avtoteka/header-udalit-obyavlenie-avito.webp');
}
body.udalit-obyavlenie-autoru-iz-otcheta .header-image {
    background-image: url('assets/autoru/header.webp');
}
body.udalit-aukcion-usa .header-image {
    background-image: url('assets/udalit-aukcion-usa/header.webp');
}
body.strahovye-vyplaty-remont .header-image {
    background-image: url('assets/avtoteka/header.webp');
}

body.strahovye-vyplaty-remont .svr-table { width: 100%; border-collapse: collapse; }
body.strahovye-vyplaty-remont .svr-table__caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
body.strahovye-vyplaty-remont .svr-table th,
body.strahovye-vyplaty-remont .svr-table td { border: 1px solid #2b2b2b; padding: 10px; vertical-align: top; }
body.strahovye-vyplaty-remont .svr-table thead th { background: #f5f5f5; }

@media (max-width: 1000px) {
    body.strahovye-vyplaty-remont .svr-table__caption {
        display: block;
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }

    body.strahovye-vyplaty-remont .svr-table,
    body.strahovye-vyplaty-remont .svr-table thead,
    body.strahovye-vyplaty-remont .svr-table tbody,
    body.strahovye-vyplaty-remont .svr-table th,
    body.strahovye-vyplaty-remont .svr-table td,
    body.strahovye-vyplaty-remont .svr-table tr {
        display: block;
    }

    body.strahovye-vyplaty-remont .svr-table thead {
        display: none;
    }

    body.strahovye-vyplaty-remont .svr-table {
        border: 0;
    }

    body.strahovye-vyplaty-remont .svr-table tr {
        border: 1px solid #2b2b2b;
        border-radius: 10px;
        padding: 8px;
        margin: 12px 0;
        background: #fff;
    }

    body.strahovye-vyplaty-remont .svr-table td {
        border: 0;
        padding: 10px 8px;
    }

    body.strahovye-vyplaty-remont .svr-table td + td {
        border-top: 1px solid #e6e6e6;
    }

    body.strahovye-vyplaty-remont .svr-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
        color: #262626;
    }
}

body.kak-chitat-otchet-avtoteki .svr-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
body.kak-chitat-otchet-avtoteki .svr-table__caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
body.kak-chitat-otchet-avtoteki .svr-table th,
body.kak-chitat-otchet-avtoteki .svr-table td { border: 1px solid #2b2b2b; padding: 10px; vertical-align: top; }
body.kak-chitat-otchet-avtoteki .svr-table thead th { background: #f5f5f5; }

@media (max-width: 1000px) {
    body.kak-chitat-otchet-avtoteki .svr-table__caption {
        display: block;
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }

    body.kak-chitat-otchet-avtoteki .svr-table,
    body.kak-chitat-otchet-avtoteki .svr-table thead,
    body.kak-chitat-otchet-avtoteki .svr-table tbody,
    body.kak-chitat-otchet-avtoteki .svr-table th,
    body.kak-chitat-otchet-avtoteki .svr-table td,
    body.kak-chitat-otchet-avtoteki .svr-table tr {
        display: block;
    }

    body.kak-chitat-otchet-avtoteki .svr-table thead {
        display: none;
    }

    body.kak-chitat-otchet-avtoteki .svr-table {
        border: 0;
    }

    body.kak-chitat-otchet-avtoteki .svr-table tr {
        border: 1px solid #2b2b2b;
        border-radius: 10px;
        padding: 8px;
        margin-bottom: 12px;
        background: #fff;
    }

    body.kak-chitat-otchet-avtoteki .svr-table td {
        border: 0;
        padding: 10px 8px;
    }

    body.kak-chitat-otchet-avtoteki .svr-table td + td {
        border-top: 1px solid #e6e6e6;
    }

    body.kak-chitat-otchet-avtoteki .svr-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
        color: #262626;
    }
}

body.mify-pro-udalenie-avtoteki .svr-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
body.mify-pro-udalenie-avtoteki .svr-table__caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
body.mify-pro-udalenie-avtoteki .svr-table th,
body.mify-pro-udalenie-avtoteki .svr-table td { border: 1px solid #2b2b2b; padding: 10px; vertical-align: top; }
body.mify-pro-udalenie-avtoteki .svr-table thead th { background: #f5f5f5; }

@media (max-width: 1000px) {
    body.mify-pro-udalenie-avtoteki .svr-table__caption {
        display: block;
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }

    body.mify-pro-udalenie-avtoteki .svr-table,
    body.mify-pro-udalenie-avtoteki .svr-table thead,
    body.mify-pro-udalenie-avtoteki .svr-table tbody,
    body.mify-pro-udalenie-avtoteki .svr-table th,
    body.mify-pro-udalenie-avtoteki .svr-table td,
    body.mify-pro-udalenie-avtoteki .svr-table tr {
        display: block;
    }

    body.mify-pro-udalenie-avtoteki .svr-table thead {
        display: none;
    }

    body.mify-pro-udalenie-avtoteki .svr-table {
        border: 0;
    }

    body.mify-pro-udalenie-avtoteki .svr-table tr {
        border: 1px solid #2b2b2b;
        border-radius: 10px;
        padding: 8px;
        margin-bottom: 12px;
        background: #fff;
    }

    body.mify-pro-udalenie-avtoteki .svr-table td {
        border: 0;
        padding: 10px 8px;
    }

    body.mify-pro-udalenie-avtoteki .svr-table td + td {
        border-top: 1px solid #e6e6e6;
    }

    body.mify-pro-udalenie-avtoteki .svr-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
        color: #262626;
    }
}

.price-table-wrap{
    margin: 16px 0;
}

.price-table{
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 16px;
    line-height: 1.4;
    background: #fff;
}

.price-table caption{
    text-align: left;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.price-table th,
.price-table td{
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    vertical-align: top;
}

.price-table thead th{
    background: #f7f7f7;
    font-weight: 700;
}

.price-table td:last-child,
.price-table th:last-child{
    text-align: right;
    white-space: nowrap;
}

.price-note{
    margin-top: 10px;
    color: #444;
    font-size: 14px;
}

.price-note strong{
    font-weight: 700;
}

@media (max-width: 640px){
    .price-table caption{
        white-space: nowrap;
        font-size: 16px;
    }

    .price-table thead{
        display: none;
    }

    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table td{
        display: block;
        width: 100%;
    }

    .price-table tr{
        border: 1px solid #e6e6e6;
        border-radius: 10px;
        margin-bottom: 12px;
        overflow: hidden;
        background: #fff;
    }

    .price-table td{
        border: none;
        border-bottom: 1px solid #efefef;
        text-align: left !important;
        white-space: normal;
        padding: 10px 12px;
    }

    .price-table td:last-child{
        border-bottom: none;
    }

    .price-table td::before{
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 4px;
    }

    .price-table td[data-label="Стоимость от"]{
        font-weight: 700;
        font-size: 16px;
    }
}

.image-box {
    width: 100%;
    margin: 16px 0;
}

.image-box img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.image-box figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    text-align: center;
}
.icon-social {
    display: inline-block;
    width: 18px;
    height: 18px;
    fill: #ffffff;
    margin-right: 5px;
    vertical-align: middle;
}

/* ===== ДЕСКТОПНАЯ ВЕРСИЯ ===== */
@media (min-width: 900px) {
 
 
  .layout-content {
    display: grid;
    grid-template-columns: 316px 1fr;
    grid-template-areas:
      "nav content";
    gap: 25px;
    max-width: 2500px;
    margin: 0 auto;
  }

  
  #nav {
    grid-area: nav;
    align-self: start;
    position: sticky;
    height: fit-content;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    margin: 10px 15px 20px 20px;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    
  }

  
  header,
  #title,
  .text,
  .text-comment,
  #services,
  #contact {
    grid-column: 2;
  }
  #services {
    border-radius: 15px;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.16);
    line-height: 1.4;
    color: #222;
    margin-right: 15px;
}
#nav h2 {
    color: #212121;     
    font-size: 30px;    
    font-weight: 650;   
    margin: 5px 0 0 6px; 
}
    #contact {
    border-radius: 15px;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.16);
    line-height: 1.4;
    color: #222;
    margin: 0 20px 20px 0
    }
.button {
    font-size: 24px; 
    transition: 1s;     
}
.icon-social {
    width: 26px;
    height: 26px;
    margin-right: 12px;
    transition: 1s;
}
.contact-item p, .contact-item2 p {
    margin-top: -15px;
    margin-bottom: 12px;
}
.contact-item {
    font-size: 18px;
    transition: 1s;
    
}
.contact-item2  {
    font-size: 18px; 
    transition: 1s;     
}
.contact-title {
    font-size: 28px;
    transition: 1s;
}
.sections-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    transition: 1s;
}
#title h1 {
    color: #212121;
    font-size: 28px;
    font-weight: 650;  
}
#title h2 {
    color: #212121;
    font-size: 26px;
    font-weight: 650;  
}
#title {
    margin: 15px 0 0 330px;
    
}
.text {

    margin: 10px 20px 0 0 ;
    font-size: 18px;   
    line-height: 1.6; 
}

.text-comment {
    color: #717171;
    margin: 10px 20px 0 0 ;
    font-size: 14px;  
    line-height: 1.6; 
}
.nameWork {
    font-size: 20px;      
    color: #555555;       
    font-weight: 500;    
    line-height: 1.5;     
}
.nameAlexey {
    font-size: 24px;       
    color: #222222;        
    font-weight: 600;      
    line-height: 1.4;      
}
.details__content_text {
    font-size: 18px;      
    line-height: 1.6;     
    color: #212121;       
}


.details__title_text h3 {
    font-size: 20px;      
    font-weight: 600;     
    color: #212121;       
    margin: 0;            
    line-height: 1.4;     
}
.details_text {
    margin: 15px 0 20px 0;
}
.details_text::after{
    position: absolute;
    right: 10px;
    top: 20px;

}
.sections-list li {
    margin: 7px -20px 7px -20px;
    transition: 1s;
}


.sections-list a {
    display: block;
    text-align: left;
    padding: 9px 16px;
    font-size: 17px;
    color: #2a2a2a;
    text-decoration: none;

    background: linear-gradient(#eeeeee, #d8d8d8);
    border: 2px solid #7a7a7a;        
    border-radius: 12px;

    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 3px 6px rgba(0,0,0,0.15);

    transition: 
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
    transition: 1s;
}

.sections-list a:hover {
    background: #d5d5d5;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 5px 10px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.sections-list a:active {
    transform: translateY(1px);
    box-shadow: 
        inset 0 3px 6px rgba(0,0,0,0.25);
}
.sections-list a {
    padding-left: 6px; 
    padding-right: 2px;
}
}
.sections-list a,
.sections-list a:hover,
.sections-list a:focus,
.sections-list a:active {
    text-decoration: none;
}

/* ===== ACCORDION STYLES ===== */
.accordion-container {
    margin: 20px 0;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    flex: 1;
    padding-right: 10px;
}

.accordion-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #373737;
    border-bottom: 2px solid #373737;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(-135deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 14px 16px;
}

.accordion-content p {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

/* Image placeholder styles */
.image-placeholder {
    margin: 16px 0;
    text-align: center;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px dashed #ccc;
    min-height: 150px;
    background: #f5f5f5;
}

.image-placeholder figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Disclaimer style */
.disclaimer {
    font-size: 12px;
    color: #888;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

@media (min-width: 900px) {
    .accordion-header h3 {
        font-size: 17px;
    }
    
    .accordion-content p {
        font-size: 16px;
    }
}

