/* ========================================== */
/* --- RESET & VARIABLES --- */
/* ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-color: #F4F4F6;
    --text-main: #111111;
    --accent-red: #FF2A2A;
    --white: #FFFFFF;
    --gray-light: #E0E0E0;
    --gray-dark: #555555;
}

body {
    font-family: 'Ubuntu', 'Trebuchet MS', 'Verdana', sans-serif;
    font-size: 18px;
    background-color: var(--bg-color);
    color: #393030;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================== */
/* --- CONTAINER --- */
/* ========================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }

/* ========================================== */
/* --- HEADER --- */
/* ========================================== */
header { padding: 25px 20px; position: relative; z-index: 100; max-width: 1200px; margin: auto; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 1.3rem; line-height: 1.1;
    text-transform: uppercase; top: 25px; left: 20px; z-index: 9999;
    padding: 4px 8px 4px 4px; border-radius: 8px; margin-bottom: -40px;
}

.logo-icon {
    width: 40px; height: 40px; background-color: var(--accent-red);
    color: #f4f4f6; display: flex; justify-content: center;
    align-items: center; border-radius: 4px; font-size: 4rem; font-weight: 700;
}

.logo-text span { display: block; font-weight: 400; font-size: 0.75rem; letter-spacing: 1px; opacity: 0.7; text-transform: none; }

/* ========================================== */
/* --- NAVIGATION --- */
/* ========================================== */
.desktop-nav ul { display: flex; gap: 30px; font-size: 1.2rem; font-weight: 500; }
.desktop-nav a { position: relative; display: inline-block; padding-bottom: 4px; }
.desktop-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background-color: var(--accent-red); transition: width 0.3s ease;
}
.desktop-nav a:hover { color: var(--accent-red); }
.desktop-nav a:hover::after { width: 100%; }

.socials { display: flex; gap: 15px; font-weight: 700; }
.socials a {
    border: 1px solid var(--text-main);
    border-radius: 20px;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
}
.socials a:hover { background-color: var(--text-main); color: var(--white); }

/* ========================================== */
/* --- BURGER & MOBILE MENU --- */
/* ========================================== */
.burger {
    display: none; position: fixed; top: 25px; right: 20px;
    width: 40px; height: 30px; background: transparent;
    border: none; cursor: pointer; z-index: 9999; padding: 0;
}
.burger span {
    display: block; position: absolute; height: 2px; width: 100%;
    background-color: var(--text-main); border-radius: 2px; left: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }
.burger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); background-color: var(--accent-red); }
.burger.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.burger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); background-color: var(--accent-red); }

.mobile-menu {
    position: fixed; inset: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 10;
    opacity: 0; visibility: hidden; transition: all 0.5s ease; transform: translateY(-100%);
}
.mobile-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mobile-menu a { font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; position: relative; }
.mobile-menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background-color: var(--accent-red); transition: width 0.3s ease;
}
.mobile-menu a:hover { color: var(--accent-red); }
.mobile-menu a:hover::after { width: 100%; }
.mobile-menu .mobile-socials { margin-top: 60px; display: flex; gap: 20px; }
.mobile-menu .mobile-socials a {
    border-radius: 20px; font-size: 1.4rem; width: 36px; height: 36px;
    display: flex; text-align: center; align-items: center; justify-content: center;
}
.mobile-menu .mobile-socials a:hover { background-color: var(--accent-red); color: var(--white); border-color: var(--accent-red); }

