/*
Theme Name: bvorona Theme
Author: Dardi
Version: 1.0
*/


/* ---------- 1. Базовые сбросы ---------- */
*, *::before, *::after {
    box-sizing: inherit; /* box‑model = border‑box */
    margin: 0;
    padding: 0;
}

html {
    box-sizing: border-box; /* наследуется всем элементам */
    font-size: 100%; /* уважает user default (16/18 px) */
    -webkit-text-size-adjust: 100%; /* стоп auto‑zoom на iOS */
}

/* ---------- 2. Типографика ---------- */
body {
    line-height: 1.5;
    color: black;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: #f5f5f7;;
}

/* Заголовки получают адекватное расстояние сверху */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* ---------- 3. Базовые списки ---------- */
ul,
ol {
    list-style: none;
}

/* ---------- 4. Медиа ---------- */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* ---------- 5. Формы ---------- */
button,
input,
select,
textarea {
    font: inherit; /* наследуют шрифт */
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
}

/* Убираем лишний outline в Firefox */
::-moz-focus-inner {
    border: 0;
}

/* ---------- 6. Ссылки ---------- */
a {
    text-decoration: none;
    color: inherit;
}

/* ---------- 7. Таблицы ---------- */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

.header {
    background-color: #000;
    color: white;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 30;
}

.header__inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.header__menu {
    display: flex;
    gap: 6.25em;
    align-items: center;
    font-size: 1rem;
    justify-content: center;
}

.header__menu-item {
    cursor: pointer;
    font-weight: 550;
    text-align: center;
}

.header__menu-link {
    position: relative;
    padding: 0.4375em 0.5em;
    transition: color 0.3s ease;
    text-align: center;
}

.header__menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.header__menu-link:hover::after {
    width: 100%;
}

.main-section {
    background-image: url("img/wrangler.webp");
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
    scroll-margin-top: 42px;
}

.main-section__inner {
    color: white;
    min-height: inherit;
    display: flex;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5625rem;
    width: 100%;
}

.main-section__about-us {
    margin-top: 5rem;
}

.main-section__title {
    font-size: 1.75rem;
    font-weight: 450;
    margin-bottom: 1.25rem;
}

.main-section__description {
    color: #afafaf;
    font-weight: 250;
    line-height: 2;
    margin-bottom: 1.25rem;
}

.services {
    margin-top: 1rem;
}

.services__inner {
    min-height: inherit;
    max-width: 1440px;
    margin: 0 auto;
    padding: 6rem 1.5625rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 1.75rem;
}

.services-list__inner {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 1.143rem 2.286rem;
    border-radius: 25px;
    width: 100%;
    max-width: 1050px;
}

.services__item {
    border-top: 1px solid #b9b9b9;
    padding: 0.714em 0;
}

.services__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    font-size: 1.75rem;
}

.services__item-title {
    font-size: 1.75rem;
    font-weight: 450;
    transition: color 0.3s ease, box-shadow 0.3s ease;
}

.services__item-title:hover {
    color: #969696;
}

.services__icon::before {
    content: '+';
    font-size: 2rem;
}

.services__item--open .services__icon::before {
    content: '×';
}

.services__sublist {
    list-style-type: disc;
    padding-left: 2.5rem;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.3s ease;
}

.services__item--open .services__sublist {
    margin-top: 0.357em;
}

.services__subitem {
    font-size: 1rem;
    font-weight: 300;
    padding: 0.3125rem 0;
}

.contacts {
    scroll-margin-top: 42px;
    margin-top: 1rem;
}

.contacts__inner {
    min-height: inherit;
    max-width: 1440px;
    padding: 1rem 1.5625rem 10rem 1.5625rem;
    margin: 0 auto;
    width: 100%;
}

.contacts__detail-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    width: 100%;
}

.contacts__schedule-container {
    line-height: 1.6;
    text-align: center;
    font-size: 1.3rem;
    border-bottom: 1px solid black;
    padding-block: 1rem;
    margin-bottom: 1rem;
}

.contacts__container {
    line-height: 1.6;
    text-align: center;
    font-size: 1.2rem;
}

.contacts__info {
    transition: color 0.3s ease, box-shadow 0.3s ease;
}

.contacts__info:hover {
    color: #b9b9b9;
}

.contacts__map-container {
    display: flex;
    justify-content: center;
    height: 600px;
    width: 100%;
    border: 3px solid black;
    border-radius: 25px;
}

.contacts__map {
    border-radius: 25px;
    width: 100%;
}

.footer {
    background-color: black;
    color: white;
    margin-top: auto;
    width: 100%;
}

