/* ==========================================================
   Grand Line — единый финальный CSS
   Этот файл можно использовать вместо текущего style.css
   ========================================================== */

.brand-page,
.brand-profiles,
.gl-coatings,
.gl-advantages,
.gl-price-block,
.brand-page *,
.brand-profiles *,
.gl-coatings *,
.gl-advantages *,
.gl-price-block * {
    box-sizing: border-box;
}

.brand-page,
.brand-profiles,
.gl-coatings,
.gl-advantages,
.gl-price-block {
    width: 100%;
    margin: 0 0 38px;
}

.brand-page__intro,
.brand-profiles__header,
.gl-coatings__header,
.gl-advantages__header,
.gl-price-block__header {
    max-width: 1050px;
    margin-bottom: 22px;
}

.brand-page__intro h2,
.brand-profiles__header h2,
.gl-coatings__header h2,
.gl-advantages__header h2,
.gl-price-block__header h2 {
    margin-top: 0;
}

.brand-page__choice-grid,
.brand-profiles__grid,
.gl-coatings__grid,
.gl-advantages__grid,
.gl-price-block__grid {
    display: grid;
    gap: 18px;
}

/* Первый блок */

.brand-page__choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-page__choice-card {
    display: flex;
    min-width: 0;
    padding: 19px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.brand-page__choice-number {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 14px;
    border-radius: 50%;
    background: #d9234e;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.brand-page__choice-content {
    min-width: 0;
}

.brand-page__choice-content h3 {
    margin: 0 0 8px;
}

.brand-page__choice-content p {
    margin: 0;
}

.brand-page__calculation,
.gl-price-summary,
.gl-coatings__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #e4e4e4;
    background: #fafafa;
}

.brand-page__calculation-content,
.gl-price-summary__content {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-page__calculation-content h3,
.gl-price-summary__content h3 {
    margin: 0 0 8px;
}

.brand-page__calculation-content p,
.gl-price-summary__content p,
.gl-coatings__footer p {
    margin: 0;
}

/* Профили */

.brand-profiles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-profile-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.brand-profile-card:hover {
    transform: translateY(-3px);
    border-color: #d7d7d7;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.brand-profile-card__image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f5f5f5;
}

.brand-profile-card__image-link {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
}

.brand-profile-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.brand-profile-card:hover .brand-profile-card__image img {
    transform: scale(1.035);
}

.brand-profile-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px;
}

.brand-profile-card__content h3 {
    margin: 0 0 9px;
    font-size: 18px;
}

.brand-profile-card__content h3 a,
.brand-profile-card__button {
    position: relative;
    z-index: 2;
}

.brand-profile-card__content h3 a {
    color: inherit;
    text-decoration: none;
}

.brand-profile-card__content h3 a:hover {
    color: #d9234e;
}

.brand-profile-card__content p {
    margin: 0 0 13px;
}

.brand-profile-card__content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-profile-card__content li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 22px;
}

.brand-profile-card__content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}

.brand-profile-card__action {
    margin-top: auto;
    padding-top: 16px;
}

.brand-profile-card__button,
.gl-coating-card__button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d9234e;
    font-weight: 600;
    text-decoration: none;
}

.brand-profile-card__button:hover,
.gl-coating-card__button:hover {
    color: #b7193f;
    text-decoration: none;
}

.brand-profile-card__overlay-link,
.gl-coating-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.brand-profiles__note {
    margin-top: 18px;
    color: #777;
    font-size: 13px;
}

/* Покрытия */

.gl-coatings__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.gl-coating-card {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gl-coating-card:hover {
    transform: translateY(-3px);
    border-color: #d7d7d7;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.gl-coating-card__top {
    margin-bottom: 12px;
}

.gl-coating-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.gl-coating-card h3 a,
.gl-coating-card__button {
    position: relative;
    z-index: 2;
}

.gl-coating-card h3 a {
    color: inherit;
    text-decoration: none;
}

.gl-coating-card h3 a:hover {
    color: #d9234e;
}

.gl-coating-card__type {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .25px;
    text-transform: uppercase;
}

.gl-coating-card__type--glossy,
.gl-coating-card__type--smooth {
    background: #eaf7ef;
    color: #247244;
}

.gl-coating-card__type--matt {
    background: #eaf2fb;
    color: #225f9e;
}

.gl-coating-card__type--textured {
    background: #f1f1f1;
    color: #555;
}

.gl-coating-card__type--matt-textured {
    background: #eeeaf7;
    color: #624a89;
}

.gl-coating-card__type--protective {
    background: #edf7f6;
    color: #246d68;
}

.gl-coating-card__type--premium {
    background: #fff3d6;
    color: #866100;
}

.gl-coating-card p {
    margin: 0 0 14px;
}

.gl-coating-card ul {
    flex-grow: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gl-coating-card li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 22px;
}

.gl-coating-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}

