/* ============================================
   POTOLOK-KRD.RU — ОСНОВНЫЕ СТИЛИ
   ============================================ */

/* --- ПЕРЕМЕННЫЕ --- */
:root {
    --color-primary: #1E3A5F;
    --color-accent: #D4AF37;
    --color-accent-hover: #b8962e;
    --color-text: #2C3E50;
    --color-text-light: #5D6D7E;
    --color-bg-light: #F8F9FA;
    --color-white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
    --spacing-section: 80px;
}

/* --- СБРОС --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn--primary {
    background-color: #FFD700; /* Золотой ярче */
    color: #1E3A5F; /* Тёмно-синий текст для контраста */
    font-size: 18px; /* Крупнее текст */
    padding: 20px 40px; /* Больше отступов */
    font-weight: 700; /* Жирный шрифт */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); /* Тень */
}

.btn--primary:hover {
    background-color: #FFC700; /* Чуть темнее при наведении */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Вторичная кнопка — делаем видимой */
.btn--secondary {
    background-color: rgba(255, 255, 255, 0.95); /* Почти белая */
    border: 2px solid #FFFFFF; /* Белая рамка */
    color: #1E3A5F; /* Тёмно-синий текст */
    margin-left: 16px;
    font-size: 18px; /* Крупнее текст */
    padding: 20px 40px; /* Больше отступов */
    font-weight: 700; /* Жирный шрифт */
}

.btn--secondary:hover {
    background-color: #FFFFFF;
    color: #1E3A5F;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn--full {
    width: 100%;
    text-align: center;
}

.btn--small {
    padding: 10px 20px;
    font-size: 14px;
}

/* --- ШАПКА --- */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.header__contacts {
    text-align: right;
}

.header__phone {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 4px;
}

.header__cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.header__cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.header__messengers {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    color: var(--color-text-light);
}

.messenger-icon {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* --- HERO --- */
.hero {
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%), 
                url('../images/hero/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Фото не двигается при скролле */
}

.hero__container {
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero__content {
    max-width: 650px;
}

.hero__badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color:  #FFFFFF;
    margin-bottom: 20px;
}

.hero__lead {
    font-size: 20px;
    color:  #FFFFFF;
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero__features {
    list-style: none;
    margin-bottom: 40px;
}

.hero__features li {
    font-size: 18px;
    margin-bottom: 12px;
    color:  #FFFFFF;
}

.hero__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero__note {
    margin-top: 16px;
    font-size: 14px;
    color:  rgba(255, 255, 255, 0.8);
}

/* --- ДОВЕРИЕ (TRUST BAR) --- */
.trust {
    padding: var(--spacing-section) 0;
    background-color: var(--color-white);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.trust__item {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    background-color: var(--color-bg-light);
    transition: transform 0.3s ease;
}

.trust__item:hover {
    transform: translateY(-4px);
}

.trust__number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.trust__text {
    font-size: 16px;
    color: var(--color-text-light);
}

.trust__text small {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 600;
}

/* --- ДЛЯ КОГО (AUDIENCE) --- */
.audience {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

.audience__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.audience__card {
    background: var(--color-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.audience__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.audience__icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.audience__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.audience__text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- ПРЕИМУЩЕСТВА (ADVANTAGES) --- */
.advantages {
    padding: var(--spacing-section) 0;
    background-color: var(--color-white);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.advantages__item {
    padding: 32px;
    border-radius: 12px;
    background-color: var(--color-bg-light);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.advantages__item:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.advantages__icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.advantages__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.advantages__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- АКЦИИ (PROMOTIONS) --- */
.promotions {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg-light);
}

.promotions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.promo-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-8px);
}

.promo-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.promo-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    margin-top: 8px;
}

.promo-card__text {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* --- ПОРТФОЛИО (PORTFOLIO) --- */
.portfolio {
    padding: var(--spacing-section) 0;
    background-color: var(--color-white);
}

.portfolio__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portfolio__card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.portfolio__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.portfolio__image {
    width: 100%;
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.portfolio__info {
    padding: 24px;
}

.portfolio__location {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.portfolio__type {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 8px;
}

.portfolio__time {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}
/* --- БЛОК 7: ПРОЦЕСС РАБОТЫ --- */
.process {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg-light);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process__step {
    background: var(--color-white);
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.process__step:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.process__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.process__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.process__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- БЛОК 8: ОТЗЫВЫ --- */
.reviews {
    padding: var(--spacing-section) 0;
    background-color: var(--color-white);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.review-card {
    background: var(--color-bg-light);
    padding: 32px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.review-card__location {
    font-size: 14px;
    color: var(--color-text-light);
}

.review-card__text {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.review-card__source {
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- БЛОК 9: СРАВНЕНИЕ --- */
.comparison {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg-light);
}

.comparison__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison__column {
    background: var(--color-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.comparison__column--us {
    border-top: 4px solid var(--color-accent);
}

.comparison__column--them {
    border-top: 4px solid #ccc;
}

.comparison__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    text-align: center;
}

.comparison__list {
    list-style: none;
}

.comparison__list li {
    font-size: 15px;
    color: var(--color-text);
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.comparison__list li:last-child {
    border-bottom: none;
}
/* --- БЛОК 10: FAQ --- */
.faq {
    padding: var(--spacing-section) 0;
    background-color: var(--color-white);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid #eee;
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: left;
    font-family: var(--font-main);
    transition: color 0.3s ease;
}

.faq__question:hover {
    color: var(--color-accent);
}

.faq__icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.active .faq__answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq__answer p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- БЛОК 11: CTA --- */
.cta {
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a4a7f 100%);
    color: var(--color-white);
}

.cta__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-white);
}

.cta__subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.5;
}

.cta__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.cta__input {
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-main);
    width: 100%;
}

.cta__input:focus {
    outline: 2px solid var(--color-accent);
}

.cta__note {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 8px;
}

.cta__contacts {
    margin-bottom: 32px;
}

.cta__phone {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 12px;
}

.cta__messengers {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.messenger-link {
    color: var(--color-white);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.messenger-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-white);
}

.cta__schedule {
    font-size: 14px;
    opacity: 0.8;
}

.cta__trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 14px;
    opacity: 0.9;
}

/* --- БЛОК 12: FOOTER --- */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer__logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer__text {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 8px;
}

.footer__list a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer__list a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer__bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer__bottom a:hover {
    color: var(--color-accent);
}

/* Плавный скролл к форме при клике на телефон в футере */
.footer__scroll-to-form {
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer__scroll-to-form:hover {
    color: var(--color-accent) !important;
}

/* ============================================
   АДАПТИВ (МОБИЛЬНЫЕ УСТРОЙСТВА)
   ============================================ */
@media (max-width: 768px) {
    .process__grid { grid-template-columns: 1fr; }
    .reviews__grid { grid-template-columns: 1fr; }
    .comparison__grid { grid-template-columns: 1fr; }
    
    .faq__question { font-size: 15px; }
    .cta__title { font-size: 28px; }
    .cta__phone { font-size: 22px; }
    .cta__trust { flex-direction: column; gap: 12px; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
    
    .hero__title { font-size: 32px; }
    .hero__lead { font-size: 18px; }
    .hero__actions { flex-direction: column; }
    .btn--secondary { margin-left: 0; }
    
    .trust__grid { grid-template-columns: 1fr; gap: 16px; }
    .audience__grid { grid-template-columns: 1fr; }
    .advantages__grid { grid-template-columns: 1fr; }
    .promotions__grid { grid-template-columns: 1fr; }
    .portfolio__grid { grid-template-columns: 1fr; }
    
    .header__container { flex-direction: column; gap: 16px; }
    .header__contacts { text-align: center; }
    .header__messengers { justify-content: center; }
    .header__cta {
        display: block;
        text-align: center;
        margin: 8px auto;
        max-width: 240px;
    }
    
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; }
    }