/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: #60579A;
    background: linear-gradient(180deg, #FFFFFF 25.37%, #F3F5ED 40.92%, #F0EFF5 100%);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
}

section {
    padding: 64px 0px;
}

.hero-section {
    background-image: url(https://cartomirro.com/wp-content/themes/converted-theme/assets/images/hero-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    padding-top: 106px;
    padding-bottom: 0px;
}

.hero-top {
    max-width: 735px;
    margin-bottom: 72px;
}

.heading-secondary {
    font-weight: 400;
    font-size: 56px;
    line-height: 110.00000000000001%;
}

.hero-btns {
    display: flex;
    margin-top: 32px;
    gap: 12px;
}

.btn {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 160%;
}

.btn-primary {
    background-color: #60579A;
}

.btn-outline {
    border: 1px solid #FFFFFF;
}

.hero-bottom {
    max-width: 310px;
    margin-left: auto;
}

.text {
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
}

.heading-primary {
    font-weight: 500;
    font-size: 210px;
    line-height: 90%;
    text-align: center;
    text-transform: capitalize;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0px;
    z-index: 99;
    transition: all 0.3s ease-in-out;
}

.header.scrolled .nav-link {
    color: #60579A;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 168px;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
    text-transform: capitalize;
}

.cta-section .container {
    max-width: 601px;
    position: relative;
}

.cta-section .heading-secondary {
    position: absolute;
    top: -40px;
    left: 20px;
}

.cta-section {
    padding-top: 104px;
}

.btn-secondary {
    color:#00000080;
    border: 1px solid #00000080;
}

.cta-img {
    display: block;
    margin: 0 auto;
    margin-bottom: 32px;
    max-width: 270px;
}

.heading-secondary span {
    color: #fff;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.features-item {
    text-align: center;
    padding: 32px;
    background: #F4F8ED;
    border-radius: 10px;
    color: #4B5230;
}

.features-img {
    margin-bottom: 12px;
}

.heading-tertiary {
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    margin-bottom: 12px;
}

.features-section {
    position: relative;
}

img {
    max-width: 100%;
}

.features-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.features-bg img {
    max-width: unset
}

.testimonial-section .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.testimonial-info {
    max-width: 388px;
}

.testimonial-title {
    font-weight: 400;
    font-size: 40px;
    line-height: 110.00000000000001%;
    letter-spacing: 5%;
    margin-bottom: 112px;
}

.testimonial-name h4 {
    font-weight: 600;
    font-size: 24px;
    line-height: 160%;
}

.testimonial-img {
    transform: rotate(10deg);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    text-align: center;
    background: #C2BFE5;
    border-radius: 10px;
    padding: 32px;
}

.footer {
    background: #60579A;
    padding: 32px 0px;
    color: #fff;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-info {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin: 72px 0px;
}

.footer-text p {
    font-weight: 500;
    font-size: 64px;
    line-height: 120%;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer .text {
    color: #FFFFFF99;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social {
    min-width: 105px;
}

.heading-mobile {
    display: none;
}

.mobile-nav {
    display: none;
}

.burger {
    display: none;
}

.btn-light {
    background: #fff;
    color: #60579A;
}

.popup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #60579A;
    color: #fff;
    padding: 20px;
    max-width: 537px;
    z-index: 999;
}

.popup-title {
    font-weight: 400;
    font-size: 32px;
    line-height: 110.00000000000001%;
    letter-spacing: 4%;
    text-transform: capitalize;
    margin-bottom: 16px;
}

.popup.hidden {
    display: none;
}


.popup-btns {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.popup-btns button {
    border: none;
}

.popup-btns .btn-outline {
    background: transparent;
    border: 1px solid #fff;
}

@media(max-width: 1040px) {
    .header .nav-links {
        display: none;
    }

    .header .btn-primary {
        display: none;
    }

    .container {
        padding: 0 12px;
    }

    .popup {
        max-width: 360px;
    }
    .heading-primary {
        word-break: break-all;
        font-size: 139px;
        line-height: 90%;
    }

    .features-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .features-item-empty {
        display: none;
    }

    .heading-secondary {
        font-size: 40px;
    }

    .cta-section .heading-secondary {
        text-align: center;
        top: -150px;
        font-size: 56px;
    }

    .cta-section {
        padding-top: 228px;
    }

    .cta-section .heading-secondary.heading-mobile {
        display: block;
    }

    .cta-section .heading-secondary {
        display: none;
    }

    .features-bg {
        max-width: unset;
        left: 0;
        transform: none;
    }

    .features-section {
        overflow: hidden;
    }

    .testimonial-section .container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-text p {
        font-size: 40px;
    }

    .footer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .mobile-nav {
        position: fixed;
        height: 100svh;
        width: 100%;
        background: #60579A;
        z-index: 999;
        padding-bottom: 50px;
    }

    .mobile-nav.active {
        display: block;
    }

    body.no-scroll {
        overflow: hidden;
    }

    .mobile-nav .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        justify-content: space-between;
    }

    .burger {
        display: block;
        background: none;
        border: none;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 0px;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-link {
        text-decoration: none;
        color: #fff;
        font-weight: 400;
        font-size: 97px;
        line-height: 120%;
        text-transform: capitalize; 
    }
}

@media(max-width: 415px) {
    .footer-text p {
        word-break: break-word;
    }
}

*:focus {
    outline: 2px solid #60579A;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #60579A;
    outline-offset: 2px;
}

.btn {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    transform: translateY(0);
}

.btn-primary:hover {
    background-color: #4F457A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 87, 154, 0.3);
}

.btn-primary:focus {
    background-color: #4F457A;
    box-shadow: 0 0 0 3px rgba(96, 87, 154, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(96, 87, 154, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline:focus {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.btn-outline:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Вторичная кнопка */
.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:focus {
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 87, 154, 0.2);
}

.btn-light:focus {
    background-color: #f5f5f5;
    box-shadow: 0 0 0 3px rgba(96, 87, 154, 0.4);
}

.btn-light:active {
    transform: translateY(0);
    background-color: #e5e5e5;
}

.nav-link {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
}

.header.scrolled .nav-link:hover {
    color: #4F457A;
    background-color: rgba(96, 87, 154, 0.1);
}

.nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.header.scrolled .nav-link:focus {
    background-color: rgba(96, 87, 154, 0.1);
}

.nav-link:active {
    transform: translateY(0);
}

.mobile-nav-link {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 0;
    display: block;
    position: relative;
}

.mobile-nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-nav-link:focus {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding-left: 12px;
    margin-left: -12px;
}

.mobile-nav-link:active {
    transform: translateX(5px);
    color: #fff;
}

.burger {
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
}

.burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.header.scrolled .burger:hover {
    background-color: rgba(96, 87, 154, 0.1);
}

.burger:focus {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.header.scrolled .burger:focus {
    background-color: rgba(96, 87, 154, 0.1);
}

.burger:active {
    transform: scale(0.95);
}

.footer-nav .nav-link {
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
}

.footer-nav .nav-link::after {
    background-color: rgba(255, 255, 255, 0.8);
}

.footer-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.footer-nav .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-nav .nav-link:active {
    transform: translateY(0);
}

.footer-social a {
    display: block;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-social a:hover {
    transform: translateY(-2px) scale(1.05);
}

.footer-social a:focus {
    transform: scale(1.05);
}

.footer-social a:active {
    transform: translateY(0) scale(1);
}

.footer-social img {
    transition: all 0.3s ease;
}

.footer-social a:hover img {
    filter: brightness(1.2);
}

.header a:first-child,
.footer a:first-child,
.mobile-nav a:first-child {
    display: block;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header a:first-child:hover,
.mobile-nav a:first-child:hover {
    transform: scale(1.05);
}

.footer a:first-child:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.header a:first-child:focus,
.footer a:first-child:focus,
.mobile-nav a:first-child:focus {
    transform: scale(1.02);
}

.header a:first-child:active,
.footer a:first-child:active,
.mobile-nav a:first-child:active {
    transform: scale(0.98);
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn:focus {
    animation: pulse 2s infinite;
}

@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 2px;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn::before {
        transition: none;
    }
    
    .btn:hover::before {
        display: none;
    }
}

.main-section {
    padding: 80px 0px;
    padding-top: 140px;
}

.main-header .nav-link {
    color: #60579A;
}

.main-title {
    font-weight: 600;
    font-size: 36px;
    line-height: 110.00000000000001%;
    letter-spacing: -2%;
    text-align: center;
    margin-bottom: 48px;
}

.catalog-section .features-bg {
    min-width: 100%;
    top: 300px;
}

.catalog-section .features-bg img {
    width: 100%;
    height: auto;
}

.catalog-section {
    padding-top: 126px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.catalog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.catalog-item {
    background: #FFFFFF;
    padding: 12px;
    border-radius: 10px;
    padding-top: 68px;
    position: relative;
}

.catalog-page {
    background: linear-gradient(180deg, #F3F5ED 0%, #F3F5ED 40.92%, #F0EFF5 100%);
}

.catalog-title {
    position: absolute;
    top: 12px;
    right: 0px;
    width: calc(100% - 24px);
}

.catalog-item .btn-secondary,
.product-card .btn-secondary {
    border-color: #60579A;
    color: #60579A;
    width: 100%;
}

.catalog-img,
.catalog-img img {
    width: 100%;
}

.product-card {
    max-width: 600px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 32px;
    position: relative;
    z-index: 2;
}

.product-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    font-size: 40px;
    line-height: 110.00000000000001%;
    letter-spacing: 5%;
    text-align: center;
    margin-top: 12px;
}

.product-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #60579A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.product-price h3 {
    font-weight: 400;
    font-size: 32px;
    line-height: 110.00000000000001%;
    letter-spacing: 5%;
    text-align: center;
    text-transform: uppercase;
}

.catalog-description {
    position: relative;
    z-index: 2;
    margin-top: 32px;
}

.product-section .features-bg {
    top: 100px;
}

@media(max-width: 1040px) {
    .catalog-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .catalog-item-empty {
        display: none;
    }

    .catalog-section .features-bg img {
        width: auto;
    }

    .product-title {
        flex-wrap: wrap;
    }
}
