* {
    font-family: 'Montserrat', sans-serif;
    color: #161616;
}

a {
    text-decoration: none;
    color: #161616;
}

body {
    background-color: rgb(253, 245, 238);
    margin: 0;
    padding: 2% 10%;
}

main {
    padding: 0.5%;
    width: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 30px;
    box-shadow: 0px 0px 45px -15px rgba(34, 60, 80, 0.15) inset;
}

.page {
    margin-top: 1%;
    margin-bottom: 1%;
    padding: 1% 1%;
    border-radius: 30px;
    box-shadow: 0px 0px 45px -15px rgba(34, 60, 80, 0.15) inset;
}

header {
    background-color: rgb(255, 255, 255);
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 10%;
    border-radius: 30px;
    box-shadow: 0px 0px 45px -15px rgba(34, 60, 80, 0.15) inset;
}

.logo {
    font-weight: 900;
    font-size: larger;
    text-align: center;
}

.rightblock {
    align-items: center;
    margin-left: auto;
    display: flex;
    gap: 30px;
}

.navbar {
    display: flex;
}

input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    color: #333;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 10px 15px;
    width: 61%;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.search-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-container .search-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #ff0000;
    font-size: 18px;
}

.site-footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.site-footer .logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.site-footer .footer-nav,
.site-footer .footer-contact {
    margin-bottom: 10px;
}

.site-footer a {
    text-decoration: none;
    margin: 0 5px;
}

.site-footer .footer-copy {
    margin-bottom: 5px;
}

#theme-toggle {
    background: none;
    border: 2px solid #161616;
    border-radius: 25px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: #161616;
    color: #fff;
}

body.dark-theme {
    background-color: #161616;
    color: #f0f0f0;
}

body.dark-theme a {
    color: #ffcc00;
}

body.dark-theme main {
    background-color: #2c2c2c;
    box-shadow: 0px 0px 45px -15px rgba(0,0,0,0.5) inset;
}

body.dark-theme header {
    border: 1px solid #444;
    background-color: #2c2c2c;
    box-shadow: 0px 0px 45px -15px rgba(0,0,0,0.5) inset;
}

body.dark-theme .logo {
    color: #f0f0f0;
}

body.dark-theme .rightblock a,
body.dark-theme .card a,
body.dark-theme main section a,
body.dark-theme .site-footer a {
    color: #ffcc00;
}

body.dark-theme .search-container {
    background-color: #444;
}

body.dark-theme .search-container input {
    color: #f0f0f0;
}

body.dark-theme .search-container .search-icon {
    filter: grayscale(100%) brightness(70%);
}

body.dark-theme .site-footer {
    background-color: #2c2c2c;
    color: #f0f0f0;
}

body.dark-theme main h2,
body.dark-theme main h3,
body.dark-theme h4 {
    color: #f0f0f0;
}

body.dark-theme main p,
body.dark-theme main ul li,
body.dark-theme .card p {
    color: #dcdcdc;
}

