.o365-page {
    --o365-red: #df0505;
    --o365-red-dark: #990000;
    --o365-black: #090909;
    --o365-line: #dddddd;
    --o365-soft: #f8f8f8;
    background: #fff;
    color: var(--o365-black);
    font-family: Arial, Helvetica, sans-serif;
    padding: 18px 0 48px;
}

.o365-page * {
    box-sizing: border-box;
}

.o365-hero,
.o365-highlights,
.o365-plans,
.o365-advantage,
.o365-documents,
.o365-notes {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}

.o365-hero {
    min-height: 166px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.97) 57%, rgba(255, 242, 242, 0.64) 100%),
        repeating-linear-gradient(28deg, rgba(223, 5, 5, 0.13) 0 12px, rgba(255, 255, 255, 0.18) 12px 24px);
}

.o365-hero__angle {
    width: 120px;
    height: 166px;
    position: absolute;
    left: 0;
    top: 0;
    background:
        linear-gradient(132deg, var(--o365-red) 0 46%, #fff 46% 49%, transparent 49%),
        linear-gradient(50deg, transparent 0 49%, #fff 49% 52%, #050505 52% 100%);
    clip-path: polygon(0 0, 100% 0, 52% 50%, 100% 100%, 0 100%);
}

.o365-hero__content {
    width: min(1060px, calc(100% - 220px));
    margin-left: clamp(120px, 13vw, 184px);
    position: relative;
    z-index: 2;
    padding: 22px 0;
}

.o365-hero h1 {
    display: inline-block;
    margin: 0 0 9px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--o365-red);
    color: #060606;
    font-size: clamp(24px, 2.5vw, 33px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.o365-hero p {
    width: min(980px, 100%);
    margin: 0 0 9px;
    color: #111;
    font-size: 15px;
    line-height: 1.36;
    font-weight: 500;
}

.o365-hero p:last-child {
    margin-bottom: 0;
}

.o365-hero__tiles {
    width: 360px;
    height: 166px;
    position: absolute;
    right: 0;
    top: 0;
    pointer-events: none;
}

.o365-hero__tiles span {
    width: 190px;
    height: 86px;
    position: absolute;
    right: -18px;
    border: 1px solid rgba(223, 5, 5, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 95, 95, 0.52), rgba(223, 5, 5, 0.12));
    box-shadow: 0 14px 28px rgba(223, 5, 5, 0.12);
    transform: rotate(12deg);
}

.o365-hero__tiles span:nth-child(1) {
    right: 22px;
    top: -9px;
}

.o365-hero__tiles span:nth-child(2) {
    right: 145px;
    top: 52px;
    opacity: 0.65;
}

.o365-hero__tiles span:nth-child(3) {
    right: -78px;
    top: 70px;
    opacity: 0.78;
}

.o365-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 54px;
    align-items: center;
    padding: 16px 118px 18px;
}

.o365-highlight {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.o365-highlight i {
    color: var(--o365-red);
    font-size: 45px;
    line-height: 1;
}

.o365-highlight p {
    margin: 0;
    color: #111;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.o365-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.o365-plan-card {
    min-height: 424px;
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.o365-plan-card h2 {
    min-height: 29px;
    margin: 0 auto;
    width: calc(100% - 52px);
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #f20b0b, #b50000);
    border-radius: 0 0 14px 14px;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.o365-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px 4px;
    text-align: center;
}

.o365-price strong {
    color: #050505;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.o365-price span {
    color: #111;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.o365-price small {
    flex-basis: 100%;
    color: #111;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.o365-product {
    width: calc(100% - 62px);
    min-height: 25px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border: 1px solid var(--o365-red);
    border-radius: 7px;
    color: #111;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 900;
    text-align: center;
}

.o365-plan-card > p {
    min-height: 62px;
    margin: 0;
    padding: 0 20px 12px;
    color: #111;
    font-size: 11px;
    line-height: 1.28;
    font-weight: 700;
    text-align: center;
}

.o365-plan-card ul {
    list-style: none;
    display: grid;
    align-content: start;
    gap: 5px;
    margin: 0;
    padding: 0 22px 10px;
}

.o365-plan-card li {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    min-height: 16px;
    color: #111;
    font-size: 11px;
    line-height: 1.18;
    font-weight: 700;
}

.o365-plan-card li i {
    color: var(--o365-red);
    font-size: 12px;
    margin-top: 1px;
}

.o365-contract {
    min-height: 30px;
    display: grid;
    place-items: center;
    margin: 0 14px 8px;
    border: 1px solid var(--o365-red);
    border-radius: 9px;
    color: var(--o365-red);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
}

.o365-advantage {
    margin-top: 16px;
}

.o365-advantage h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0;
}

.o365-advantage__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.o365-advantage article {
    min-height: 74px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--o365-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
}

.o365-advantage article > i {
    color: var(--o365-red);
    font-size: 32px;
    line-height: 1;
}

.o365-advantage h3 {
    margin: 0 0 4px;
    color: #111;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.o365-advantage p {
    margin: 0;
    color: #111;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
}

.o365-documents {
    min-height: 166px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 128px;
    align-items: center;
    gap: 22px;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--o365-line);
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(255, 242, 242, 0.84), transparent 10%),
        #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.o365-documents__icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(180deg, #f20b0b, #b00000);
    font-size: 30px;
}

