:root {
    --primary: #015ab1;
    --secondary: #1798b4;
    --success: #c64962;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Metropolis, Roboto, sans-serif;
    background: #dfe7ee;
    color: #010101;
    line-height: 1.5;
}


.container {
    width: 100%;
    max-width: 1020px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
    overflow: hidden;
    transition: all 0.2s;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.button:hover {
    background-color: var(--secondary);
}

.button:active {
    transform: translateY(1px);
}

/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #fff;
    border-bottom: 3px solid var(--primary);
    z-index: 10;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 160px;
}
.logo img {
    display: block;
    width: 100%;
    height: auto;
}

.content {
    padding: 5rem 2rem 4rem;
    color: #010101;
}
.content .container {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #fff;
    backdrop-filter: blur(1px);
    border-radius: 0;
    box-shadow: 0 20px 35px -12px rgba(0, 20, 50, 0.25);
}
.content h1 {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}
.content h2 {
    font-size: 1.8rem;
    margin: 1.8rem 0 1rem 0;
    color: var(--primary);
    font-weight: 600;
}
.content h3 {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
    color: var(--primary);
}
.content p {
    margin-bottom: 1rem;
}
.content .table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0 24px;
    border-radius: 8px;
    border: 1px solid var(--secondary);
    background: white;
}
.content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 500px;
}
.content th {
    background-color: var(--primary);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.content td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--secondary);
    color: #010101;
}
.content tr:last-child td {
    border-bottom: none;
}
.content tr:hover td {
    background-color: #e5f8fd;
}
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin: 1rem 0 1.5rem;
}
.content ul,
.content ol {
    margin: 1rem 0 1rem 1.8rem;
}
.content li {
    margin: 0.4rem 0;
}
.content ul li::marker {
    color: var(--secondary);
}


.author {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    background: rgba(0, 0, 0, 0.01);
    padding: 8px;
    margin-bottom: 24px;
    border-radius: 8px;
}
.author__thumb {
    display: block;
    width: 64px;
    height: 64px;
}
.author__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
.author__info {
    flex: 1;
    font-size: 14px;
}
.author__info p {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .author__thumb {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    .author__info {
        width: 100%;
        flex: none;
    }
}


.prod-list {
    padding-bottom: 40px;
}
.prod-item {
    --first: var(--primary);
    --second: var(--secondary);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.25s ease;
}
.prod-item:hover {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
}
.prod-item:first-child {
    border-color: var(--second);
}
.prod-item__bage {
    position: absolute;
    top: -8px;
    left: -8px;
    padding: 2px 12px;
    background: var(--second);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}
.prod-item__thumb {
    width: 120px;
    height: 120px;
}
.prod-item__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
.prod-item__info {
    flex: 1;
    text-align: center;
}
.prod-item__name {
    font-size: 25px;
    font-weight: bold;
}
.prod-item__stars {
    padding-top: 4px;
}
.prod-item__stars-head {
    width: 100%;
    color: rgba(0, 0, 0 , .4);
    font-size: 16px;
}
.prod-item__stars-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.prod-item__stars-list img {
    display: block;
    width: 12px;
    height: 12px;
    margin: 0;
    object-fit: contain;
}
.prod-item__rating {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: green;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;;
}
.prod-item__read-more {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    padding: 8px 20px;
    border-radius: 28px;
    background: var(--first);
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}
.prod-item__read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.prod-item__read-more:hover {
    background: var(--second);
}


@media (max-width: 720px) {

    .prod-item {
        display: block;
    }
    .prod-item__thumb {
        margin: 0 auto 20px;
    }
    .prod-item__info {
        width: 100%;
        margin-bottom: 20px;
    }
    .prod-item__rating {
        width: 120px;
        margin: 0 auto 16px;
    }
    .prod-item__read-more {
        width: 220px;
        margin: 0 auto;
    }

}



.casi-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}
.casi-item {
    width: calc(50% - 8px);
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    border-radius: 8px;
    clear: both;
}
.casi-item img {
    float: right;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0;
}
.casi-item h3 {
    margin-top: 0.8rem;
}

@media (max-width: 720px) {
    .casi-item {
        width: 100%;
    }
}



.footer {
    background-color: #fff;
    color: #eef5ff;
}
.footer-top {
    padding: 1.2rem 0;
}
.footer-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;

}
.footer-logo {
    display: block;
    width: 210px;
}
.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
}
.footer-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.footer-menu a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.footer-menu a:hover {
    color: var(--success);
    text-decoration: underline;
}

.middle-block {
    padding: 1.8rem 0;
    background-color: var(--primary);
}
.middle-block .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.attention {
    width: 100%;
    font-size: 0.9rem;
    background: var(--success);
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
    font-weight: 500;
    text-align: center;
}
.control-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    width: 100%;
}
.control-logos img {
    max-height: 48px;
    width: auto;
    margin: 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    background: transparent;
    box-shadow: none;
    border-radius: 8px;
}

.copyright {
    width: 100%;
    border-top: 1px solid var(--secondary);
    text-align: center;
    padding: 1.3rem 0;
    font-size: 0.8rem;
    background-color: var(--primary);
    color: #fff;
}

@media (max-width: 720px) {
    .header, .footer-top, .middle-block {
        flex-direction: column;
        text-align: center;
    }
    .footer-menu {
        justify-content: center;
    }
    .content {
        padding: 1rem;
    }
    .content h1 {
        border-left: none;
        padding-left: 0;
        font-size: 1.7rem;
        line-height: 1.3;
        text-align: center;
    }
    .content h2 {
        font-size: 1.5rem;
        margin: 1.2rem 0 1rem 0;
    }
    .button {
        padding: 0.6rem 1.3rem;
    }
    .warning-text {
        text-align: center;
    }
}