@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,600;14..32,700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f0;
    color: #1a1a1a;
    line-height: 1.5;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #ff8c00;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: #ff8c00;
}

.nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
}

.nav a.active {
    color: #ff8c00;
}

.nav a:hover {
    color: #ff8c00;
}

/* Герой */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 32px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.orange-text {
    color: #ff8c00;
}

.hero p {
    color: #666;
    margin-bottom: 25px;
}

/* Кнопки в герое */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ff8c00;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #e07c00;
    transform: translateY(-2px);
}

.btn-howto-hero {
    background: transparent;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.2s;
}

.btn-howto-hero:hover {
    background: #ff8c00;
    color: white;
    transform: translateY(-2px);
}

.btn-sell-hero {
    background: linear-gradient(135deg, #ff8c00, #ff5500);
    color: white;
    padding: 12px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-block;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}

.btn-sell-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.5);
    background: linear-gradient(135deg, #ff5500, #ff8c00);
}

/* Плавающая кнопка */
.float-sell-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff8c00, #ff5500);
    color: white;
    padding: 16px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: gentleWobble 2s ease-in-out infinite;
}

.float-sell-btn i {
    font-size: 1.2rem;
}

.float-sell-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 85, 0, 0.5);
    animation: none;
}

@keyframes gentleWobble {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Поиск */
.search-section {
    margin-bottom: 40px;
}

.search-card {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 60px;
    flex-wrap: wrap;
}

.search-card input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-size: 16px;
}

.search-btn {
    background: #ff8c00;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
}

.section-title {
    font-size: 28px;
    margin: 30px 0 20px;
}

/* Сетка карточек */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ad-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.2s;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ad-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ad-info {
    padding: 15px;
}

.ad-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.price {
    font-size: 22px;
    font-weight: 800;
    color: #ff8c00;
    margin: 8px 0;
}

.specs {
    color: #888;
    font-size: 13px;
    margin: 8px 0;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.ad-footer a {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
}

/* Видео */
.video-section {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.video-section h2 {
    margin-bottom: 20px;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    border-radius: 24px;
}

.video-caption {
    margin-top: 15px;
    color: #666;
}

/* Карточка объявления */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #ff8c00;
    text-decoration: none;
}

.ad-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 32px;
    padding: 25px;
    margin-bottom: 30px;
}

.ad-detail-grid img {
    width: 100%;
    border-radius: 24px;
}

.price-badge {
    font-size: 32px;
    font-weight: 800;
    color: #ff8c00;
    margin-bottom: 15px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.specs-grid div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Форма */
.contact-card, .submit-card {
    background: white;
    border-radius: 32px;
    padding: 25px;
    margin-bottom: 30px;
}

.contact-card h3, .submit-card h1 {
    margin-bottom: 20px;
}

.contact-card input, .contact-card textarea,
.submit-card input, .submit-card textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 5px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.reset-btn {
    background: #eee;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

.submit-btn {
    background: #ff8c00;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
}

.form-note {
    margin-top: 15px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* Страница "Как продать" */
.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.tip-card {
    background: white;
    border-radius: 28px;
    padding: 25px;
    position: relative;
    transition: 0.2s;
    text-align: center;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tip-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 140, 0, 0.15);
    margin-bottom: 15px;
}

.tip-icon {
    font-size: 40px;
    color: #ff8c00;
    margin-bottom: 15px;
}

.tip-card h3 {
    margin-bottom: 10px;
}

.tip-card p {
    color: #666;
}

.howto-cta {
    background: #ff8c00;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.howto-cta h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.howto-cta .btn-primary {
    background: white;
    color: #ff8c00;
}

/* Футер */
.footer {
    text-align: center;
    padding: 30px;
    background: #1a1a1a;
    color: white;
    margin-top: 40px;
    border-radius: 24px 24px 0 0;
}

.footer p {
    margin: 5px 0;
    font-size: 13px;
    opacity: 0.7;
}

/* ===== АДАПТАЦИЯ ПОД ТЕЛЕФОН ===== */
@media (max-width: 768px) {
    .page {
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 80%;
        text-align: center;
    }
    
    .btn-sell-hero {
        font-size: 1rem;
    }
    
    .search-card {
        flex-direction: column;
        border-radius: 30px;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .ads-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .ad-detail-grid {
        grid-template-columns: 1fr !important;
        padding: 20px;
    }
    
    .price-badge {
        font-size: 26px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .howto-cta {
        padding: 30px 20px;
    }
    
    .howto-cta h3 {
        font-size: 22px;
    }
    
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .float-sell-btn {
        padding: 12px 20px;
        font-size: 14px;
        bottom: 20px;
        right: 20px;
    }
    
    .float-sell-btn i {
        font-size: 14px;
    }
    
    .video-section {
        padding: 20px;
    }
    
    .video-section h2 {
        font-size: 20px;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}