html {
    scroll-behavior: smooth;
}
@media(prefers-reduced-motion: reduce){
    html{scroll-behavior: auto;}
    * {animation: none !important; transition: none !important;}
}


html, body {
    background-color: rgba(236, 228, 220, 0.974);
    box-sizing: border-box;
    font-size: 25px;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    html, body {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    html, body {
        font-size: 16px;
    }
}


.navigation_list {
    display: flex;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    font-size: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .navigation_list {
        justify-content: space-around;
        font-size: 0.75rem;
        padding: 8px 5px;
        gap: 4px;
    }
    
    .nav_list {
        margin: 0 4px;
    }
    
    nav a {
        padding: 6px 8px;
        font-size: 0.9em;
    }
}

header {
    background-color: #ab9797;
    border: 1px solid rgb(30, 22, 22);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    color: rgb(246, 240, 240);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a:hover,
nav a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}


.start {
    position: relative;
    max-width: 100%;
    height: 100vh;
    display: flex;
    justify-content:right;
    align-items: end;
    color: #fff;
    overflow: hidden;
}

.start .main_photo{
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    z-index: 0;
}

.start .first_info{
    z-index: 2;
    position: absolute;
    max-width: 400px;
    right: 20px;    
    bottom: 20px;  
    top: 40px;   
    color: #fff;
    text-align: left;
    padding: 15px;
}

@media (max-width: 768px) {
    .start .first_info {
        position: static;
        max-width: 100%;
        padding: 20px 16px;
        text-align: center;
        color: #333;
        background-color: rgba(236, 228, 220, 0.95);
    }
    
    .start .first_info p {
        font-size: 0.9rem;
        margin: 12px 0;
    }
}


.start_btn{
    margin-top: auto;
    text-align: center;
    padding-bottom: 40px;

}

.appointment_btn {
    display: inline-block;
    padding: 15px 30px;
    background: #ab9797;
    border: 1px solid rgb(80, 64, 48);
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .appointment_btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: auto;
        display: inline-block;
    }
}


.second_photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    background-color: rgba(236, 228, 220, 0.5);
}

.name_text {
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding: 0 30px;
    margin: 0;

}

h1 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.3rem;
    }
}

.grid1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 20px;
    overflow: hidden;
}

.grid1 > * {
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .grid1 {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-inline: 16px;
    }
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 20px;
    overflow: hidden;
}

.grid2 > * {
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .grid2 {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-inline: 16px;
    }
}



.photo-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text, .text2 {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-inline: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

@media (max-width: 768px) {
    .text, .text2 {
        padding-inline: 12px;
        font-size: 0.95rem;
    }
    
    .text p, .text2 p {
        margin: 12px 0;
        line-height: 1.7;
    }
}


.book_img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.book{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    margin: 0;
    background-color: rgba(236, 228, 220, 0.5);
}

#about_info {
    width: 100%;
    max-width: 100%;
    padding-top: 40px;
}

#about_info h3{
    text-align: center;
    padding: 20px 16px 10px;
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    #about_info h3 {
        font-size: 1.5rem;
        padding: 16px 12px 8px;
    }
}


.grid3 {
    display: grid;
    align-items: stretch;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    overflow: hidden;
}

.grid3 > * {
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .grid3 {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        margin-top: 16px;
    }
}

.grid4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.grid4 > * {
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .grid4 {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        margin-top: 16px;
    }
}

.img_4 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.fourth_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: rgba(236, 228, 220, 0.5);
}



#approaches {
    padding: 0;
}

#approaches h3{
    text-align: center;
    font-size: 1.8rem;
    padding: 20px 16px 10px;
}

@media (max-width: 768px) {
    #approaches h3 {
        font-size: 1.5rem;
        padding: 16px 12px 8px;
    }
}

.approaches_text_container p {
    padding: 20px;
    font-size: 1.05rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .approaches_text_container p {
        padding: 16px;
        font-size: 1rem;
    }
}

.photo_h3 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.third_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    margin: 0;
    background-color: rgba(236, 228, 220, 0.5);
}




