html {
    scroll-behavior:smooth; /* Плавна прокрутка */
    min-height: 100%;
    background-image:
        linear-gradient(
            to right,
            rgba(243, 233, 200, 0.95) 0%,
            rgba(248, 234, 200, 0.7) 50%,
            rgba(255, 245, 225, 0.05) 100%
        ),
        url("https://video.cat-movie.com.ua/OlgaShop/img/background-len.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}
#home {
    scroll-margin-top:23px;
}

body{
    min-height: 100vh;
    margin: 0;
    background: transparent;
    font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;
}

.home-home{  
    margin-left: 70px;
    margin-top: 40px;
    width: 150px;
    height: 70px;
    border-radius: 20px;
    position: absolute;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.home-home:hover{
    transform: scale(1.05);
}

.home-home a {
    position: relative;
    display: block;
}

/* Подсказка при наведении */
.home-home a::after {
    content: "Головна";
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%) translateX(-5px);

    background: #E8D7BE;
    color: #70472F;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    box-shadow: 0 3px 10px #00000020;
}

/* Появление подсказки */
.home-home a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.home-home img{
    
    width: 148px;
    height: 69px;
    border-radius: 20px;
}


.home-home span {
    background: #E8D7BE;
    padding: 4px 12px;
    border-radius: 10px;
}
/* Секція home */
#home {
    margin-top: 1.5%;
    margin-left: 1.5%;
    border-radius: 20px; /* Закруглення кутів секції портфоліо */
    width: 97%; 
    height: 97vh;
}

/* Велика фотографія з текстом поверх */
.about {
    
    position: relative;
    width: 100%;
    height: 95vh;
    overflow: hidden;
    margin-top: 14px;
    display: flex;
    align-items: center;
    border: 1px solid #E8D7BE;
    border-radius: 20px;
    box-sizing: border-box;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(243, 233, 200, 0.95) 0%,
        rgba(248, 234, 200, 0.7) 50%,
        rgba(255, 245, 225, 0.05) 100%
    );
}

.home-content {
    position: relative;
    z-index: 2;
    width: 55%;
    max-width: 650px;
    padding: 55px;
    box-sizing: border-box;
}

.home-content h1 {
    margin: 0 0 25px;
    color: #513b2b;
    font-family: Georgia, serif;
    font-size: 44px;
    line-height: 1.2;
}

.home-label {
    display: inline-block;
    margin-bottom: 20px;
    color: #a47b50;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}


.home-description {
    margin-bottom: 20px;
    color: #655344;
    font-size: 18px;
    line-height: 1.9;
}

.home-note {
    margin-bottom: 28px;
    color: #8b704f;
    font-size: 15px;
    font-style: italic;
}

.home-button {
    display: inline-block;
    padding: 15px 28px;
    background-color: #8c6848;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #6e4d32;
    color: #ffffff;
}

/* Изображение */
.home-image {
    position: absolute;
    inset: 0; 
    z-index: 0;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

   /*PORTFOLIO — ПОРТФОЛИО ПРИПІНДИ*/

.portfolio-section {
    width: 100%;
    height: 95vh;
    margin: 30px auto;
    padding: 24px;
    margin-top: 1.5%;
    
    display: grid;
    grid-template-columns: 1.08fr 0.9fr 0.72fr;
    gap: 22px;
    
    
    box-sizing: border-box;
    align-items: stretch;
}

/* Левая карточка */
.portfolio-info {
    padding: 36px 30px;
    height: 89vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #c5a47f;
    border-radius: 20px;
    background: rgba(255, 250, 237, 0.48);
    box-sizing: border-box;
}

.portfolio-label {
    display: block;
    margin-bottom: 18px;
    color: #98704d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.portfolio-heading h2 {
    margin: 0 0 14px;
    color: #70472f;
    font-family: Georgia, serif;
    font-size: 36px;
    line-height: 1.2;
}

.portfolio-heading h2 span {
    color: #9b6843;
}

.portfolio-subtitle {
    margin: 0;
    color: #80664f;
    font-size: 16px;
    line-height: 1.7;
}

/* Преимущества */
.portfolio-features {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin: 36px 0;
}

.portfolio-feature {
    display: flex;
    align-items: flex-start;
    gap: 17px;
}

.feature-icon {
    flex: 0 0 34px;
    color: #865737;
    font-size: 30px;
    line-height: 1.1;
    text-align: center;
}

.portfolio-feature h3 {
    margin: 0 0 7px;
    color: #70472f;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.35;
}

.portfolio-feature p {
    margin: 0;
    color: #80664f;
    font-size: 14px;
    line-height: 1.65;
}

/* Кнопка */
.portfolio-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    max-width: 270px;
    padding: 15px 21px;
    color: #fff8eb;
    background: #805333;
    border: 1px solid #805333;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.3s, transform 0.3s;
}

.portfolio-button span {
    font-size: 23px;
    line-height: 1;
}

.portfolio-button:hover {
    color: #fff8eb;
    background: #603c27;
    transform: translateY(-2px);
}

/* Центральное фото */
.portfolio-main-photo {
    position: relative;
    min-width: 0;
    height: 89vh;;
    overflow: hidden;
    border-radius: 17px;
    background: #e8d4b5;
}

.portfolio-main-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 780px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.portfolio-main-photo:hover img,
.portfolio-photo:hover img {
    transform: scale(1.035);
}

/* Правая колонка */
.portfolio-gallery {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 22px;
    min-width: 0;
    height: 89vh;
}

.portfolio-photo {
    position: relative;
    min-height: 0;
    min-width: 0;

    overflow: hidden;
    border-radius: 17px;
    background: #e8d4b5;
}

.portfolio-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

/* Подписи на фотографиях */
.photo-caption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #fff8eb;
    background: rgba(75, 49, 32, 0.78);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.photo-caption span {
    color: #e8c9a1;
    font-size: 12px;
    font-weight: 700;
}

.photo-caption p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

/* Убираем лишние отступы внутри секции */
.portfolio-section *,
.portfolio-section *::before,
.portfolio-section *::after {
    box-sizing: border-box;
}

/* Сексія how_to_order */
#how_to_order {   
    margin-top: 1.5%;
    margin-left: 1.5%;
    border-radius: 20px; /* Закруглення кутів секції портфоліо */
    width: 97%; 
    height: 85vh;
}