.o365-documents__content {
    padding: 22px 0;
}

.o365-documents h2 {
    display: inline-block;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--o365-red);
    color: #111;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.o365-documents ol {
    list-style: none;
    columns: 2;
    column-gap: 70px;
    counter-reset: documents;
    margin: 0;
    padding: 0;
}

.o365-documents li {
    counter-increment: documents;
    break-inside: avoid;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 10px;
    color: #111;
    font-size: 12px;
    line-height: 1.22;
    font-weight: 700;
}

.o365-documents li::before {
    content: counter(documents);
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--o365-red);
    font-size: 9px;
    font-weight: 900;
}

.o365-documents__watermark {
    justify-self: center;
    color: rgba(223, 5, 5, 0.38);
    font-size: 72px;
}

.o365-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
    padding: 18px 32px 0;
}

.o365-notes p {
    margin: 0 0 4px;
    color: #111;
    font-size: 12px;
    line-height: 1.28;
    font-weight: 600;
}

.o365-notes strong,
.o365-notes a {
    color: var(--o365-red);
    font-weight: 900;
}

@media (max-width: 1180px) {
    .o365-highlights {
        padding-left: 32px;
        padding-right: 32px;
        gap: 26px;
    }

    .o365-plans,
    .o365-advantage__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .o365-page {
        padding-top: 12px;
    }

    .o365-hero,
    .o365-highlights,
    .o365-plans,
    .o365-advantage,
    .o365-documents,
    .o365-notes {
        width: min(100% - 24px, 1440px);
    }

    .o365-hero {
        min-height: 240px;
    }

    .o365-hero__angle {
        width: 82px;
        height: 240px;
        opacity: 0.95;
    }

    .o365-hero__content {
        width: calc(100% - 84px);
        margin-left: 72px;
        padding: 18px 0;
    }

    .o365-hero h1 {
        font-size: 23px;
    }

    .o365-hero p {
        font-size: 13px;
    }

    .o365-hero__tiles {
        opacity: 0.3;
        right: -170px;
    }

    .o365-highlights,
    .o365-plans,
    .o365-advantage__grid,
    .o365-notes {
        grid-template-columns: 1fr;
    }

    .o365-highlights {
        gap: 14px;
        padding: 16px 0;
    }

    .o365-highlight {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 0 6px;
    }

    .o365-plan-card {
        min-height: 0;
    }

    .o365-documents {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        padding-right: 14px;
    }

    .o365-documents__content {
        padding: 18px 0;
    }

    .o365-documents ol {
        columns: 1;
    }

    .o365-documents__watermark {
        display: none;
    }

    .o365-notes {
        gap: 12px;
        padding: 16px 6px 0;
    }
}
