:root {
    --primary: #000317;
    --secondary: #DABA6E;
    --success: #253281;
}


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

body {
    font-family: Roboto, Arial, sans-serif;
    background: var(--success);
    color: #111;
    line-height: 1.5;
}


.container {
    width: 100%;
    max-width: 1020px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    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: 40;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

.logo {
    display: block;
    width: 210px;
}
.logo img {
    display: block;
    width: 100%;
    height: auto;
}
.header-menu {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 1;
}
.header-menu__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.35rem;
    border: 1px solid var(--primary);
    border-radius: 60px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.header-menu__button::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
}
.header-menu__button:hover,
.header-menu:focus-within .header-menu__button,
.header-menu:hover .header-menu__button,
.header-menu.is-open .header-menu__button {
    border-color: var(--secondary);
    background: var(--primary);
    color: #fff;
}
.header-menu:hover .header-menu__button::after,
.header-menu:focus-within .header-menu__button::after,
.header-menu.is-open .header-menu__button::after {
    transform: rotate(225deg) translate(-2px, -1px);
}
.header-menu__burger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 38px;
    border: 1px solid var(--primary);
    border-radius: 60px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.header-menu__burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.header-menu__burger:hover,
.header-menu__burger:focus,
.header-menu.is-open .header-menu__burger {
    border-color: var(--secondary);
    background: var(--primary);
    color: #fff;
}
.header-menu__panel {
    position: absolute;
    top: calc(100% + 2px);
    right: 50%;
    z-index: 50;
    width: min(360px, calc(100vw - 32px));
    display: grid;
    gap: 6px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, -8px);
    transition: opacity 0.2s, transform 0.2s;
}
.header-menu__panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 10px;
}
.header-menu:hover .header-menu__panel,
.header-menu:focus-within .header-menu__panel,
.header-menu.is-open .header-menu__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(50%, 0);
}
.header-menu__panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}
.header-menu__panel a:hover,
.header-menu__panel a:focus {
    background: rgba(37, 50, 129, 0.08);
    color: var(--secondary);
}
.header-menu__panel .header-menu__mobile-link {
    display: none;
}



.hero {
    margin-top: 5rem;
    position: relative;
}
.hero .container {
    padding-top: 5rem;
    padding-bottom: 6rem;
    z-index: 2;
}
.hero__box {
    max-width: 680px;
}
.hero__head {
    margin-bottom: 2rem;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1.2;
}
.hero__desc {
    max-width: 550px;
    margin-bottom: 1.5rem;
    color: #fff;
}
.hero__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__button {
    background: var(--secondary);
}
.hero__button:hover {
    background: var(--success);
}



.content {
    margin-top: 2rem;
    padding: 1rem 2rem 4rem;
    color: #010101;
}
.header + .content {
    margin-top: 7rem;
}
.content .container {
    padding-top: 16px;
    padding-bottom: 20px;
    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.5rem;
    margin: 0 0 1.5rem;
    color: var(--primary);
    font-weight: 600;
    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 th p {
    margin-bottom: 0;
}
.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: #F5F5F5;
}
.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);
}
.pros-cons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.6rem;
}
.pros-cons__block {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.pros-cons__block--plus {
    background: rgba(37, 128, 72, 0.08);
    border-color: rgba(37, 128, 72, 0.2);
}
.pros-cons__block--minus {
    background: rgba(192, 49, 49, 0.08);
    border-color: rgba(192, 49, 49, 0.22);
}
.pros-cons__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
}
.pros-cons__head::before {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    line-height: 1;
}
.pros-cons__block--plus .pros-cons__head::before {
    content: "+";
    background: #258048;
}
.pros-cons__block--minus .pros-cons__head::before {
    content: "-";
    background: #c03131;
}
.pros-cons__body ul {
    margin: 0 0 0 1.25rem;
}
.pros-cons__body li {
    margin: 0.35rem 0;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid var(--secondary);
    border-radius: 8px;
    background: #f8f9ff;
}
.contact-form__row {
    display: grid;
    gap: 0.35rem;
}
.contact-form__row:nth-child(3),
.contact-form__row:nth-child(4) {
    grid-column: 1 / -1;
}
.contact-form label {
    font-weight: 600;
    color: var(--primary);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--secondary);
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    color: #010101;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--success);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--success);
    outline-offset: 2px;
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(37, 50, 129, 0.12);
}
.contact-form .button {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 210px;
}

.center-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 24px;
}






.author {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #f0f9ff;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 25px;
}
.author__photo {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}
.author__photo img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
.author__info {
    flex: 1;
}
.author__name {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}
.author__text {
    font-size: 14px;
    font-style: italic;
}

@media (max-width: 480px) {
    .author__photo {
        margin: 0 auto;
    }
    .author__info {
        flex: none;
        width: 100%;
        text-align: center;
    }
}





.prod-list {
    padding-top: 20px;
    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 {
    margin-bottom: 5px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
}
.prod-item__stars {
    padding-top: 4px;
}
.prod-item__stars-head {
    width: 100%;
    color: rgba(0, 0, 0 , .5);
    font-size: 15px;
}
.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;
    }

}



.about-me {
    padding-top: 25px;
    padding-bottom: 25px;
    background: rgba(255, 255, 255, 0.9);
}
.about-me__wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.about-me__photo {
    width: 220px;
    height: 220px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}
.about-me__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    overflow: hidden;
}
.about-me__info {
    width: calc(100% - 240px);
}
.about-me__name {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}
.about-me__posit {
    margin-bottom: 10px;
    font-size: 18px;
}
.about-me__desc {
    font-size: 14px;
}
@media (max-width: 600px) {
    .about-me__photo {
        width: 160px;
        height: 160px;
        margin: 0 auto 16px;
    }
    .about-me__info {
        width: 100%;
    }
}



.footer {
    background-color: #fff;
    border-top: 1px solid var(--primary);
    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: #010101;
}
.middle-block .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.attention {
    width: 100%;
    background: var(--success);
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
    font-size: 15px;
    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: #010101;
    color: #fff;
}

@media (max-width: 720px) {
    .header, .footer-top, .middle-block {
        flex-direction: column;
        text-align: center;
    }
    .header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .logo {
        flex: 0 1 92px;
        width: 92px;
        min-width: 72px;
    }
    .header-menu {
        flex: 0 0 auto;
        min-width: 0;
        font-size: 0.78rem;
    }
    .header-menu__button {
        display: none;
    }
    .header-menu__button::after {
        content: none;
    }
    .header-menu__burger {
        display: inline-flex;
    }
    .header .button {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0.5rem 0.65rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    .header-menu__panel {
        right: 50%;
        width: min(340px, calc(100vw - 32px));
    }
    .header-menu__panel .header-menu__mobile-link {
        display: block;
    }
    .hero {
        margin-top: 5rem;
    }

    .hero .container{
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
    .hero__info p {
        padding-right: 3rem;
    }

    .footer-menu {
        justify-content: center;
    }
    .content {
        padding: 1rem;
    }
    .header + .content {
        margin-top: 6.5rem;
    }
    .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;
    }
    .pros-cons {
        grid-template-columns: 1fr;
    }
    .button {
        padding: 0.6rem 1.3rem;
    }
    .contact-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .contact-form .button {
        justify-self: stretch;
    }
    .warning-text {
        text-align: center;
    }
}



@media (max-width: 450px) {
    .hero__info h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .hero__info p {
        padding-right: 0;
    }
}
