/*
    section - inner tag of every component, so it applyes those styles automatically.
        Classes to use inside section:
        .subtitle
        .text - to apply common color of text
        .accent-color - to highlight specific text
        .link - to add color changing on hover


    .primary-block - the inner block of the component.
        Classes to use inside primary-block:
        .bg-hover - to add bg color changing on block hover (write to the same element on which the ".primary-block" class was applied)
        .text - to apply common color of text
        .accent-color - to highlight specific text
        .link - to add color changing on hover

    .secondary-block - inner block of the primary-block.
        Classes to use inside secondary-block:
        .bg-hover - to add bg color changing on block hover (write to the same element on which the ".secondary-block" class was applied)
        .text - to apply common color of text
        .accent-color - to highlight specific text
        .link - to add color changing on hover


    .tertiary-block - inner block secondary-block.
        Classes to use inside tertiary-block:
        .bg-hover - to add bg color changing on block hover (write to the same element on which the ".tertiary-block" class was applied)
        .text - to apply common color of text
        .accent-color - to highlight specific text
        .link - to add color changing on hover

*/

/*COMPONENT CONTAINER*/
section {
    background-color: var(--bg-color);
}
section h1, section h2, section h3 {
    color: var(--h-color);
}
section .text {
    color: var(--block-primary-text-color);
}
section .subtitle {
    color: var(--subtitle-color);
}
section .accent-color {
    color: var(--accent-color);
}
section .link:hover {
    color: var(--link-hover-color);
}

/*PRIMARY BLOCK*/
.primary-block {
    background-color: var(--block-primary-bg-color);
}
.primary-block.bg-hover:hover {
    background-color: var(--block-primary-bg-hover-color);
}
.primary-block h1, .primary-block h2, .primary-block h3 {
    color: var(--block-primary-h-color);
}
.primary-block .text {
    color: var(--block-primary-text-color);
}
.primary-block .accent-color {
    color: var(--block-primary-accent-color);
}
.primary-block .link:hover {
    color: var(--block-primary-link-hover-color);
}

/*SECONDARY BLOCK*/
.secondary-block {
    background-color: var(--block-secondary-bg-color);
    box-shadow: var(--block-secondary-box-shadow);
}
.secondary-block.bg-hover:hover {
    background-color: var(--block-secondary-bg-hover-color);
}
.secondary-block h1, .secondary-block h2, .secondary-block h3 {
    color: var(--block-secondary-h-color);
}
.secondary-block .text {
    color: var(--block-secondary-text-color);
}
.secondary-block .accent-color {
    color: var(--block-secondary-accent-color);
}
.secondary-block .link:hover {
    color: var(--block-secondary-link-hover-color);
}

div.container {
    max-width: 1550px;
}
grid-component .grid {
    --grid-gap: 36px;
}
grid-component .grid-component h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 46.88px;
    text-align: center;
    
    margin-bottom: 50px;

    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

grid-component .grid-component h2::before {
    content: "Робота";
    font-size: 14px;
    font-weight: 800;
    line-height: 16.41px;
    letter-spacing: 0.05em;
    text-align: center;
    color: #0BC4C7;
    text-transform: uppercase;
}

grid-item-default .primary-block.clickable:hover {
    box-shadow: 0px 0px 10.6px 0px #27474733;
}

grid-item-default .primary-block .bottom .bold_text svg circle {
    fill: #274747;
}

grid-item-default .primary-block .top a.item-title {
    font-size: 22px;
    font-weight: 700;
}

grid-component .grid-component .grid-item-wrapper .item-title::before {
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}
grid-component .grid-component .grid-item-wrapper:nth-of-type(1) .item-title::before {
    content: '';
    background-image: url('../images/icons/family.svg');
}
grid-component .grid-component .grid-item-wrapper:nth-of-type(2) .item-title::before {
    content: '';
    background-image: url('../images/icons/pediatric.svg');
}
grid-component .grid-component .grid-item-wrapper:nth-of-type(3) .item-title::before {
    content: '';
    background-image: url('../images/icons/therapy.svg');
}
grid-component .grid-component .grid-item-wrapper:nth-of-type(4) .item-title::before {
    content: '';
    background-image: url('../images/icons/endocrinology.svg');
}
grid-component .grid-component .grid-item-wrapper:nth-of-type(5) .item-title::before {
    content: '';
    background-image: url('../images/icons/urolog.svg');
}
grid-component .grid-component .grid-item-wrapper:nth-of-type(6) .item-title::before {
    content: '';
    background-image: url('../images/icons/androlog.svg');
}
grid-component .grid-component .grid-item-wrapper:nth-of-type(7) .item-title::before {
    content: '';
    background-image: url('../images/icons/sestra.svg');
}

grid-component grid-item-default .primary-block .bottom .bold_text {
    color: #05C2C5;
}
grid-component grid-item-default .primary-block.clickable:hover .bottom .bold_text .link {
    color: #274747;
}
grid-component grid-item-default .primary-block .bottom .bold_text svg circle {
    fill: #05C2C5;
}
grid-component grid-item-default .primary-block.clickable:hover .bottom .bold_text svg circle {
    fill: #274747;
}

footer-component ~ * section {
    padding: 0;
}