/* Страница кейса Garlyn — hero в стиле премиальной съёмки бренда */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.garlyn-page {
    margin: 0;
    background: #f3f3f3;
}

.garlyn-hero {
    position: relative;
    min-height: min(100vh, 920px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    padding: 0 24px 56px;
    background-color: #e8e8e8;
    background-image: url('../images/cases/Garlyn/back-Garlyn.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (max-width: 1024px) {
    .garlyn-hero {
        background-position: center 38%;
    }
}

/* Крошки внутри hero — тот же фон, что и у блока */
.garlyn-hero__breadcrumbs {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 86px 20px 12px;
    box-sizing: border-box;
    text-align: left;
}

@media (max-width: 768px) {
    .garlyn-hero {
        min-height: 80vh;
        padding: 0 20px 40px;
        background-position: center top;
    }

    .garlyn-hero__breadcrumbs {
        padding: 76px 16px 10px;
    }
}

.garlyn-hero__inner {
    flex: 1 1 auto;
    width: 100%;
    max-width: 720px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    min-height: 0;
}

.garlyn-hero__logo {
    display: block;
    width: min(420px, 88vw);
    height: auto;
    object-fit: contain;
}

.garlyn-hero__slogan {
    margin: 0;
    max-width: 36em;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 500 !important;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: #111111;
}

/* ——— О проекте ——— */

.garlyn-about {
    padding: 48px 20px 64px;
    box-sizing: border-box;
}

.garlyn-about__container {
    max-width: 1200px;
    margin: 0 auto;
}

.garlyn-about__frame {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 24px 32px;
    background: #ffffff;
    box-sizing: border-box;
}

.garlyn-about__title {
    margin: 0 0 20px;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    color: #111111;
}

.garlyn-about__text {
    margin: 0;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #333333;
}

@media (max-width: 768px) {
    .garlyn-about {
        padding: 32px 16px 48px;
    }

    .garlyn-about__frame {
        padding: 24px 20px;
    }

    .garlyn-about__title {
        margin-bottom: 16px;
    }
}

/* ——— Бизнес-задачи ——— */

.garlyn-tasks {
    padding: 0 20px 64px;
    box-sizing: border-box;
}

.garlyn-tasks__container {
    max-width: 1200px;
    margin: 0 auto;
}

.garlyn-tasks__title {
    margin: 0 0 24px;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    color: #111111;
}

.garlyn-tasks__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .garlyn-tasks__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .garlyn-tasks__grid {
        grid-template-columns: 1fr;
    }
}

.garlyn-task {
    margin: 0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 24px 32px;
    background: #ffffff;
    box-sizing: border-box;
}

.garlyn-task__title {
    margin: 0 0 12px;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
}

.garlyn-task__text {
    margin: 0;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #333333;
}

@media (max-width: 768px) {
    .garlyn-tasks {
        padding: 0 16px 48px;
    }

    .garlyn-tasks__title {
        margin-bottom: 20px;
    }

    .garlyn-tasks__grid {
        gap: 12px;
    }

    .garlyn-task {
        padding: 20px 16px;
    }

    .garlyn-task__title {
        margin-bottom: 10px;
    }
}

/* ——— Rich-контент / мокапы телефонов ——— */

.garlyn-rich {
    background: #ffffff;
    padding: 56px 20px 64px;
    box-sizing: border-box;
}

.garlyn-rich__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 48px);
    align-items: center;
}

.garlyn-rich__visual {
    min-width: 0;
}

.garlyn-rich__img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
}

.garlyn-rich__content {
    min-width: 0;
}

.garlyn-rich__title {
    margin: 0 0 20px;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(24px, 1.5vw, 32px);
    font-weight: 600;
    line-height: 1.25;
    color: #111111;
}

.garlyn-rich__text {
    margin: 0;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    color: #333333;
}

@media (max-width: 900px) {
    .garlyn-rich {
        padding: 40px 16px 48px;
    }

    .garlyn-rich__container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .garlyn-rich__visual {
        order: -1;
    }

    .garlyn-rich__title {
        margin-bottom: 16px;
    }
}

/* ——— Инструкции в карточке (текст слева, телефон справа) ——— */

.garlyn-instructions {
    background: #ffffff;
    padding: 56px 20px 64px;
    box-sizing: border-box;
}

.garlyn-instructions__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 48px);
    align-items: center;
}

.garlyn-instructions__content {
    min-width: 0;
}