/* ========================================== */
/* --- HERO --- */
/* ========================================== */
.hero { position: relative; padding: 40px 0 160px; overflow: hidden; max-width: 1680px; margin: auto; }
.hero-bg { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: 100%; object-fit: cover; object-position: right center; z-index: 0; pointer-events: none; user-select: none; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero::before { content: ''; position: absolute; bottom: -500px; left: -200px; width: 800px; height: 800px; background-color: var(--accent-red); border-radius: 50%; z-index: 1; opacity: 0.9; }
.hero::after { content: ''; position: absolute; top: -360px; right: -460px; width: 700px; height: 700px; background-color: var(--accent-red); border-radius: 500px; z-index: 1; }

.hero-content { position: relative; z-index: 3; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><text x='50%' y='50%' text-anchor='middle' dominant-baseline='middle' font-family='Ubuntu' font-size='80' font-weight='700' fill='%23E15241' opacity='0.05'>R</text></svg>"); background-repeat: repeat; background-size: 850px 850px; }

h1 { font-weight: 700; line-height: 0.95; letter-spacing: -2px; margin-bottom: 30px; }
.hero-content h1 { font-size: 60px; color: #ff2a2a; }
.hero-subtitle { font-size: 1.20rem; font-weight: 400; max-width: 450px; margin-bottom: 40px; color: #000000; }

.btn-primary {
    display: inline-flex; align-items: center; color: var(--text-main);
    padding: 10px 20px; border-radius: 50px; font-size: 0.95rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; border: solid 1px;
}
.btn-primary:hover { transform: translateY(-1px); color: #f4f4f6; background-color: #fe3e3e; }
.hero-image { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero-image img { width: 100%; max-width: 500px; height: auto; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%); mask-image: linear-gradient(to bottom, black 50%, transparent 100%); }

/* ========================================== */
/* --- GENERAL SECTIONS --- */
/* ========================================== */
section { padding: 40px 0; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-dark); max-width: 700px; margin-bottom: 60px; padding: 0px 20px; text-align: left; }

/* ========================================== */
/* --- CHARTS --- */
/* ========================================== */
.charts-section { background-color: var(--white); }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }
.chart-card { background-color: var(--bg-color); border-radius: 20px; padding: 30px; transition: transform 0.3s ease; margin: 10px; }
.chart-card:hover { transform: translateY(-5px); }
.chart-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.chart-desc { font-size: 0.9rem; color: var(--gray-dark); margin-bottom: 25px; }

.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; height: 180px; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-light); }
.bar-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 100%; max-width: 40px; background-color: var(--accent-red); border-radius: 6px 6px 0 0; transition: height 1s ease; }
.bar-value { font-size: 0.8rem; font-weight: 700; margin-bottom: 5px; }
.bar-label { font-size: 0.8rem; color: var(--gray-dark); margin-top: 10px; text-align: center; }