.footer__inner {
    display: flex;
    padding: 0.5rem;
    justify-content: center;
    max-width: 1440rem;
    width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__img {
    width: 200px;
}

button {
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    color: white;
    background-color: black;
    padding: 0.5em 1em;
}

.button:hover {
    background-color: #3a3a3a;
}

.button--big {
    font-size: 1.3rem;
    padding: 0.4em 3em;
}

.button--main {
    font-size: 1rem;
    padding: 0.875em 1.5em;
    background-color: #fff;
    border-radius: 0.9375em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    color: black;
}

.button--main:hover {
    background-color: #cccccc; /* слегка серее */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* мягкая тень */
}

.bid {
    margin-bottom: 2.2rem;
}

.button--main:hover::before {
    opacity: 1;
}

.button--small-button {
    padding: 0.556em 1.667em;
}

.main-page__title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.9375em;
    font-weight: 550;
}

.page-wrapper {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5625rem;
    min-height: inherit;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-reg {
    min-height: 96vh;
}

.page-wrapper--form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
}

.form__button {
    margin-top: 2em;
}

.form {
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    padding: 1.5rem;
    font-size: 1.125rem;
    min-width: 450px;
}

.form__title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.5em;
}

.form__label {
    font-weight: 500;
    margin-bottom: 0.40em;
}

.form__input {
    width: 100%;
    border-radius: 8px;
    background-color: #f5f5f7;
    padding: 0.5em 0.75em;
}

.form__textarea {
    width: 100%;
    border-radius: 8px;
    background-color: #f5f5f7;
    padding: 0.5em 0.75em;
}

.form__input-container {
    margin-top: 1rem;
}

.form__input-container:first-of-type {
    margin-top: 0;
}

.goods-detail__characteristics-list-container {
    margin-top: 30px;
}

.status-container {
  margin-bottom: 20px;
  text-align: center;
}
.form-success {
  color: #155724;
  background-color: #d4edda;
  padding: 12px;
  border-radius: 4px;
}
.form-error {
  color: #721c24;
  background-color: #f8d7da;
  padding: 12px;
  border-radius: 4px;
}


/* ——— Desktop (≥1200px и <1550px) ——— */
@media (min-width: 1200px) and (max-width: 1549px) {
    .header__inner,
    .main-section__inner,
    .services__inner,
    .contacts__inner,
    .footer__inner {
        max-width: 1200px;
    }

    .services-list__inner {
        max-width: 800px;
    }

    .contacts__map-container {
        max-height: 500px;
    }

    .page-wrapper {
        max-width: 1200px;
    }

    html {
        font-size: 87.5%; /* 14px */
    }
}

/* ——— Tablet-L (≥992px и <1200px) ——— */
@media (min-width: 992px) and (max-width: 1199px) {
    .header__inner,
    .main-section__inner,
    .services__inner,
    .contacts__inner,
    .footer__inner {
        max-width: 960px;
    }

    .services-list__inner {
        max-width: 700px;
    }

    .page-wrapper {
        max-width: 960px;
    }

    html {
        font-size: 87.5%; /* 14px */
    }
}

/* ——— Tablet-M (≥768px и <992px) ——— */
@media (min-width: 768px) and (max-width: 991px) {
    .header__inner,
    .main-section__inner,
    .services__inner,
    .contacts__inner,
    .footer__inner {
        max-width: 720px;
    }

    .services-list__inner {
        max-width: 600px;
    }

    .page-wrapper {
        max-width: 720px;
    }

    html {
        font-size: 87.5%; /* 14px */
    }
}

/* ——— Mobile-L (≥576px и <768px) ——— */
@media (min-width: 576px) and (max-width: 767px) {
    .header__inner,
    .main-section__inner,
    .services__inner,
    .contacts__inner,
    .footer__inner {
        max-width: 540px;
    }

    .main-section__inner {
        justify-content: center;
    }

    .page-wrapper {
        max-width: 540px;
    }

    html {
        font-size: 81.25%; /* 13px */
    }

    body {
        background-color: #f5f5f5;
    }

    .form {
        background-color: #f5f5f5;
        min-width: 100%;
    }

    .form__input {
        background-color: white;
    }
}

/* ——— Mobile-S (<576px) ——— */
@media (max-width: 575px) {
    .header__inner,
    .main-section__inner,
    .services__inner,
    .contacts__inner,
    .footer__inner {
        max-width: 100%;
    }

    .main-section__inner {
        justify-content: center;
    }

    .header__menu-link {
        padding: 0 0;
    }

    .contacts__map-container {
        max-height: 800px;
    }

    .services-list__inner {
        max-width: 500px;
    }

    .page-wrapper {
        max-width: 100%;
    }

    .section-title {
        line-height: 1.2;
    }

    html {
        font-size: 75%; /* 12px */
    }

    body {
        background-color: #f5f5f5;
    }

    .form {
        background-color: #f5f5f5;
        min-width: 100%;
    }

    .form__input {
        background-color: white;
    }
}