.steps {
    width:100%; 
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    padding: 40px 20px;
}

.step {
    width: 30%;
    height:590px;
    padding: 30px;
    text-align: center;
    background-color: #fff8e7;
    border-radius: 20px;
    border: 1px solid #e0cda8;
}

.step-num {
    color:#70472F;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #e9d6b2;
    font-size: 24px;
    font-weight: bold;
}

.steps h3{
    color:#70472F;
}

.steps p{
    color:#70472F
}

.steps a{
    padding:0;
    font-weight: bold;
    color: #5bc3ec;
}

.steps a:hover{
    transform: scale(1.18);
    color: #5dc3ec;
    transition: all 0.3s ease;
    box-shadow: #5bc3ec;
}

.steps img{
    border: 3px solid #70472F;
    width: 280px;
    height:350px;
    border-radius: 27px;
}

.dropdown-steps{
    display: flex;
    justify-content: center;
}

/*Низ сторінки*/
.footer {  
    text-align: center;
    padding: 5px;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-linkstop a{
    float: right;
    text-align: center;
    padding: 5px;
    margin-top: 10px;
    text-decoration: none;
}

/* ================================
   АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ
================================ */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* Логотип */
    .home-home {
        top: 12px;
        left: 12px;
        margin: 0;
        width: 110px;
        height: auto;
    }

    .home-home img {
        width: 110px;
        height: auto;
    }

    /* Главная секция */
    #home {
        width: 97%;
        height: auto;
        min-height: 75vh;
    }

    .about {
        height: 75vh;
        min-height: 600px;
        margin-top: 10px;
    }

    .home-content {
        width: 65%;
        max-width: 600px;
        padding: 35px;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-description {
        font-size: 16px;
        line-height: 1.7;
    }

    /* Портфолио */
    .portfolio-section {
        height: auto;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding: 18px;
        margin-top: 20px;
    }

    .portfolio-info {
        grid-column: 1 / -1;
        height: auto;
        padding: 30px;
    }

    .portfolio-heading h2 {
        font-size: 32px;
    }

    .portfolio-features {
        gap: 20px;
        margin: 25px 0;
    }

    .portfolio-main-photo {
        height: 550px;
    }

    .portfolio-main-photo img {
        min-height: 0;
    }

    .portfolio-gallery {
        height: 550px;
        gap: 18px;
    }

    /* Заказ */
    #how_to_order {
        width: 97%;
        height: auto;
        margin-bottom: 30px;
    }

    .steps {
        flex-wrap: wrap;
        gap: 20px;
        padding: 25px 15px;
    }

    .step {
        width: calc(50% - 15px);
        height: auto;
        padding: 25px 15px;
        box-sizing: border-box;
    }

    .steps img {
        width: 100%;
        max-width: 280px;
        height: 300px;
        object-fit: cover;
    }
}

