@font-face {
    font-family: "PFDinTextCondPro";
    src: url("/assets/fonts/PFDinTextCondPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PFDinTextCondPro";
    src: url("/assets/fonts/PFDinTextCondPro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

:root {
    --blue: #123864;
    --blue-dark: #0b2b50;
    --red: #ed1c24;
    --red-dark: #c9151c;
    --text: #172033;
    --muted: #5c6b7a;
    --light: #f5f8fc;
    --border: #e3eaf2;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.container {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
}

.header-logo img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--blue);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--red);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f1f6fb 55%, #eaf2fa 100%);
    padding: 54px 0 58px;
}

.hero::before {
    content: "";
    position: absolute;
    right: -160px;
    top: -120px;
    width: 420px;
    height: 420px;
    background: rgba(18, 56, 100, 0.06);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    left: -110px;
    bottom: -160px;
    width: 300px;
    height: 300px;
    background: rgba(237, 28, 36, 0.06);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 46px;
    align-items: center;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-logo {
    width: min(520px, 100%);
    height: auto;
    display: block;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-content h1 {
    margin: 0 0 18px;
    color: var(--blue);
    font-family: "PFDinTextCondPro", Arial, sans-serif;
    font-size: clamp(42px, 4.6vw, 68px);
    line-height: 0.92;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-content p {
    margin: 0 0 28px;
    max-width: 650px;
    color: var(--muted);
    font-size: 24px;
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--red);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(237, 28, 36, 0.24);
}

.button:hover {
    background: var(--red-dark);
}

.button-secondary {
    background: #ffffff;
    color: var(--blue);
    border: 1px solid var(--border);
    box-shadow: none;
}

.button-secondary:hover {
    background: var(--light);
}

.section {
    padding: 64px 0;
}

.section-light {
    background: var(--light);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section h2 {
    margin: 0;
    color: var(--blue);
    font-family: "PFDinTextCondPro", Arial, sans-serif;
    font-size: clamp(42px, 6vw, 62px);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.section-subtitle {
    margin: 10px 0 0;
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(18, 56, 100, 0.08);
}

.card-image {
    height: 220px;
    background: linear-gradient(135deg, rgba(18, 56, 100, 0.12), rgba(237, 28, 36, 0.10));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 26px;
}

.card-date {
    margin-bottom: 10px;
    color: var(--red);
    font-size: 15px;
    font-weight: 700;
}

.card h3 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 24px;
    line-height: 1.25;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.pharmacy-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pharmacy-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(18, 56, 100, 0.08);
}

.pharmacy-item h3 {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 25px;
}

.pharmacy-item p {
    margin: 8px 0;
    color: var(--text);
}

.pharmacy-item strong {
    color: var(--blue);
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.contact-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(18, 56, 100, 0.08);
}

.contact-box h3 {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 24px;
}

.contact-box p {
    margin: 8px 0;
    color: var(--muted);
}

.site-footer {
    padding: 34px 0;
    background: var(--blue);
    color: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
}

.footer-logo {
    width: 220px;
    filter: brightness(0) invert(1);
}

.empty-box {
    padding: 26px;
    background: #ffffff;
    border: 1px dashed var(--border);
    border-radius: 22px;
    color: var(--muted);
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
    }

    .hero-logo {
        width: min(460px, 100%);
    }
}

@media (max-width: 900px) {
    .container {
        width: min(1320px, calc(100% - 28px));
    }

    .header-inner {
        min-height: auto;
        padding: 18px 0;
        align-items: center;
        flex-direction: column;
    }

    .main-nav {
        gap: 18px;
        justify-content: center;
    }

    .hero {
        padding: 44px 0 50px;
    }

    .cards,
    .pharmacy-list,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }
}

@media (max-width: 560px) {
    .hero-content h1 {
        font-size: 52px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .button {
        width: 100%;
    }

    .card-body,
    .pharmacy-item,
    .contact-box {
        padding: 22px;
    }
}
/* === Правки от 19.06: шапка, размер значка, ширина блоков === */

/* Делаем сайт шире: меньше пустых полос слева и справа */
.container {
    width: min(1560px, calc(100% - 20px));
}

/* Верхняя шапка сайта */
.site-header {
    background: var(--blue);
    border-bottom: none;
}

/* Уменьшаем высоту верхней части */
.header-inner {
    min-height: 58px;
}

/* Значок ПУЛЬС сверху — в 2 раза меньше */
.header-logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.header-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Слова меню в шапке — белые */
.main-nav a {
    color: #ffffff;
    font-size: 17px;
}

.main-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Первый баннер тоже делаем шире и плотнее */
.hero {
    padding: 42px 0 46px;
}

/* Уменьшаем пустоту в баннере */
.hero-inner {
    gap: 32px;
}

/* Логотип в баннере чуть компактнее */
.hero-logo {
    width: min(460px, 100%);
}

/* Зоны Акции / Аптеки / Контакты ближе к краям экрана */
.section .container {
    width: min(1560px, calc(100% - 20px));
}

/* Карточки акций шире */
.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Карточки аптек шире */
.pharmacy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Контакты тоже на всю доступную ширину */
.contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* На очень широких экранах можно показывать по 3 карточки */
@media (min-width: 1300px) {
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pharmacy-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* На телефонах оставляем аккуратные отступы */
@media (max-width: 760px) {
    .container,
    .section .container {
        width: min(100%, calc(100% - 24px));
    }

    .header-inner {
        min-height: auto;
        padding: 12px 0;
    }

    .header-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .header-logo img {
        width: 36px;
        height: 36px;
    }

    .main-nav a {
        font-size: 16px;
    }

    .cards,
    .pharmacy-list,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}