.gl-coating-card__action {
    margin-top: auto;
    padding-top: 16px;
}

.gl-coatings__button {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Преимущества и цена */

.gl-advantages__grid,
.gl-price-block__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gl-advantages__card,
.gl-price-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.gl-advantages__card h3,
.gl-price-card h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
}

.gl-advantages__card p,
.gl-price-card p {
    margin: 0;
}

.gl-advantages__footer {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.gl-advantages__footer p {
    margin: 0;
}

.gl-price-summary__button,
.brand-page__button {
    white-space: nowrap;
}

/* Адаптивность */

@media (max-width: 1100px) {
    .brand-profiles__grid,
    .gl-coatings__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gl-advantages__grid,
    .gl-price-block__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .brand-page,
    .brand-profiles,
    .gl-coatings,
    .gl-advantages,
    .gl-price-block {
        margin-bottom: 30px;
    }

    .brand-page__choice-grid,
    .brand-profiles__grid,
    .gl-coatings__grid,
    .gl-advantages__grid,
    .gl-price-block__grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .brand-page__choice-card,
    .gl-coating-card,
    .gl-advantages__card,
    .gl-price-card {
        padding: 15px;
    }

    .brand-profile-card__image {
        height: 180px;
    }

    .brand-page__calculation,
    .gl-price-summary,
    .gl-coatings__footer {
        display: block;
        padding: 16px 15px;
    }

    .brand-page__calculation-action,
    .gl-price-summary__action {
        margin-top: 15px;
    }

    .brand-page__button,
    .gl-price-summary__button,
    .gl-coatings__button {
        display: block;
        width: 100%;
        margin-top: 14px;
        white-space: normal;
        text-align: center;
    }

    .brand-profile-card:hover,
    .gl-coating-card:hover {
        transform: none;
    }
}

/* FAQ Grand Line */

.gl-faq-section,
.gl-faq-section * {
    box-sizing: border-box;
}

.gl-faq-section {
    width: 100%;
    margin: 0 0 38px;
}

.gl-faq-section__header {
    max-width: 1050px;
    margin-bottom: 20px;
}

.gl-faq-section__header h2 {
    margin-top: 0;
}

.gl-faq {
    border-top: 1px solid #e5e5e5;
}

.gl-faq__item {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.gl-faq__item summary {
    position: relative;
    padding: 17px 46px 17px 0;
    cursor: pointer;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    list-style: none;
}

.gl-faq__item summary::-webkit-details-marker {
    display: none;
}

.gl-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #d9234e;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.gl-faq__item[open] summary::after {
    content: "−";
}

.gl-faq__answer {
    padding: 0 46px 18px 0;
}

.gl-faq__answer p {
    margin: 0;
}

@media (max-width: 700px) {
    .gl-faq-section {
        margin-bottom: 30px;
    }

    .gl-faq__item summary {
        padding-right: 38px;
        font-size: 15px;
    }

    .gl-faq__answer {
        padding-right: 0;
    }
}

/* Перелинковка Grand Line */

.gl-related,
.gl-related * {
    box-sizing: border-box;
}

.gl-related {
    width: 100%;
    margin: 0 0 38px;
}

.gl-related__header {
    max-width: 1050px;
    margin-bottom: 20px;
}

.gl-related__header h2 {
    margin-top: 0;
}

.gl-related__header p {
    margin-bottom: 0;
}

.gl-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gl-related__item {
    display: flex;
    min-width: 0;
    min-height: 108px;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.gl-related__item:hover {
    transform: translateY(-2px);
    border-color: #d7d7d7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    color: inherit;
    text-decoration: none;
}

.gl-related__item strong {
    display: block;
    margin-bottom: 7px;
    color: #222;
    font-size: 16px;
    line-height: 1.35;
}

.gl-related__item:hover strong {
    color: #d9234e;
}

.gl-related__item span {
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 991px) {
    .gl-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gl-related {
        margin-bottom: 30px;
    }

    .gl-related__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gl-related__item {
        min-height: 0;
        padding: 15px;
    }

    .gl-related__item:hover {
        transform: none;
    }
}