.donut-wrapper { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--accent-red) 0% 72%, var(--gray-light) 72% 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.donut::after { content: '72%'; position: absolute; width: 90px; height: 90px; background-color: var(--bg-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; }
.donut-legend { font-size: 0.9rem; }
.legend-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.legend-color { width: 16px; height: 16px; border-radius: 4px; }
.legend-color.red { background-color: var(--accent-red); }
.legend-color.gray { background-color: var(--gray-light); }

.line-chart { position: relative; height: 180px; width: 100%; border-bottom: 2px solid var(--gray-light); border-left: 2px solid var(--gray-light); margin-top: 10px; }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.line-chart svg polyline { fill: none; stroke: var(--accent-red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.line-chart svg circle { fill: var(--accent-red); stroke: var(--white); stroke-width: 2; }
.chart-axis { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray-dark); margin-top: 10px; }

/* ========================================== */
/* --- FEATURES & PRICING --- */
/* ========================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.feature-card { padding: 40px; background-color: var(--bg-color); border-left: 1px solid var(--accent-red); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 700; }
.feature-card p { color: var(--gray-dark); font-size: 1rem; }
.feature-number { font-size: 3.5rem; font-weight: 700; color: var(--accent-red); line-height: 1; margin-bottom: 15px; }

.pricing { background-color: var(--white); }
.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-header .section-title { margin-bottom: 10px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.pricing-card { background-color: var(--bg-color); border-radius: 20px; padding: 40px 30px; display: flex; flex-direction: column; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid transparent; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); }
.pricing-card.popular { background-color: var(--white); border-color: var(--text-main); transform: scale(1.03); z-index: 2; }
.pricing-card.popular:hover { transform: scale(1.03) translateY(-5px); }
.pricing-card.mini { border-color: var(--accent-red); }

.popular-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background-color: var(--text-main); color: var(--white); padding: 8px 24px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.pricing-card h3 { font-size: 2.4rem; font-weight: 700; margin-bottom: 25px; }
.price { font-size: 2.2rem; font-weight: 700; margin-bottom: 30px; display: flex; align-items: baseline; gap: 5px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--gray-dark); }

.pricing-features { flex-grow: 1; margin-bottom: 10px; }
.pricing-features li { font-size: 1.2rem; color: var(--gray-dark); padding: 12px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--gray-light); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--accent-red); font-weight: 700; font-size: 1.1rem; line-height: 1; }

.pricing-card .btn-plan { display: block; text-align: center; padding: 16px; border-radius: 12px; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; font-family: inherit; border: 2px solid var(--text-main); background-color: transparent; color: var(--text-main); width: 100%; }
.pricing-card .btn-plan:hover { background-color: var(--text-main); color: var(--white); }
.pricing-card.popular .btn-plan { background-color: var(--text-main); color: var(--white); }
.pricing-card.popular .btn-plan:hover { background-color: var(--accent-red); border-color: var(--accent-red); }

/* ========================================== */
/* --- PORTFOLIO --- */
/* ========================================== */
.portfolio { background-color: var(--white); overflow: hidden; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; border-bottom: 2px solid var(--gray-light); padding-bottom: 20px; }
.slider-controls { display: flex; align-items: center; gap: 15px; font-size: 1.2rem; font-weight: 500; color: var(--gray-light); }
.slider-controls .current { color: var(--text-main); font-size: 2.2rem; font-weight: 700; }
.slider-controls .arrow { cursor: pointer; transition: 0.3s; font-size: 1.5rem; padding: 5px 12px; border-radius: 50%; user-select: none; }
.slider-controls .arrow:hover { color: var(--accent-red); background-color: var(--bg-color); }

.portfolio-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 30px; -ms-overflow-style: none; scrollbar-width: none; scroll-snap-type: x mandatory; }
.portfolio-scroll::-webkit-scrollbar { display: none; }
.portfolio-item { flex: 0 0 320px; height: 400px; position: relative; border-radius: 0px; overflow: hidden; background-color: #ddd; scroll-snap-align: start; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; aspect-ratio: 4 / 5; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgb(136 136 136), transparent); color: var(--white); }
.portfolio-overlay h4 { font-size: 1.5rem; margin-bottom: 5px; }
.portfolio-overlay span { font-size: 1.1rem; opacity: 0.8; line-height: 1rem; }

/* ========================================== */
/* --- CONTACTS --- */
/* ========================================== */
.contacts { background-color: var(--bg-color); padding: 40px 0; }
.contacts-wrapper { background-color: var(--white); border-radius: 32px; padding: 70px 60px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06); position: relative; overflow: hidden; }
.contacts-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.contacts-label { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-red); padding: 7px 18px; background-color: rgba(255, 42, 42, 0.08); border-radius: 50px; margin-bottom: 22px; }
.contacts-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 18px; color: var(--text-main); }
.contacts-title em { font-style: normal; color: var(--accent-red); position: relative; display: inline-block; }
.contacts-title em::after { content: ''; position: absolute; bottom: 3px; left: 0; width: 100%; height: 8px; background-color: rgba(255, 42, 42, 0.18); z-index: -1; border-radius: 4px; }
.contacts-subtitle { font-size: 1.05rem; color: var(--gray-dark); line-height: 1.5; margin: 0 auto; }
.contacts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.contact-card { position: relative; background-color: var(--bg-color); border: 1px solid transparent; border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; min-height: 240px; overflow: hidden; transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.contact-card::before { content: ''; position: absolute; right: -60px; bottom: -60px; width: 300px; height: 300px; background-color: var(--white); transition: background-color 0.35s ease; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; pointer-events: none; z-index: 0; }

.contact-card--phone::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'><g transform='rotate(-20 12 12)'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></g></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'><g transform='rotate(-20 12 12)'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></g></svg>"); }

.contact-card--mail::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'><g transform='rotate(-20 12 12)'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/><polyline points='22,6 12,13 2,6'/></g></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'><g transform='rotate(-20 12 12)'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/><polyline points='22,6 12,13 2,6'/></g></svg>"); }

.contact-card:hover { transform: translateY(-6px); background-color: var(--white); border-color: var(--accent-red); box-shadow: 0 15px 40px rgba(255, 42, 42, 0.12); }
.contact-card:hover::before { background-color: var(--gray-light); }
.contact-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; }
.contact-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background-color: rgba(255, 42, 42, 0.1); color: var(--accent-red); transition: all 0.35s ease; }
.contact-icon svg { width: 24px; height: 24px; }
.contact-card:hover .contact-icon { background-color: var(--accent-red); color: var(--white); transform: rotate(-8deg) scale(1.05); }
.contact-arrow { font-size: 1.3rem; color: var(--gray-light); transition: all 0.35s ease; line-height: 1; }
.contact-card:hover .contact-arrow { color: var(--accent-red); transform: translate(3px, -3px); }
.contact-card-body { position: relative; z-index: 1; margin-top: auto; }
.contact-card h3 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gray-dark); margin-bottom: 10px; }
.contact-value { font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; line-height: 1.3; word-break: break-word; }
.contact-note { font-size: 0.85rem; color: var(--gray-dark); line-height: 1.4; }