footer {
    text-align: center;
    background-color: rgb(189, 136, 82);
    
}

footer h3 {
    color: rgb(70, 47, 27) ;
    font-size: 1.5rem;
    padding-top: 30px;
    margin: 0;
}

.phone_container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    padding: 16px 24px;
}

.phone_pic {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.phone_number {
    color: rgb(70, 47, 27);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.phone_number:hover,
.phone_number:focus {
    color: rgb(97, 50, 50);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .phone_container {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
        padding: 12px 16px;
    }
    
    .phone_pic {
        width: 28px;
        height: 28px;
    }
    
    .phone_number {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .phone_number {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    footer h3 {
        font-size: 1.3rem;
        padding-top: 24px;
    }
    
    footer p {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}
.contacts_li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 28px 24px;
    font-size: 16px;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.contacts_li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.contacts_li img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.contacts_li:hover img {
    transform: scale(1.1);
}

.contacts_li a {
    color: rgb(70, 47, 27);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contacts_li:hover a {
    color: rgb(97, 50, 50);
}
.contacts_ul{
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 24px 0 32px 0;
    flex-wrap: wrap;
}




.results_text, .approaches_info {
    font-size: 1rem;

}

.results_text{
    padding-left: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .results_text {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .results_text p {
        margin: 12px 0;
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

.approaches_list1 {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.help_list {
    text-align: left;
    padding: 14px 14px 14px 40px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.6;
    transition: background-color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .help_list {
        padding: 12px 12px 12px 36px;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .help_list::before {
        left: 6px;
        width: 7px;
        height: 7px;
    }
}

.help_list::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 20px;
    width: 8px;
    height: 8px;
    background-color: #ab9797;
    border-radius: 50%;
    transform: translateY(-50%);
}

.help_list:hover {
    background-color: rgba(171, 151, 151, 0.08);
    border-radius: 6px;
}

.approaches_text_container{
    padding-top: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.approaches_info_list2 {
    margin: 0;
    padding: 10px;
    list-style:outside;
    font-size: 1rem;
}

.approaches_info {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.approaches_info_list {
    text-align: left;
    padding: 14px 14px 14px 40px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.6;
    transition: background-color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .approaches_info_list {
        padding: 12px 12px 12px 36px;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .approaches_info_list::before {
        left: 6px;
        width: 7px;
        height: 7px;
    }
}

.approaches_info_list::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 20px;
    width: 8px;
    height: 8px;
    background-color: rgb(189, 136, 82);
    border-radius: 50%;
    transform: translateY(-50%);
}

.approaches_info_list:hover {
    background-color: rgba(189, 136, 82, 0.08);
    border-radius: 6px;
}

.help_container{
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#prices{
    text-align: center;
    background-image: url("vase.JPG");
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #prices {
        min-height: 100vh;
        height: auto;
        padding: 16px;
    }
}

#prices h3 {
    text-align: center;
    color: rgb(82, 23, 23);
    font-size: 2rem;
    margin: 0;
    padding-bottom: 30px;
    padding-top: 30px;
}

@media (max-width: 768px) {
    #prices h3 {
        font-size: 1.5rem;
        padding-bottom: 20px;
        padding-top: 20px;
    }
}


.prices {
    margin: 0 auto;              
    background-color: rgba(187, 181, 176, 0.7);
    border-radius: 12px;
    color: rgb(82, 23, 23);
    width: 55%;
    height: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;     
    text-align: center;        
}

@media (max-width: 768px) {
    .prices {
        width: 95%;
        max-width: 500px;
        height: auto;
        min-height: auto;
        padding: 24px 20px;
    }
    
    .prices p {
        font-size: 0.95rem;
        margin: 10px 0;
        line-height: 1.6;
    }
}
  

#books_recommendations{
    padding: 0;
}

#books_recommendations h3 {
    font-size: 1.5em;
    text-align: center;
    padding: 20px 16px 10px;
}

@media (max-width: 768px) {
    #books_recommendations h3 {
        font-size: 1.3rem;
        padding: 16px 12px 8px;
    }
}

.book_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book_list p {
    margin: 20px 0 12px 0;
    font-weight: 600;
    color: rgb(70, 47, 27);
}

.books {
    text-align: left;
    padding: 12px 12px 12px 36px;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.6;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
    .books {
        padding: 10px 10px 10px 32px;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    .books::before {
        left: 6px;
        font-size: 1.2em;
    }
}

.books::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 18px;
    color: rgb(189, 136, 82);
    font-size: 1.3em;
    font-weight: bold;
    transform: translateY(-50%);
    line-height: 1;
}

.books:hover {
    background-color: rgba(189, 136, 82, 0.06);
    border-radius: 6px;
    transform: translateX(4px);
}



.grid5 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .grid5 {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        margin-top: 16px;
    }
}

.book_img2{
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background-color: rgba(236, 228, 220, 0.5);
}


.contact_btn {
    background-color: rgb(188, 124, 72);
    border: 1px solid rgb(123, 77, 84);
    border-radius: 16px;
    font-size: 15px;
    margin-bottom: 30px;
    padding: 10px 30px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .contact_btn {
        font-size: 0.9rem;
        padding: 12px 24px;
        margin-bottom: 24px;
        width: auto;
        display: inline-block;
    }
}

.contact_btn:hover, .contact_btn:focus {
    cursor:pointer;
    text-decoration: underline;
    color: #e0d0af;
    
}

.modal_container{
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    padding: 20px;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    z-index: 1000;
}

.modal {
    gap: 20px;
    background: linear-gradient(135deg, rgba(236, 228, 220, 0.98) 0%, rgba(209, 201, 191, 0.98) 100%);
    width: 500px;
    max-width: 90vw;
    padding: 40px 50px;
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal_container.show .modal {
    transform: scale(1);
    opacity: 1;
}



.modal_container.show{
    pointer-events: auto;
    opacity: 1;
}

.modal_container.show .modal {
    animation: modalAppear 0.3s ease forwards;
}

@keyframes modalAppear {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close_btn {
    background: linear-gradient(135deg, rgba(189, 136, 82, 0.9) 0%, rgba(188, 124, 72, 0.9) 100%);
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.close_btn:hover,
.close_btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(189, 136, 82, 1) 0%, rgba(188, 124, 72, 1) 100%);
}


  @media (max-width: 600px) {
    .grid1, .grid2, .grid3, .grid4, .grid5 {
        grid-template-columns: 1fr; 
        margin: 0; 
        padding-inline: 12px;
    }
    .recommendations {
        display: flex; 
        align-items: flex-start; 
        flex-direction: column;
    }
    .text, .text2 {
        text-align: left;
        padding-inline: 8px;
    }
}

    


@media (max-width: 480px) {
    .contacts_ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 20px 0 24px 0;
    }
    .modal {
      width: 95%;
      max-width: 95vw;
      max-height: 90vh;
      padding: 20px 16px;
      overflow-y: auto;
    }
    .contacts_li {
        padding: 20px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contacts_li img {
        width: 40px;
        height: 40px;
    }
    
    .close_btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
  }




  @media screen and (max-width: 768px) {
    .start {
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 100vh;
      height: auto;
    }
  
    .start .main_photo {
      width: 100%;
      height: 60vh;
      min-height: 400px;
      object-fit: cover;
      object-position: center top; 
    }
  
    .start .first_info {
      position: static;
      text-align: center;
      color: #333;
      max-width: 100%;
      padding: 24px 16px;
    }

    .title-block {
      position: absolute;
      top: 8%; 
      left: 50%;
      transform: translateX(-50%);
      color: #fff;
      text-align: center;
      width: 90%;
      font-size: 1.4rem;
      font-weight: bold;
      text-shadow: 0 2px 4px rgba(0,0,0,0.5);
      z-index: 3;
    }
    
    @media (max-width: 480px) {
        .title-block {
            font-size: 1.2rem;
            top: 6%;
        }
        
        .start .main_photo {
            height: 50vh;
            min-height: 350px;
        }
    }
  }
  

  