/* ===== RESET & BASE (market-bro.ru clone) ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #111111;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #777777;
    --accent: #0095ff;
    --accent-hover: #007acc;
    --accent-link: #ff8562;
    --accent-pink: #ee67e0;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --font-family: 'TildaSans', 'Arial', sans-serif;
    --container-width: 1200px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--accent-link); text-decoration: none; }
a:hover { color: var(--accent-link); opacity: 0.8; }
a[href^="tel"] { color: inherit; text-decoration: none; }
ul, ol { padding-left: 0; list-style: none; }
img { max-width: 100%; }
b, strong { font-weight: 700; }

/* ===== NAVIGATION (Tilda t229 clone) ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 990;
    height: 50px; background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nav-container {
    display: table; width: 100%; height: 50px;
    max-width: var(--container-width); margin: 0 auto;
}
.nav-center {
    display: table-cell; vertical-align: middle; text-align: center; width: 100%;
}
.nav-menu { display: inline-block; margin: 0; padding: 0; }
.nav-link {
    display: inline-block; padding: 0 15px;
    font-size: 16px; font-family: var(--font-family);
    color: #000000; text-decoration: none; white-space: nowrap;
    font-weight: 400; text-transform: lowercase;
}
.nav-link:hover { opacity: 0.7; color: #000000; }
.nav-toggle { display: none; }

@media screen and (max-width: 980px) {
    .navbar { position: static; height: auto !important; text-align: center; }
    .nav-container { display: block; height: auto; }
    .nav-center { display: block; text-align: center; padding: 20px 0; }
    .nav-link { display: block; padding: 12px 10px !important; white-space: normal; }
}

/* ===== HERO (Tilda t182 clone) ===== */
.hero {
    background-color: #000000;
    text-align: center; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}
.hero-content { padding: 150px 20px 100px; max-width: 800px; margin: 0 auto; }
.hero-title {
    font-family: var(--font-family);
    font-size: clamp(36px, 6vw, 72px); font-weight: 600;
    line-height: 1.17; color: #ffffff;
    letter-spacing: 1px; padding: 24px 0;
}
.hero-subtitle {
    font-family: var(--font-family);
    font-size: 22px; font-weight: 300; line-height: 1.55; color: #fff;
    padding: 0 0 8px;
}
.hero-tagline {
    font-family: var(--font-family);
    font-size: 20px; font-weight: 300; line-height: 1.55; color: #fff;
    padding-bottom: 15px;
}
.hero-buttons {
    margin-top: 45px; display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center; gap: 10px;
}

/* Buttons — matching original t581/t182 styles */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-family); font-weight: 600;
    text-align: center; white-space: nowrap; cursor: pointer;
    border: none; text-decoration: none; line-height: 1.4;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; color: inherit; }
