<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("css для контактов");
?>.contacts-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0 35px;
    color: #3d3d3d;
}

.contacts-page h1 {
    margin: 0 0 10px;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.15;
}

.contacts-page__lead {
    margin: 0 0 24px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}


/* =========================
   ОСНОВНЫЕ КОНТАКТЫ
   ========================= */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 82px;
    padding: 16px 18px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.contact-card > div:last-child {
    min-width: 0;
}

.contact-card__icon {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f7f7f7;
}

.contact-card__icon::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background-color: #f16522;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}


/* Телефон */

.icon-phone::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.7 3.3 3.3 4.9 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.7 21 3 13.3 3 3.7c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1z'/%3E%3C/svg%3E");

    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.7 3.3 3.3 4.9 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.7 21 3 13.3 3 3.7c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1z'/%3E%3C/svg%3E");
}


/* E-mail */

.icon-email::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");

    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}


/* Telegram */

.icon-telegram {
    background: #eef8fc;
}

.icon-telegram::before {
    background-color: #229ed9;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.9 3.2 18.8 20c-.2 1.2-.9 1.5-1.8.9l-4.7-3.5-2.3 2.2c-.3.3-.5.5-1 .5l.3-4.8 8.8-8c.4-.3-.1-.5-.6-.2L6.6 14 1.9 12.5c-1-.3-1-1 .2-1.5L20.3 4c.8-.3 1.8.2 1.6-.8z'/%3E%3C/svg%3E");

    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.9 3.2 18.8 20c-.2 1.2-.9 1.5-1.8.9l-4.7-3.5-2.3 2.2c-.3.3-.5.5-1 .5l.3-4.8 8.8-8c.4-.3-.1-.5-.6-.2L6.6 14 1.9 12.5c-1-.3-1-1 .2-1.5L20.3 4c.8-.3 1.8.2 1.6-.8z'/%3E%3C/svg%3E");
}


/* WhatsApp */

.icon-whatsapp {
    background: #eefbf2;
}

.icon-whatsapp::before {
    background-color: #25d366;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.8 11.8 0 0 0 12.1 0C5.6 0 .3 5.3.3 11.8c0 2.1.5 4.1 1.6 5.9L.2 24l6.5-1.7a11.7 11.7 0 0 0 5.4 1.4h.1c6.5 0 11.8-5.3 11.8-11.8 0-3.2-1.2-6.1-3.5-8.4z'/%3E%3C/svg%3E");

    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.8 11.8 0 0 0 12.1 0C5.6 0 .3 5.3.3 11.8c0 2.1.5 4.1 1.6 5.9L.2 24l6.5-1.7a11.7 11.7 0 0 0 5.4 1.4h.1c6.5 0 11.8-5.3 11.8-11.8 0-3.2-1.2-6.1-3.5-8.4z'/%3E%3C/svg%3E");
}

.contact-card__label {
    display: block;
    margin-bottom: 4px;
    color: #888;
    font-size: 13px;
}

.contact-card__value {
    display: block;
    max-width: 100%;
    color: #f16522;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.contact-card__value:hover {
    text-decoration: underline;
}


/* =========================
   INSTAGRAM / APP STORE /
   GOOGLE PLAY
   ========================= */

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 6px 0 28px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 72px;
    padding: 13px 16px;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    background: #fff;
    color: #3d3d3d;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .035);
    transition: .15s ease;
}

.platform-card:hover {
    border-color: #d7d7d7;
    transform: translateY(-1px);
    text-decoration: none;
}

.platform-card__icon {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.platform-card__icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.platform-card__text {
    min-width: 0;
}

.platform-card__text small {
    display: block;
    margin-bottom: 2px;
    color: #929292;
    font-size: 11px;
}

.platform-card__text strong {
    display: block;
    color: #3d3d3d;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.platform-instagram .platform-card__icon {
    background: radial-gradient(
        circle at 30% 110%,
        #ffd600 0 10%,
        #ff7a00 28%,
        #ff0169 52%,
        #d300c5 72%,
        #7638fa 100%
    );
    color: #fff;
}

.platform-appstore .platform-card__icon {
    background: #111;
    color: #fff;
}

.platform-googleplay .platform-card__icon {
    background: #f7f7f7;
}


/* =========================
   ДОСТАВКА
   ========================= */

.contacts-section {
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 10px;
    background: #f7f7f7;
}

.contacts-section h2,
.contacts-addresses h2,
.company-data h2 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 400;
}

.contacts-section p {
    margin: 7px 0;
    line-height: 1.55;
}


/* =========================
   АДРЕСА
   ========================= */

.contacts-addresses {
    margin-top: 20px;
    padding: 22px 24px;
    border: 1px solid #ededed;
    border-radius: 10px;
    background: #fff;
}

.contacts-addresses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px 22px;
}

.contacts-address {
    position: relative;
    min-width: 0;
    padding: 10px 10px 10px 24px;
    color: #555;
    font-size: 16px;
    line-height: 1.45;
}

.contacts-address::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f16522;
}

.contacts-addresses__note {
    margin: 15px 0 0;
    padding-top: 14px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================
   ДАННЫЕ КОМПАНИИ
   ========================= */

.company-data {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e2e2;
}

.company-data p {
    margin: 7px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.45;
}


/* =========================
   АДАПТАЦИЯ ПОД УЗКУЮ
   РАБОЧУЮ ОБЛАСТЬ
   ========================= */

@media (max-width: 1100px) {

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-card__value {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .platform-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}


@media (max-width: 800px) {

    .contacts-page {
        padding-left: 4px;
        padding-right: 4px;
    }

    .contacts-page h1 {
        font-size: 32px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .contacts-addresses__grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 500px) {

    .contacts-page h1 {
        font-size: 28px;
    }

    .contacts-page__lead {
        font-size: 15px;
    }

    .contact-card {
        padding: 14px;
    }

    .contact-card__value {
        font-size: 16px;
    }

    .contacts-section,
    .contacts-addresses {
        padding: 18px;
    }
}<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>