.garlyn-instructions__visual {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.garlyn-instructions__img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.garlyn-instructions__title {
    margin: 0 0 20px;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    color: #111111;
}

.garlyn-instructions__text {
    margin: 0;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #111111;
}

@media (max-width: 900px) {
    .garlyn-instructions {
        padding: 40px 16px 48px;
    }

    .garlyn-instructions__container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .garlyn-instructions__content {
        text-align: center;
    }

    .garlyn-instructions__title {
        margin-bottom: 16px;
    }

    .garlyn-instructions__img {
        max-width: min(320px, 85vw);
    }
}

/* ——— Сравнение товаров (текст слева, видео справа) ——— */

.garlyn-compare {
    background: #ffffff;
    padding: 56px 20px 64px;
    box-sizing: border-box;
}

.garlyn-compare__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 48px);
    align-items: center;
}

.garlyn-compare__content {
    min-width: 0;
}

.garlyn-compare__visual {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.garlyn-compare__video-wrap {
    width: 100%;
    max-width: 280px;
    border: 2px solid #000000;
    border-radius: 40px;
    overflow: hidden;
    box-sizing: border-box;
    background: #000000;
}

.garlyn-compare__video {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.garlyn-compare__title {
    margin: 0 0 20px;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    color: #111111;
}

.garlyn-compare__text {
    margin: 0;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #111111;
}

@media (max-width: 900px) {
    .garlyn-compare {
        padding: 40px 16px 48px;
    }

    .garlyn-compare__container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .garlyn-compare__content {
        text-align: center;
    }

    .garlyn-compare__title {
        margin-bottom: 16px;
    }

    .garlyn-compare__video-wrap {
        max-width: min(320px, 85vw);
    }
}

/* ——— Обратная связь (форма + фото в одном блоке) ——— */

.garlyn-contact {
    padding: 36px 20px 48px;
    box-sizing: border-box;
    background: #f3f3f3;
}

.garlyn-contact__wrap {
    max-width: 900px;
    margin: 0 auto;
}

.garlyn-contact__shell {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 2.3fr);
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

@media (min-width: 901px) {
    .garlyn-contact__shell {
        max-height: 500px;
    }
}

.garlyn-contact__form-panel {
    padding: 24px 20px;
    box-sizing: border-box;
    background-color: #1a1a1a;
    background-image: url('../images/cases/Garlyn/back-form.webp');
    background-size: cover;
    background-position: center;
    min-height: 0;
}

@media (min-width: 901px) {
    .garlyn-contact__form-panel {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.garlyn-contact__title {
    margin: 0 0 10px;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    text-align: left;
    letter-spacing: 0.02em;
}

.garlyn-contact__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
}

.garlyn-contact__input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 10px;
    min-height: 46px;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    color: #111111;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    border-bottom: 2px solid #111111;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.garlyn-contact__input::placeholder {
    color: #666666;
}

.garlyn-contact__input:focus {
    border-bottom-color: #ff7222;
    box-shadow: 0 0 0 1px rgba(255, 114, 34, 0.2);
}

.garlyn-contact__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    margin-top: 0;
}

.garlyn-contact__checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #ff7222;
}

.garlyn-contact__checkbox span {
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.85);
}

.garlyn-contact__checkbox a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.garlyn-contact__checkbox a:hover {
    color: #ff7222;
}

.garlyn-contact__submit {
    margin-top: 10px;
    align-self: flex-start;
    padding: 12px 24px;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 600 !important;
    color: #111111;
    background: #e8e8e8;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.garlyn-contact__submit:hover:not(:disabled) {
    background: #d8d8d8;
}

.garlyn-contact__submit:disabled {
    cursor: not-allowed;
}

.garlyn-contact__photo {
    min-width: 0;
    min-height: 0;
    background: #e8e8e8;
    display: flex;
    align-items: stretch;
}

.garlyn-contact__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 901px) {
    .garlyn-contact__photo-img {
        max-height: 500px;
    }
}

@media (max-width: 900px) {
    .garlyn-contact {
        padding: 28px 16px 40px;
    }

    .garlyn-contact__shell {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .garlyn-contact__form-panel {
        padding: 22px 18px 24px;
    }

    .garlyn-contact__title {
        margin-bottom: 16px;
    }

    .garlyn-contact__photo {
        display: block;
    }

    .garlyn-contact__photo-img {
        min-height: 220px;
        max-height: 300px;
        flex: none;
    }
}