body.dark-theme main ul li::before {
    color: #ffcc00;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


body.dark-theme .card {
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 15px;
    padding: 15px;
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

body.dark-theme strong {
    color: #ffcc00;
    font-weight: 700;
}

footer {
    border: 1px solid #444;
    background-color: rgb(255, 255, 255);
    width: auto;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0px 0px 45px -15px rgba(34, 60, 80, 0.15) inset;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 10%;
    color: #161616;
}

body.dark-theme footer {
    background-color: #2c2c2c;
    box-shadow: 0px 0px 45px -15px rgba(0,0,0,0.5) inset;
    color: #f0f0f0;
}

.advantages, .provider-advantages {
    margin-top: 5%;
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0px 0px 45px -15px rgba(34, 60, 80, 0.15) inset;
    margin-bottom: 30px;

    
}

.advantages h3, .provider-advantages h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.advantages ul, .provider-advantages ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.advantages ul li, .provider-advantages ul li {
    background-color: #f5f5f5;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 500;
}

/* Отзывы */
.reviews {
    margin-bottom: 30px;
}

.reviews h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.reviews .card {
    width: 250px;
    text-align: center;
}

.reviews .card strong {
    display: block;
    margin-top: 10px;
}

/* Top Providers */
.top-providers {
    margin-bottom: 30px;
}

.top-providers h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.top-providers .card {
    width: 220px;
}

/* FAQ */
.faq {
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0px 0px 45px -15px rgba(34, 60, 80, 0.15) inset;
    margin-bottom: 30px;
}

.faq h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item strong {
    display: block;
    margin-bottom: 5px;
}

/* Темная тема */
body.dark-theme .advantages,
body.dark-theme .provider-advantages,
body.dark-theme .reviews .card,
body.dark-theme .top-providers .card,
body.dark-theme .faq {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

body.dark-theme .advantages ul li,
body.dark-theme .provider-advantages ul li {
    background-color: #444;
    color: #dcdcdc;
}

body.dark-theme .faq-item p,
body.dark-theme .faq-item strong {
    color: #dcdcdc;
}

body.dark-theme .reviews .card p,
body.dark-theme .top-providers .card p {
    color: #dcdcdc;
}

body.dark-theme .page {
    border: 1px solid #444;
    background-color: #252525;
    box-shadow: 0px 0px 45px -15px rgba(34, 60, 80, 0.15) inset;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    min-height: 60vh; /* большой блок */
    padding: 80px 20px;

    border-radius: 30px;
    margin-bottom: 30px;

    background: linear-gradient(135deg, #efe6ff, #bab3ff);
    color: #fff;

    box-shadow: 0px 10px 40px rgba(34, 60, 80, 0.15);
}

.hero h1 {
    font-size: 44px;
    max-width: 800px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}   

.hero .btn-primary {
    background: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* === DARK THEME === */
body.dark-theme .hero {
    background: linear-gradient(95deg, #615f74, #8a6afc);
    box-shadow: 0px 10px 40px rgba(0,0,0,0.4);
}

body.dark-theme .hero .btn-primary {
    background: #ffcc00;
    color: #161616;
}

/* === Dark Theme для FAQ с раскрывающимися блоками === */
body.dark-theme .faq {
    background-color: #2c2c2c; /* общий фон */
    border: 1px solid #444; /* рамка */
}

body.dark-theme .faq h3 {
    color: #f0f0f0;
}

body.dark-theme .faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

body.dark-theme .faq-question {
    color: #ffcc00; /* яркий цвет для вопросов */
    background-color: transparent;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    padding: 12px 0;
    transition: color 0.3s ease;
}

body.dark-theme .faq-question:hover {
    color: #ffd633; /* чуть светлее при наведении */
}

body.dark-theme .faq-answer {
    color: #dcdcdc; /* цвет текста ответа */
    padding: 0 12px;
    display: none; /* скрываем до клика */
    transition: all 0.3s ease;
}

body.dark-theme .faq-item.active .faq-answer {
    display: block;
}

/* === Dark Theme для текстовых блоков типа <p> === */
body.dark-theme p {
    color: #dcdcdc;
    line-height: 1.6;
    font-size: 16px;
}

body.dark-theme p a {
    color: #ffcc00;
    text-decoration: underline;
}

body.dark-theme p a:hover {
    color: #ffd633;
}

/* === Если нужно выделение внутри FAQ, например "Но вы можете…" === */
body.dark-theme .faq-answer strong,
body.dark-theme p strong {
    color: #ffcc00;
    font-weight: 700;
}

/* === Grid для отзывов с центрированием === */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center; /* центрируем карточки */
    width: 100%;
    max-width: 1200px; /* ограничиваем максимальную ширину всего блока */
    margin: 0 auto; /* центрируем сам контейнер */
    box-sizing: border-box;
}

.card {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(34, 60, 80, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* занимает всю ячейку grid */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 60, 80, 0.15);
}

/* === Отзывы: центрирование и адаптивные карточки === */
.reviews .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center; /* центрируем ряд */
    width: 100%;
    max-width: 1200px; /* блок не растягивается сверх */
    margin: 0 auto; /* центрируем контейнер */
    box-sizing: border-box;
}

.reviews .card {
    width: 84%; /* занимает всю ячейку grid */
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(34, 60, 80, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reviews .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 60, 80, 0.15);
}

/* === Dark Theme === */
body.dark-theme .reviews .card {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

body.dark-theme .reviews .card p,
body.dark-theme .reviews .card strong {
    color: #dcdcdc;
}

/* === PROFILE DARK THEME === */

body.dark-theme .profile-container {
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0px 0px 45px -15px rgba(0,0,0,0.5) inset;
}

body.dark-theme .profile-username {
    color: #ffcc00;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

body.dark-theme .profile-avatar {
    border: 3px solid #444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

body.dark-theme .profile-info {
    margin-top: 15px;
}

body.dark-theme .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

body.dark-theme .info-label {
    color: #aaa;
}

body.dark-theme .info-value {
    color: #f0f0f0;
    font-weight: 500;
}

/* === КНОПКИ === */
body.dark-theme .profile-button {
    background-color: #252525;
    border: 2px solid #ffcc00;
    color: #2b2b2b;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-theme .profile-button:hover {
    background-color: #ffcc00;
    color: #161616;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

/* === МОДАЛКИ === */
body.dark-theme .modal {
    background-color: rgba(0,0,0,0.7);
}

body.dark-theme .modal-content {
    background-color: #2c2c2c;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    color: #f0f0f0;
}

body.dark-theme .modal h3 {
    color: #ffcc00;
    margin-bottom: 15px;
}

body.dark-theme .modal input {
    background-color: #444;
    border-radius: 10px;
    padding: 10px;
    color: #f0f0f0;
}

body.dark-theme .modal input::placeholder {
    color: #aaa;
}

body.dark-theme .modal-close {
    color: #ffcc00;
    font-size: 22px;
    cursor: pointer;
}

body.dark-theme .modal-close:hover {
    color: #ffd633;
}

/* === БЛОК "НЕТ КОМПАНИИ" === */
body.dark-theme .profile-container div {
    color: #dcdcdc;
}

/* === FLEX ОБЁРТКА === */
body.dark-theme .profileholder {
    gap: 20px;
}




/* === АДАПТИВ === */
@media (max-width: 768px) {
    body.dark-theme .profileholder {
        flex-direction: column;
        align-items: center;
    }

    body.dark-theme .profile-container {
        width: 100%;
    }
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
    .hero {
        margin: 1%;
        min-height: 50vh;
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }
}   

/* Планшеты */
@media (min-width: 481px) and (max-width: 1024px) {
    body {
        padding: 1% 1%;
    }

    header {
        width: auto;
        padding: 20px;
        gap: 8%;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.5em;
        margin-left: 2%;
        text-align: left;
    }

    .rightblock {
        gap: 30px;
        margin-left: auto;
    }

    .search-container {
        width: 70%;
        padding: 8px 12px;
    }

    main {
        padding: 1.5%;
        border-radius: 25px;
    }

    footer {
        width: 95%;
        padding: 20px;
        gap: 8%;
    }

    .site-footer .logo {
        font-size: 22px;
    }
}



@media (max-width: 480px) {
    header {
        width: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 2% 3%;
        margin-bottom: 3%;
    }
    .logo, .rightblock {
        text-align: center;
        margin: 0;
        display: flex;
        justify-content: center;
        margin: 3%;
    }
    .search-container {
        width: 92%;
        margin-bottom: 3%;
    }

    body {
        padding: 5% 5%;
    }

    footer {
        width: 93%;
        flex-direction: column;
        align-items: stretch;
        padding: 2% 3%;
    }
    .reviews .card {
        margin-left: 1%;
    }
}
