/* ===========================================
   БАЗОВЫЕ СТИЛИ И СБРОС CSS
   =========================================== */

/* ===========================================
   CSS ПЕРЕМЕННЫЕ
   =========================================== */

:root {
    /* Основные цвета */
    --color-header-button: #E63946;    /* Красный цвет для кнопки в header */
    --color-header-button-hover: #d62936; /* Темнее красный для hover */
    --color-main-button: #FECB18;      /* Желтый цвет для основных кнопок */
    --color-main-button-hover: #e6b515; /* Темнее желтый для hover */
    --color-section-bg: #0B64C0;       /* Синий фон для секций */

    /* Цвета текста */
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #333333;
    --color-text-tertiary: #818181;    /* Светло-серый для описаний */
    --color-text-white: #ffffff;

    /* Цвета ссылок */
    --color-link: #0066cc;
    --color-link-hover: #0052a3;
    --color-phone-hover: #F5F5F8;

    /* Фоновые цвета */
    --color-bg-primary: #ffffff;
    --color-bg-hero: #F5F5F8;          /* Светло-серый фон для hero и faq секций */

    /* Радиусы скругления */
    --border-radius: 3px;             /* Единое скругление углов */

    /* Изображения */
    --image-logo: url('../images/logo.svg');
    --image-hero-large-appliances: url('../images/icons/hero__service-icon--large-appliances.svg');
    --image-hero-small-appliances: url('../images/icons/hero__service-icon--small-appliances.svg');
    --image-hero-digital: url('../images/icons/hero__service-icon--digital.svg');
    --image-hero-plumbing: url('../images/icons/hero__service-icon--plumbing.png');
    --image-hero-electrician: url('../images/icons/hero__service-icon--electrician.png');
    --image-hero-installation: url('../images/icons/hero__service-icon--installation.svg');
    --image-hero-printers: url('../images/icons/hero__service-icon--printers.svg');
    --image-hero-repair: url('../images/icons/hero__service-icon--repair.svg');
    --image-hero-windows: url('../images/icons/hero__service-icon--windows.svg');
    --image-hero-washing-machine: url('../images/icons/hero__service-icon--washing-machine.png');
    --image-hero-disinfection: url('../images/icons/hero__service-icon--disinfection.svg');
    --image-hero-internet: url('../images/icons/hero__service-icon--internet.svg');
    --image-testimonials-yandex-logo: url('../images/testimonials__yandex-logo.jpg');
    --image-testimonial-avatar-1: url('../images/avatars/testimonial-avatar-1.jpg');
    --image-testimonial-avatar-2: url('../images/avatars/testimonial-avatar-2.jpg');
    --image-testimonial-avatar-3: url('../images/avatars/testimonial-avatar-3.jpg');
    --image-testimonial-avatar-4: url('../images/avatars/testimonial-avatar-4.jpg');
    --image-testimonial-avatar-5: url('../images/avatars/testimonial-avatar-5.jpg');
    --image-testimonial-avatar-6: url('../images/avatars/testimonial-avatar-6.jpg');
    --image-contact-map: url('../images/contact__map.jpg');
}

/* ===========================================
   CSS RESET/NORMALIZE
   =========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    text-wrap: pretty;            /* Smart line-breaking for paragraphs */
}

/* Сброс стилей для элементов */
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
blockquote, figure,
table, form, fieldset {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;           /* Even line lengths in headings */
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===========================================
   ТИПОГРАФИКА
   =========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

h2.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--section-title-mb, 1rem);
    color: var(--color-text-primary);
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Выравнивание по левому краю */
h2.section-title--left {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Белый заголовок для секций с синим фоном */
h2.section-title--light {
    color: var(--color-text-white);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

strong {
    font-weight: 600;
}

/* ===========================================
   ССЫЛКИ
   =========================================== */

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
}

a:focus {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}


/* ===========================================
   КНОПКИ
   =========================================== */

.btn {
    background-color: var(--color-header-button);
    color: var(--color-text-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-header-button-hover);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
    transform: translateY(-1px);
    color: var(--color-text-white);
}

.btn:active {
    transform: translateY(0);
}

/* Крупная кнопка для CTA секций */
.btn--large {
    font-size: 18px;
    padding: 16px 32px;
}

/* ===========================================
   КОНТЕЙНЕР
   =========================================== */

.container {
    --container-max-width: 1200px;
    --container-padding: 1rem;

    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: content-box;
}
