:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --text: #1c2434;
    --muted: #5b6478;
    --border: #e4e7ef;
    --primary: #ffd23f;      /* фирменный жёлтый 1С */
    --primary-dark: #f0bf16;
    --accent: #2b3a55;       /* тёмно-синий */
    --accent-dark: #1c2434;
    --success-bg: #e7f6ec;
    --success-text: #1b6b3a;
    --error-bg: #fdecec;
    --error-text: #9b2226;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(28, 36, 52, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.muted-link { color: var(--muted); text-decoration: none; }
.muted-link:hover { color: var(--text); }
.small { font-size: 13px; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 20px;
}
.logo {
    font-weight: 800; font-size: 22px;
    color: var(--accent); text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary-dark); font-weight: 700; }
.nav { display: flex; gap: 28px; }
.nav a {
    color: var(--text); text-decoration: none;
    font-weight: 500; font-size: 15px;
    padding: 6px 0; border-bottom: 2px solid transparent;
    transition: border-color .15s;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--primary); }

@media (max-width: 720px) {
    .nav { display: none; }
    .header-inner .btn { display: none; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 600; font-size: 15px;
    text-decoration: none; cursor: pointer;
    transition: transform .05s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { background: var(--primary); color: var(--accent-dark); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93020; }

/* Flash messages */
.flash-area { margin-top: 16px; }
.flash {
    padding: 12px 16px; border-radius: var(--radius);
    margin-bottom: 8px; font-size: 14px;
}
.flash-success { background: var(--success-bg); color: var(--success-text); }
.flash-error   { background: var(--error-bg);   color: var(--error-text); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--accent) 0%, #3a4d72 100%);
    color: #fff; padding: 80px 0 90px;
}
.hero-inner { max-width: 760px; }
.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 0 0 16px; line-height: 1.15; letter-spacing: -1px;
}
.hero-sub { font-size: 18px; opacity: .92; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
    font-size: 28px; margin: 0 0 32px;
    letter-spacing: -0.5px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(28, 36, 52, 0.1);
    border-color: var(--primary);
}
.service-icon { font-size: 28px; margin-bottom: 10px; }
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; flex: 1; }
.service-price {
    font-weight: 600; color: var(--accent-dark); margin-bottom: 14px;
}
.service-link {
    color: var(--accent); text-decoration: none; font-weight: 600;
    align-self: flex-start;
}
.service-link:hover { color: var(--primary-dark); }

/* About */
.about-inner { max-width: 760px; }
.about-text { font-size: 17px; color: var(--muted); }

/* Contact */
.contact-grid {
    display: grid; gap: 40px;
    grid-template-columns: 1fr 1.2fr;
}
@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
    padding: 14px 0; border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.contact-list span {
    font-size: 13px; color: var(--muted); margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
}
.contact-form h3 { margin: 0 0 18px; font-size: 20px; }
.contact-form label {
    display: block; margin-bottom: 14px; font-size: 14px;
    color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block; width: 100%; margin-top: 6px;
    padding: 10px 12px; font-size: 15px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); color: var(--text);
    font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.25);
}
.contact-form textarea { resize: vertical; }

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 24px 0; margin-top: 40px;
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap; font-size: 14px;
}