/* ================================
   АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ
================================ */
@media screen and (max-width: 767px) {

    /* Общие настройки */
    html {
        background-attachment: scroll;
        scroll-behavior: smooth;
    }

    body {
        overflow-x: hidden;
    }

    /* Логотип — компактная кнопка сверху */
    .home-home {
        top: 10px;
        left: 10px;
        margin: 0;
        width: 85px;
        height: auto;
        border-radius: 12px;
    }

    .home-home img {
        display: block;
        width: 85px;
        height: auto;
        max-height: 55px;
        object-fit: contain;
        border-radius: 12px;
    }

    /* Главная секция */
    #home {
        width: 94%;
        margin: 0 auto;
        height: auto;
        min-height: 0;
        padding-top: 65px;
        scroll-margin-top: 0;
    }

    .about {
        width: 100%;
        height: auto;
        min-height: 0;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }

    /* Фоновое фото */
    .home-image {
        position: absolute;
        inset: 0;
    }

    .home-image img {
        object-position: center;
    }

    /* Светлый слой поверх фото */
    .about::before {
        background: linear-gradient(
            180deg,
            rgba(243, 233, 200, 0.90) 0%,
            rgba(248, 234, 200, 0.84) 60%,
            rgba(255, 245, 225, 0.55) 100%
        );
    }

    /* Текст главной */
    .home-content {
        width: 100%;
        max-width: none;
        padding: 28px 22px 35px;
    }

    .home-content h1 {
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .home-label {
        font-size: 10px;
        letter-spacing: 2px;
        line-height: 1.7;
    }

    .home-description {
        font-size: 16px;
        line-height: 1.7;
    }

    .home-note {
        font-size: 14px;
        line-height: 1.6;
    }

    .home-button {
        padding: 13px 20px;
        font-size: 15px;
    }

    /* Портфолио */
    .portfolio-section {
        width: 100%;
        height: auto;
        margin: 25px auto;
        padding: 0 3%;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .portfolio-info {
        grid-column: auto;
        width: 100%;
        height: auto;
        padding: 25px 20px;
    }

    .portfolio-label {
        font-size: 11px;
        line-height: 1.6;
    }

    .portfolio-heading h2 {
        font-size: 29px;
    }

    .portfolio-subtitle {
        font-size: 15px;
    }

    .portfolio-features {
        gap: 22px;
        margin: 25px 0;
    }

    .portfolio-feature {
        gap: 12px;
    }

    .feature-icon {
        flex-basis: 28px;
        font-size: 25px;
    }

    .portfolio-feature h3 {
        font-size: 18px;
    }

    .portfolio-feature p {
        font-size: 14px;
    }

    .portfolio-button {
        width: 100%;
        max-width: none;
        padding: 14px 18px;
    }

    /* Большое фото */
    .portfolio-main-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .portfolio-main-photo img {
        min-height: 0;
    }

    /* Два дополнительных фото */
    .portfolio-gallery {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }

    .portfolio-photo {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .photo-caption {
        right: 6px;
        bottom: 6px;
        left: 6px;
        gap: 5px;
        padding: 8px;
        border-radius: 8px;
    }

    .photo-caption span {
        font-size: 10px;
    }

    .photo-caption p {
        font-size: 10px;
    }

    /* Секция оформления заказа */
    #how_to_order {
        width: 94%;
        height: auto;
        margin: 30px auto;
    }

    .steps {
        width: 100%;
        padding: 15px 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        box-sizing: border-box;
    }

    .step {
        width: 100%;
        height: auto;
        padding: 24px 18px;
        box-sizing: border-box;
    }

    .step-num {
        width: 45px;
        height: 45px;
        font-size: 21px;
    }

    .steps h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .steps p {
        font-size: 15px;
        line-height: 1.7;
    }

    .steps img {
        display: block;
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        margin: 15px auto 0;
        border-radius: 20px;
    }

    .dropdown-steps {
        flex-wrap: wrap;
    }

    /* Нижняя часть сайта */
    .footer {
        padding: 15px 10px;
        line-height: 1.7;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}