/*
Theme Name: 1C:Бухобслуживание Контральт
Theme URI: https://contralt.ru/
Author: Команда Контральт
Author URI: https://contralt.ru/
Description: Официальный шаблон лендинга и авто-блога по стандартам «1С:Бухобслуживание».
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: contralt-bo
*/

:root {
    --c-primary-yellow: #FFCC00;
    --c-primary-yellow-hover: #E5B800;
    --c-1c-red: #E30613;
    --c-dark: #2B2B2B;
    --c-text-muted: #5A6270;
    --c-bg-light: #F7F8FA;
    --c-border: #E2E6EC;
    --c-white: #FFFFFF;
    --c-accent-blue: #0073AD;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", Helvetica, Arial, sans-serif;
    --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--c-dark); background: var(--c-white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--c-accent-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-1c-red); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--c-white); border-bottom: 2px solid var(--c-primary-yellow); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-top { background: var(--c-bg-light); font-size: 13px; color: var(--c-text-muted); padding: 6px 0; border-bottom: 1px solid var(--c-border); }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-dark); }
.header-badge-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--c-1c-red); }
.header-main { padding: 14px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand-wrapper { display: flex; align-items: center; gap: 14px; }
.logo-1c-box { background: var(--c-primary-yellow); padding: 5px 12px; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; font-weight: 800; text-decoration: none !important; }
.logo-1c-main { font-size: 20px; color: var(--c-1c-red); letter-spacing: -0.5px; }
.logo-1c-sub { font-size: 10px; color: var(--c-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.partner-info { border-left: 2px solid var(--c-border); padding-left: 12px; }
.partner-title { font-size: 18px; font-weight: 700; color: var(--c-dark); line-height: 1.2; }
.partner-status { font-size: 12px; color: var(--c-text-muted); }
.main-nav ul { list-style: none; display: flex; gap: 22px; align-items: center; }
.main-nav a { color: var(--c-dark); font-weight: 600; font-size: 14.5px; }
.main-nav a:hover { color: var(--c-1c-red); }
.header-contacts { display: flex; align-items: center; gap: 16px; }
.phone-link { font-size: 18px; font-weight: 700; color: var(--c-dark); white-space: nowrap; }
.phone-link:hover { color: var(--c-1c-red); }

.btn-cta { display: inline-block; background: var(--c-primary-yellow); color: var(--c-dark); font-weight: 700; padding: 11px 22px; border-radius: var(--radius-sm); border: none; cursor: pointer; text-align: center; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(255, 204, 0, 0.4); text-decoration: none !important; }
.btn-cta:hover { background: var(--c-primary-yellow-hover); color: var(--c-dark); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(255, 204, 0, 0.6); }
.btn-cta-red { background: var(--c-1c-red); color: var(--c-white); box-shadow: 0 2px 6px rgba(227, 6, 19, 0.3); }
.btn-cta-red:hover { background: #c50510; color: var(--c-white); box-shadow: 0 4px 10px rgba(227, 6, 19, 0.5); }

/* Hero */
.hero-section { background: linear-gradient(135deg, #FFFDF5 0%, var(--c-bg-light) 100%); padding: 65px 0 75px; border-bottom: 1px solid var(--c-border); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 45px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 204, 0, 0.25); border-left: 3px solid var(--c-1c-red); padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--c-dark); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 16px; }
.hero-title { font-size: 38px; line-height: 1.2; font-weight: 800; color: var(--c-dark); margin-bottom: 18px; }
.hero-title span { color: var(--c-1c-red); }
.hero-subtitle { font-size: 17.5px; color: var(--c-text-muted); margin-bottom: 26px; line-height: 1.5; }
.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 30px; }
.feat-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; }
.feat-icon { color: var(--c-1c-red); font-weight: 800; }

/* Lead Card */
.lead-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); position: relative; }
.lead-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--c-primary-yellow), var(--c-1c-red)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.lead-card-title { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.lead-card-desc { font-size: 13.5px; color: var(--c-text-muted); margin-bottom: 18px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-input, .form-select { width: 100%; padding: 11px 13px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); font-size: 14.5px; outline: none; font-family: inherit; }
.form-input:focus, .form-select:focus { border-color: var(--c-accent-blue); box-shadow: 0 0 0 3px rgba(0, 115, 173, 0.1); }
.form-policy { font-size: 11.5px; color: var(--c-text-muted); margin-top: 12px; line-height: 1.4; }

/* Tariffs */
.tariffs-section { padding: 75px 0; background: var(--c-white); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 45px; }
.section-badge { color: var(--c-1c-red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: inline-block; }
.section-title { font-size: 32px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.section-desc { color: var(--c-text-muted); font-size: 16.5px; }
.tariffs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tariff-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 26px 20px; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.03); position: relative; }
.tariff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--c-primary-yellow); }
.tariff-card.featured { border: 2px solid var(--c-1c-red); box-shadow: 0 6px 20px rgba(227, 6, 19, 0.1); }
.tariff-featured-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--c-1c-red); color: var(--c-white); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; text-transform: uppercase; }
.tariff-name { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.tariff-price { font-size: 26px; font-weight: 800; color: var(--c-dark); margin-bottom: 4px; }
.tariff-price small { font-size: 13.5px; font-weight: 500; color: var(--c-text-muted); }
.tariff-desc { font-size: 13px; color: var(--c-text-muted); margin-bottom: 18px; min-height: 40px; }
.tariff-list { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.tariff-list li { font-size: 13.5px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 6px; }
.tariff-list li::before { content: "✓"; color: #10B981; font-weight: 800; }

/* Calculator */
.calc-section { padding: 75px 0; background: var(--c-bg-light); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.calc-box { background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 36px; display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; }
.calc-step-title { font-size: 15.5px; font-weight: 700; margin-bottom: 10px; color: var(--c-dark); }
.calc-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.calc-radio-label { border: 1px solid var(--c-border); padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.calc-radio-label:hover { border-color: var(--c-primary-yellow); background: #FFFDF5; }
.calc-result-box { background: linear-gradient(145deg, #2B2B2B, #1A1A1A); color: var(--c-white); padding: 32px; border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: space-between; }
.calc-result-header { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 18px; margin-bottom: 18px; }
.calc-result-price { font-size: 42px; font-weight: 800; color: var(--c-primary-yellow); line-height: 1.1; margin: 8px 0 4px; }

/* Services */
.services-section { padding: 75px 0; background: var(--c-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 26px; background: var(--c-white); transition: all 0.2s; }
.service-card:hover { box-shadow: var(--shadow-card); border-color: var(--c-accent-blue); }
.service-icon-box { width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(255, 204, 0, 0.25); color: var(--c-1c-red); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.service-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--c-text-muted); line-height: 1.5; margin-bottom: 14px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag { background: var(--c-bg-light); border: 1px solid var(--c-border); padding: 3px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; color: var(--c-dark); }

/* News */
.news-section { padding: 75px 0; background: var(--c-bg-light); border-top: 1px solid var(--c-border); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.03); display: flex; flex-direction: column; transition: transform 0.2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.news-thumb { height: 170px; background: #e2e8f0; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 12px; color: var(--c-text-muted); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.news-cat { color: var(--c-1c-red); font-weight: 700; text-transform: uppercase; }
.news-title { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.news-title a { color: var(--c-dark); }
.news-title a:hover { color: var(--c-accent-blue); }
.news-excerpt { font-size: 13.5px; color: var(--c-text-muted); line-height: 1.5; margin-bottom: 14px; flex-grow: 1; }

/* Footer */
.site-footer { background: #1E2229; color: #A0ABC0; padding: 60px 0 30px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 35px; margin-bottom: 40px; }
.footer-title { color: var(--c-white); font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #A0ABC0; }
.footer-links a:hover { color: var(--c-primary-yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-disclaimer { color: #718096; margin-top: 10px; line-height: 1.4; font-size: 11.5px; }

@media (max-width: 992px) {
    .hero-grid, .calc-box, .services-grid, .news-grid, .footer-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .tariffs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tariffs-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 27px; }
    .calc-options-grid { grid-template-columns: 1fr; }
}
