/* CSS variables populated by JS based on the provided JSON */
:root {
    --color-primary: #F7B500;
    --color-secondary: #000000;
    --color-text: #333333;
    --color-bg: #FFFFFF;
    --color-grey-light: #F5F5F5;

    --font-family: 'Inter', Helvetica, Arial, sans-serif;

    --h1-size: 32px;
    --h2-size: 24px;
    --h3-size: 18px;
    --heading-weight: 700;
    --heading-transform: uppercase;

    --body-size: 16px;
    --body-weight: 400;
    --body-line-height: 1.5;

    --link-color: var(--color-primary);
    --link-hover: var(--color-secondary);
    --link-decoration: none;

    --container-width: 1200px;
    --grid-gutter: 24px;

    --btn-radius: 4px;
    --btn-padding: 12px 24px;
    --btn-bg: #000000;
    --btn-text: #FFFFFF;
    --btn-hover-bg: #F7B500;
    --btn-hover-text: #000000;
}

/* Global reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    color: var(--color-text);
    background: var(--color-bg);
}

img { max-width: 100%; display: block; }
a { color: var(--link-color); text-decoration: var(--link-decoration); }
a:hover { color: var(--link-hover); text-decoration: underline; }

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

/* Header */
.site-header {
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #E0E0E0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
}
.logo {
    font-weight: 700;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.logo .accent {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    display: inline-block;
    border-radius: 2px;
}
.nav { display: flex; gap: 24px; }
.nav a {
    color: var(--color-secondary);
    font-size: calc(var(--body-size) * 1.05);
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color .2s ease, color .2s ease;
}
.nav a:hover {
    background-color: #9E9E9E;
    color: #FFFFFF;
    text-decoration: none;
}

/* Hero */
.hero {
    background: var(--color-grey-light);
}
.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 50vh;
    padding: 40px 0;
}

.hero .btn {
    font-size: calc(var(--body-size) * 1.3);
    padding: 16px 32px;

    background-color: #0033FF; /* фон кнопки */
    color: #ffffff;               /* цвет текста */
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background-color: #FFD700; /* фон при наведении */
    color: #000000;
}


.hero .content {
    flex: 1 1 50%;
}
.hero .content h1 { margin-bottom: 12px; }
.hero .content p { margin-bottom: 16px; }
.hero .btn {
    font-size: calc(var(--body-size) * 1.3);
    padding: 16px 32px;
}
.hero .banners {
    flex: 1 1 50%;
    height: 50vh;
    max-height: 520px;
    min-height: 320px;
}
.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #fff;
}
.banner-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-auto-rows: 100%;
    transition: transform .6s ease;
}
.banner-slide {
    width: 100%;
    height: 100%;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero h1 {
    font-size: var(--h1-size);
    font-weight: var(--heading-weight);
    text-transform: var(--heading-transform);
    color: var(--color-secondary);
    letter-spacing: 0.04em;
    margin: 0 0 16px;
}
.hero p { margin: 0 auto; max-width: 720px; }

/* Sections */
.section { padding: 40px 0; }
.section h2 {
    font-size: var(--h2-size);
    font-weight: var(--heading-weight);
    text-transform: var(--heading-transform);
    color: var(--color-secondary);
    margin: 0 0 24px;
}

/* Grid helpers */
.grid {
    display: grid;
    gap: var(--grid-gutter);
}

/* Cards */
.card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    padding: 24px;
    transition: box-shadow .2s ease;
}
.card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Card links */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Features */
.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.feature .icon {
    width: 32px;
    height: 32px;
    border: 2px solid #000;
    border-radius: 4px;
}

/* Testimonials */
.testimonials {
    position: relative;
}
.testimonial {
    background: #FFFFFF;
    border-left: 4px solid var(--color-primary);
    padding: 16px;
    font-style: italic;
}
.testimonial-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow: hidden;
}
.testimonial-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    width: 100%;
    transition: transform .4s ease;
}
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}
.btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: var(--btn-radius);
    padding: var(--btn-padding);
    cursor: pointer;
}
.btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
}

/* Contact form */
.contact-form .form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 16px;
}



.contact-form textarea.message { grid-column: span 3; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form .form-actions { display: flex; gap: 12px; }

@media (max-width: 900px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
    .contact-form textarea.message { grid-column: auto; }
}

/* Footer */
.site-footer {
    background: var(--color-grey-light);
    padding: 40px 0;
    color: #666666;
}

/* Headings and text */
h1, h2, h3 {
    font-family: var(--font-family);
    margin: 0 0 0.5em;
}
h3 { font-size: var(--h3-size); font-weight: var(--heading-weight); text-transform: var(--heading-transform); }
p { margin: 0 0 1em; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