.btn-primary {
    background-color: var(--accent); color: #ffffff;
    height: auto; padding: 18px 60px; font-size: 16px;
    text-transform: uppercase; border-radius: 30px;
}
.btn-secondary {
    background-color: var(--accent-pink); color: #ffffff;
    height: auto; padding: 18px 60px; font-size: 16px;
    text-transform: uppercase; border-radius: 30px;
}
.btn-outline {
    background-color: var(--accent); color: #ffffff;
    height: auto; padding: 18px 60px; font-size: 16px;
    border-radius: 100px;
}
.btn-outline:hover { background: var(--accent-hover); color: #fff; opacity: 1; }
.btn-full { width: 100%; }
.btn-contact {
    background-color: var(--accent); color: #ffffff;
    height: auto; padding: 12px 30px; font-size: 14px;
    border-radius: 5px;
}

/* ===== TICKER (Tilda t1003) ===== */
.ticker-section {
    background: #fff; padding: 20px 0; overflow: hidden;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.ticker-track {
    display: flex; animation: ticker-scroll 30s linear infinite; width: max-content;
}
.ticker-item {
    display: flex; align-items: center; flex-shrink: 0; white-space: nowrap;
    padding: 0 15px; font-size: 16px; color: #000;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== SERVICES SLIDER (Tilda t581) ===== */
.services { background: #fff; text-align: center; }
.services-wrapper { padding: 52px 20px 42px; }
.services-slider { max-width: 1100px; margin: 0 auto; }
.services-track {
    display: flex; gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 0 20px;
}
.services-track::-webkit-scrollbar { display: none; }
.service-card {
    scroll-snap-align: start; flex: 0 0 260px; background: #fff;
    border: 1px solid var(--border-light); border-radius: 4px;
    padding: 35px 26px 22px; text-align: left;
    display: flex; flex-direction: column; min-height: 380px;
}
.service-card-title {
    font-weight: 600; font-size: 20px; line-height: 1.35; color: #000;
    margin-bottom: 20px;
}
.service-card-list { list-style: disc; padding-left: 20px; flex: 1; }
.service-card-list li {
    font-weight: 300; font-size: 16px; line-height: 1.55; color: #000; margin-bottom: 8px;
}
.service-card-arrow {
    margin-top: auto; padding-top: 20px; font-size: 24px;
    color: var(--accent-link); cursor: pointer; text-align: right;
}
.service-card-cta {
    background: var(--accent); color: #fff; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.service-card-cta .service-card-title,
.service-card-cta .service-card-list,
.service-card-cta .service-card-list li { color: #fff; }
.service-card-cta .btn { margin-top: 20px; }
.slider-nav {
    display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px;
}
.slider-arrow {
    background: none; border: none; color: #000; font-size: 24px;
    cursor: pointer; padding: 5px 10px; opacity: 0.5;
}
.slider-arrow:hover { opacity: 1; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ccc;
    border: none; cursor: pointer; padding: 0;
}
.slider-dot.active { background: #000; }

/* ===== LEADS SECTION (Tilda t508) ===== */
.lead-section { background: #fff; padding: 60px 0; }
.lead-header { max-width: 800px; margin: 0 auto 55px; padding: 0 20px; }
.lead-header h2 {
    font-weight: 600; font-size: 42px; line-height: 1.23; color: #000; margin-bottom: 20px;
}
.lead-header p { font-weight: 300; font-size: 22px; line-height: 1.55; color: #000; }
.lead-items { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.lead-item {
    display: flex; gap: 40px; align-items: flex-start;
    margin-top: 55px; padding-bottom: 30px; border-bottom: 1px solid var(--border-light);
}
.lead-item:first-child { margin-top: 0; }
.lead-check {
    flex-shrink: 0; width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
}
.lead-check svg { width: 55px; height: 55px; }
.lead-item-content h3 {
    font-weight: 600; font-size: 20px; line-height: 1.35; color: #000; margin-bottom: 14px;
}
.lead-item-content p {
    font-weight: 300; font-size: 18px; line-height: 1.55; color: #000;
}

/* ===== ABOUT ===== */
.about-section { background: #fff; padding: 60px 0; text-align: center; }
.about-section h2 {
    font-weight: 600; font-size: 42px; line-height: 1.23; color: #000;
    margin-bottom: 20px; max-width: 700px; margin-left: auto; margin-right: auto; padding: 0 20px;
}
.about-subtitle {
    font-weight: 300; font-size: 22px; line-height: 1.55; color: #000;
    margin-bottom: 40px; padding: 0 20px;
}
.about-text {
    max-width: 700px; margin: 0 auto 50px;
    font-weight: 300; font-size: 20px; line-height: 1.55; color: #000; padding: 0 20px;
}
.about-ticker {
    background: var(--accent-link); padding: 15px 0; overflow: hidden; margin: 0 0 60px;
}
.about-ticker .ticker-item { color: #fff; font-weight: 600; font-size: 20px; }

/* ===== ADVANTAGES (Tilda t1007) ===== */
.advantages { background: #fff; padding: 60px 0 105px; }
.advantages-header { text-align: center; margin-bottom: 50px; padding: 0 20px; }
.advantages-header h2 {
    font-weight: 600; font-size: 42px; line-height: 1.23; color: #000; margin-bottom: 20px;
}
.advantages-header p {
    font-weight: 300; font-size: 22px; line-height: 1.55; color: #000; margin-bottom: 30px;
}
.advantages-grid {
    display: flex; flex-wrap: wrap; max-width: var(--container-width); margin: 0 auto;
}
.adv-card {
    width: 25%; padding: 70px 25px 0; text-align: center; position: relative;
}
.adv-card-icon {
    width: 100px; height: 100px; margin: 0 auto 30px; border-radius: 50%;
    background-color: #f5f5f5; display: flex; align-items: center;
    justify-content: center; font-size: 40px;
}
.adv-card h3 {
    font-weight: 600; font-size: 20px; line-height: 1.35; color: #000; padding-bottom: 20px;
}
.adv-card p {
    font-weight: 300; font-size: 16px; line-height: 1.55; color: #000;
}
@media screen and (max-width: 960px) {
    .adv-card { width: 100% !important; padding: 45px 5% 0; }
}

/* ===== CONTACT ===== */
.contact-section { background: #f5f5f5; padding: 60px 0 80px; text-align: center; }
.contact-section h2 {
    font-weight: 600; font-size: 42px; line-height: 1.23; color: #000; margin-bottom: 20px;
}
.contact-section .section-desc {
    font-weight: 300; font-size: 20px; line-height: 1.55; color: #000; margin-bottom: 50px;
}
.contact-grid { max-width: 700px; margin: 0 auto; padding: 0 20px; }
.contact-info-row {
    display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap;
}
.contact-info-item {
    display: flex; align-items: center; gap: 12px; font-size: 18px; color: #000;
}
.contact-form {
    background: #fff; padding: 40px; border-radius: 4px; text-align: left;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 300; font-size: 16px; color: #000; margin-bottom: 8px;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border);
    background: #fff; font-family: var(--font-family); font-size: 16px;
    color: #000; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer {
    background: #111111; color: #fff; padding: 50px 0 30px;
}
.footer-content {
    display: flex; justify-content: space-between;
    max-width: var(--container-width); margin: 0 auto;
    padding: 0 20px; gap: 40px; flex-wrap: wrap;
}
.footer-brand h4 {
    font-weight: 600; font-size: 22px; margin-bottom: 8px;
}
.footer-brand p { font-weight: 300; font-size: 14px; opacity: 0.7; }
.footer-links h4, .footer-contact h4 {
    font-weight: 600; font-size: 16px; margin-bottom: 16px; text-transform: lowercase;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #fff; opacity: 0.7; font-size: 14px; text-transform: lowercase; }
.footer-links a:hover { opacity: 1; }
.footer-contact p { font-size: 14px; opacity: 0.7; margin-bottom: 6px; }
.footer-bottom {
    max-width: var(--container-width); margin: 40px auto 0;
    padding: 20px 20px 0; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 13px; opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1200px) {
    .hero-title { font-size: 68px; }
    .lead-header h2, .about-section h2, .advantages-header h2, .contact-section h2 { font-size: 38px; }
    .lead-header p, .about-subtitle, .advantages-header p, .about-text { font-size: 20px; }
    .lead-item-content p { font-size: 16px; }
    .service-card { flex: 0 0 240px; }
}
@media screen and (max-width: 640px) {
    .hero-title { font-size: 30px; line-height: 1.1; }
    .hero-subtitle, .hero-tagline, .hero-description { font-size: 14px; }
    .hero-content { padding: 120px 20px 60px; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .btn-primary, .btn-secondary, .btn-contact { width: 100%; padding: 0 30px; height: 50px; font-size: 14px; }
    .lead-header h2, .about-section h2, .advantages-header h2, .contact-section h2 { font-size: 30px; }
    .lead-header p, .about-subtitle { font-size: 18px; }
    .about-text { font-size: 16px; }
    .lead-item { flex-direction: column; gap: 20px; }
    .lead-check { width: 40px; height: 40px; }
    .lead-check svg { width: 40px; height: 40px; }
    .service-card { flex: 0 0 85vw; min-height: 350px; }
    .contact-form { padding: 24px; }
    .service-card-title { font-size: 18px; }
    .lead-item-content h3 { font-size: 18px; }
}
@media screen and (max-width: 480px) {
    .hero-title { font-size: 30px; }
}
