/*
Theme Name: pd-base-theme
Theme URI: https://prom-digital.ru
Author: Prom Digital
Author URI: https://prom-digital.ru
Description: Кастомная тема для интегратора Bitrix24 — экспертные решения для производства и торговли.
Version: 1.0
License: GPL v2 or later
Text Domain: pd-base-theme
*/

/* --------------------------------------
   RESET & BASE
---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
    font-weight: 400;
    font-size: 16px;
    overflow-x: hidden;
}

/* --------------------------------------
   GLOBAL VARIABLES
---------------------------------------- */
:root {
    --accent: #ff5e14;
    --accent-dark: #e04e0a;
    --accent-light: rgba(255, 94, 20, 0.1);
    --text-dark: #000000;
    --text-muted: #333333;
    --text-light: #666666;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --white: #ffffff;
    --black: #000000;
    
    --font-heading: 'Manrope', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1280px;
    --container-padding: 0px;
    --transition: all 0.2s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 8px 20px rgba(255, 94, 20, 0.2);
}

/* --------------------------------------
   TYPOGRAPHY
---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 0.5em;
}

h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 24px; font-weight: 700; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 18px; font-weight: 600; }
h6 { font-size: 16px; font-weight: 600; }

p {
    margin-bottom: 1.2em;
    color: #000000;
}

a {
    color: #000000;
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
}

/* --------------------------------------
   CONTAINER (ОГРАНИЧЕНИЕ ШИРИНЫ)
---------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* --------------------------------------
   LAYOUT SECTIONS
---------------------------------------- */
.section {
    padding: 60px 0;
}
.section-sm {
    padding: 40px 0;
}
.section-lg {
    padding: 100px 0;
}

/* --------------------------------------
   BUTTONS
---------------------------------------- */
.btn,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 48px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--border-light);
    color: #000000;
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-light);
    color: #000000;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --------------------------------------
   FORMS
---------------------------------------- */
input, textarea, select {
    font-family: var(--font-body);
    font-size: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--white);
    width: 100%;
    transition: var(--transition);
    color: #000000;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #000000;
}

/* --------------------------------------
   FOOTER (базово)
---------------------------------------- */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-widget h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #000000;
}
.footer-widget ul {
    list-style: none;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget a {
    color: #000000;
}
.footer-widget a:hover {
    color: var(--accent);
}
.footer-contacts address {
    font-style: normal;
    color: #000000;
    margin-bottom: 12px;
}
.footer-copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: #666666;
}

/* --------------------------------------
   UTILITY CLASSES
---------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: #333333; }
.bg-light { background: var(--bg-light); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-6 { margin-top: 24px; }
.mb-6 { margin-bottom: 24px; }
.p-relative { position: relative; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* --------------------------------------
   АДАПТИВНОСТЬ
---------------------------------------- */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    .section { padding: 40px 0; }
    .btn, button, input[type="submit"] {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
}