/* ========================================== */
/* --- FOOTER --- */
/* ========================================== */
footer { background-color: #393030; color: var(--white); padding: 60px 0 40px; text-align: center; }
footer h2 { font-size: 2.2rem; margin-bottom: 20px; padding: 20px; line-height: 36px; }
footer p { opacity: 0.7; margin-bottom: 40px; font-size: 1.1rem; }
.footer-btn { background-color: var(--accent-red); color: var(--white); border: none; padding: 20px 40px; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: 0.3s; font-family: inherit; }
.footer-btn:hover { background-color: var(--white); color: var(--text-main); }
.footer-bottom { margin-top: 60px; font-size: 1rem; opacity: 0.5; padding: 0 20px; }

/* ========================================== */
/* --- PLAN MODAL --- */
/* ========================================== */
.plan-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; z-index: 10000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.plan-modal.active { opacity: 1; visibility: visible; }
.plan-modal-inner {
    background: var(--white); border-radius: 24px; padding: 40px;
    width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
    position: relative; transform: translateY(20px); transition: transform 0.3s ease;
}
.plan-modal.active .plan-modal-inner { transform: translateY(0); }
.plan-modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--gray-dark); transition: color 0.3s ease; }
.plan-modal-close:hover { color: var(--accent-red); }
.plan-modal-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-red); }
.plan-modal-head h3 { font-size: 1.8rem; margin: 8px 0 4px; font-weight: 700; }
.plan-modal-price { font-size: 1.4rem; font-weight: 700; color: var(--text-main); margin-bottom: 24px; }
.plan-field { margin-bottom: 18px; }
.plan-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--gray-dark); }
.plan-field input, .plan-field textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--gray-light); border-radius: 12px; font-family: inherit; font-size: 0.95rem; background: var(--bg-color); transition: border-color 0.3s ease; resize: vertical; }
.plan-field input:focus, .plan-field textarea:focus { outline: none; border-color: var(--accent-red); }
.plan-submit { width: 100%; padding: 16px; background: var(--text-main); color: #fff; border: none; border-radius: 12px; font-family: inherit; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; margin-top: 8px; }
.plan-submit:hover { background: var(--accent-red); transform: translateY(-2px); }
.plan-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.plan-hint { font-size: 0.8rem; color: var(--gray-dark); text-align: center; margin-top: 14px; line-height: 1.5; }
#pdfTemplate { position: fixed; left: -9999px; top: 0; width: 794px; background: #fff; padding: 60px; font-family: 'Ubuntu', sans-serif; color: #111; }

/* ========================================== */
/* --- АККОРДЕОНЫ И СТАТЬИ (ОПТИМИЗИРОВАНО) --- */
/* ========================================== */

/* Контейнер аккордеона (Зебра) */
.auto-section-wrap {
    border-radius: 20px;
    padding: 20px 15px 25px;
    margin: 25px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative; 
    overflow: hidden;   
}

.auto-section-wrap:nth-of-type(odd) { background-color: #fbfbfb; }
.auto-section-wrap:nth-of-type(even) { background-color: #f9fbfc; }
.auto-section-wrap:hover { filter: brightness(0.98); }

/* Заголовок H2 в аккордеоне */
.auto-section-wrap h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.auto-section-wrap h2:nth-of-type(odd) { color: #674450; }
.auto-section-wrap h2:nth-of-type(even) { color: #212936; }

/* Стрелочка */
.auto-section-wrap h2::after {
    content: '▼';
    font-size: 0.8em;
    color: #7a7a7a;
    transition: transform 0.3s ease;
}
.auto-section-wrap.active h2::after { transform: rotate(180deg); }

/* Контент внутри */
.auto-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.auto-section-wrap.active .auto-section-content {
    max-height: 3000px; 
    transition: max-height 0.4s ease-in;
}
.auto-section-content > *:first-child { margin-top: 20px; }

.auto-section-wrap h3 {
    font-size: 1.25rem; 
    margin-top: 10px; 
}

/* --- СТИЛИ ДЛЯ КАРТИНОК В СТАТЬЯХ --- */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

/* Выравнивание по центру */
.article-content img[style*="display: block"],
.article-content img[style*="margin: 20px auto"] {
    display: block !important;
    margin: 20px auto !important;
    float: none !important;
}

/* Обтекание слева */
.article-content img[style*="float: left"] {
    float: left !important;
    margin: 25px 15px 15px 15px !important;
    max-width: 50%;
}

/* Обтекание справа */
.article-content img[style*="float: right"] {
    float: right !important;
    margin: 25px 15px 15px 15px !important;
    max-width: 50%;
}

/* Очистка обтекания */
.article-content::after,
.auto-section-content::after {
    content: "";
    display: table;
    clear: both;
}

.article-content svg { 
    max-width: 100%; 
    height: auto; 
}


/* ========================================== */
/* --- RESPONSIVE (МЕДИА-ЗАПРОСЫ) --- */
/* ========================================== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; padding: 40px; text-align: left; background: #fdfdfdde; align-items: flex-start; }
    .hero-subtitle { max-width: 100%; }
    .hero::before { width: 90vw; height: 90vw; top: 80%; left: -50%; }
    .hero-image img { -webkit-mask-image: none; mask-image: none; border-radius: 20px; max-width: 400px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .contacts { padding: 60px 0; }
    .contacts-wrapper { padding: 55px 40px; border-radius: 28px; }
    .contacts-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 40px 0 160px; }
    .hero-bg { object-position: 200px -100px; height: auto; min-height: 100%; width: 1600px; max-width: none; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .container { padding: 20px; }
    .desktop-nav, .socials { display: none; }
    .burger { display: block; }
    .logo { top: 22px; left: 15px; }
    .logo-icon { width: 28px; height: 28px; font-size: 3rem; }
    .logo-text { font-size: 1.2rem; }
    .logo-text span { font-size: 0.65rem; }
    h1 { font-size: 5.5rem; }
    .hero-content h1 { font-size: 36px; color: #ff2a2a; line-height: 36px; margin: 20px 0; }
    .section-title { font-size: 2rem; padding: 0 20px; }
    .btn-primary { padding: 10px 15px; font-size: 0.85rem; }
    .charts-grid { grid-template-columns: 1fr; }
    .donut-wrapper { flex-direction: column; }
    .hero-image img { max-width: 100%; }
    .mobile-menu a { font-size: 1.2rem; }
    .pricing-grid { grid-template-columns: 1fr; gap: 50px; }
    .pricing-card { padding: 50px 20px; margin: 10px; }
    .portfolio-item { flex: 0 0 260px; height: 340px; }
    .slider-controls .current { font-size: 1.8rem; }
    .contacts { padding: 50px 0; }
    .contacts-wrapper { padding: 45px 25px; border-radius: 24px; }
    .contacts-header { margin-bottom: 40px; }
    .contacts-label { font-size: 0.7rem; padding: 6px 15px; margin-bottom: 16px; }
    .contacts-grid { grid-template-columns: 1fr; gap: 14px; }
    .contact-card { border-radius: 18px; padding: 22px 20px; min-height: 200px; }
    .contact-card::before { width: 220px; height: 220px; right: -40px; bottom: -50px; }
    .contact-icon { width: 46px; height: 46px; border-radius: 12px; }
    .contact-icon svg { width: 20px; height: 20px; }
    .contact-value { font-size: 1rem; }
    .contact-note { font-size: 0.8rem; }

    /* --- ОТМЕНА ВЫРАВНИВАНИЯ НА МОБИЛЬНЫХ --- */
    .article-content img,
    .article-content img[style*="float: left"],
    .article-content img[style*="float: right"],
    .article-content img[style*="display: block"],
    .article-content img[style*="margin: 20px auto"] {
        float: none !important;
        display: block !important;
        margin: 15px auto !important;
        max-width: 100% !important;
        width: 100% !important;
        position: static !important;
    }

    .article-content div[style*="float"],
    .article-content div[style*="text-align"] {
        float: none !important;
        display: block !important;
        margin: 15px 0 !important;
        width: 100% !important;
    }

    .article-content div[style*="float"] img,
    .article-content div[style*="text-align"] img {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .article-content p, 
    .article-content li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contacts-wrapper { padding: 35px 18px; border-radius: 20px; }
    .contacts-title { font-size: 1.6rem; }
    .contacts-subtitle { font-size: 0.95rem; text-align: left; }
    .contact-card { padding: 20px 16px; min-height: 180px; }
    .contact-card::before { width: 180px; height: 180px; right: -30px; bottom: -40px; }
    .contact-card h3 { font-size: 1rem; letter-spacing: 1.5px; }
    .contact-value { font-size: 1.2rem; }
}

/* =========================================
   Адаптивные таблицы с зеброй для статьи
   ========================================= */

/* Применяем ко всем таблицам внутри блока статьи */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
  margin-bottom: 20px;
  
  /* Включаем горизонтальный скролл на мобильных */
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

/* Возвращаем табличную структуру */
.article-content table thead {
  display: table-header-group;
}

.article-content table tbody {
  display: table-row-group;
}

.article-content table tr {
  display: table-row;
  border-bottom: 1px solid #eeeeee;
}

.article-content table th,
.article-content table td {
  display: table-cell;
  padding: 12px 16px;
  vertical-align: top;
}

/* Оформление заголовка (первой строки) */
.article-content table th,
.article-content table tr:first-child td {
  font-weight: bold;
  color: #111;
  border-bottom: 2px solid #ccc;
  background-color: #fff;
}

/* Зебра (чередование строк) */
.article-content table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.article-content table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Наведение на строку */
.article-content table tr:hover {
  background-color: #f1f3f5;
}