@font-face {
    font-family: "Non Bureau Extended";
    src: url("fonts/NonBureauExtended-Medium.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Non Bureau Extended";
    src: url("fonts/NonBureauExtended-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
}

html, body {
  height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;
    /* background-image: url("/img/fadepixels.svg"); */
    background-image: url("../img/fade.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;

    font-family: "Non Bureau Extended";
    font-weight: normal;
    word-spacing: 20%;
}

main {
  flex: 1 0 auto;
}

.container {
    display: flex;
    flex-direction: column;
    width: 1300px;
    margin-inline: auto;
}


.header {
    background-color: #000000;
    color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 27px 40px;
}

.header-logo a img {
    height: 40px;
}


.header-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.header-menu a {
    color: #f9f9f9;
    text-decoration: none;
    font-size: 16px;
}

.header-menu a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 42px;
    color: #f9f9f9;
    margin-bottom: 20px;
}

.slogans {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 50px;
    grid-template-rows: repeat(4, 1fr);
    width: 1350px;

    margin: 80px 0;
    margin-inline: auto;
}

.slogans p {
    margin: 5px 0;
    font-size: 50px;

}

.s1 {
    grid-column: 1 / span 5;
    grid-row: 1;
}

.s2 {
    padding-left: 60px;
    grid-column: 2 / span 5;
    grid-row: 2;
    color: #f9f9f9;
}

.s3 {
    padding-left: 93px;
    grid-column: 3 / span 5;
    grid-row: 3;
    color: #f9f9f9;
}

.s4 {
    padding-left: 215px;
    grid-column: 4 / span 5;
    grid-row: 4;
    color: #f9f9f9;
}

.s5 {
    padding-top: 62px;

    grid-column: 6;
    grid-row: 1/ span 4;
    writing-mode: vertical-rl;
    /* letter-spacing: 15px; */
}


.zeros {
    height: 20px;
    background: url("../img/0000.svg") repeat-x center;
    background-size: auto 100%;
    width: 1805px;
}

.zeros:nth-child(1) {
    width: 1497px;
    transform: translateX(400px);
}

.zeros:nth-child(2) {
    width: 100%;
    transform: translateX(-10px);
}

.zeros:nth-child(3) {
    transform: translateX(-1200px);
}

.catalog {
    margin-top: 100px;
}

.comparison {
    margin-top: 100px;
    margin-bottom: 50px;
}

.about {
    margin-top: 100px;
}

.feedback {
    margin-top: 100px;
}

.add-product {
    margin-top: 100px;
}


.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    grid-column: span 2;
    display: grid;
    grid-template-rows: auto 1fr;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    overflow: hidden;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #f9f9f9;
}

.card-title {
    margin: 0;
    font-size: 22px;
}

.card-description {
    margin: 0;
}

.card-tags {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.pill {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
}

.price {
    font-weight: 700;
    font-size: 18px;
}

.actions {
    display: flex;
    gap: 5px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 15px;
    border-radius: 15px;
    background: #f9f9f9;
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: transparent;
    color: #f9f9f9;
}

.btn--ghost {
    background: transparent;
    color: #f9ba8f;
    transition: 0.3s;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #000;
}


.comparison-table {
    width: 100%;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.comparison-table thead {
    background: rgba(255, 255, 255, 0.178);
}

.comparison-table th {
    font-weight: 700;
    font-size: 16px;
}




.input-box {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    height: auto;
}

.input-box input,
textarea,
button {
    font-family: "Non Bureau Extended";
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    color: #f9f9f9;
    width: 100%;

    box-sizing: border-box;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    outline: 0;
}

.input-box input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.input-box textarea {
    min-width: 100%;
    min-height: 150px;
    max-width: 100%;
    max-height: 300px;
}

.input-box:not(:last-child) {
    margin-bottom: 20px;
}





.add-product--grid {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.add-product--left {
    flex: 2;
}

.add-product--right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.feedback-button,
.add-product--button {
    cursor: pointer;
}

.upload-box {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    /* width: 100%; */
    height: auto;
    color: rgba(255, 255, 255, 0.5);
}

.upload-box input {
    display: none;

}

.upload-box span {
    height: 22px;
}

.preview-box {
    width: 100%;
    /* max-width: 220px; */
    aspect-ratio: 1/1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.5);
}

.preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.lorem {
    margin-bottom: 400px;
}


.footer {
    background-color: #000;
    color: #f9f9f9;
    padding: 30px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.footer-left {
    max-width: 300px;
}

.footer-logo {
    font-size: 22px;
    font-weight: bold;
    color: #f9f9f9;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-right {
    font-size: 12px;
}






.product-page {
    padding: 30px 0;
}

.product-head {
    margin-bottom: 16px;
}

.product-title {
    margin: 0 0 8px;
    color: #f9f9f9;
    font-weight: 600;
    font-size: 38px;
}

.product-tags {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    padding: 25px;
}

.product-gallery {
    display: flex;
}

.product-img {
    width: 100%;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.15);
}


.product-details {
    color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-description {
    margin: 0;
    line-height: 1.5;
}

.product-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
}


.product-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-box .price {
    font-size: 28px;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 10px;
}


.glowed {
    opacity: 0.3;
}




.modal {
  position: fixed;
  inset: 0;
  margin: auto;

  /* вместо display:none */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7);
  border-radius: 10px;

  transform: translateY(-12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  will-change: opacity, transform;
}

.modal__show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 22px;
    height: 22px;
    font-size: 0;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.modal__close::before,
.modal__close::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 2px;
    width: 25px;
    height: 3px;
    background-color: #FFF;
}

.modal__close::before {
    transform: rotate(45deg);
}

.modal__close::after {
    transform: rotate(-45deg);
}

.modal__link {
    display: block;
    text-decoration: none;
    color: var(--text-color-other);
    margin-top: 20px;
}

/* modal-login */

.modal__login {
    top: 120px;
    bottom: auto;
    width: 300px;
    padding: 50px 80px;
}

.modal__title {
    text-transform: uppercase;
    text-align: center;
}

.modal__subtitle {
    font-size: 12px;
}

.modal__login input[type='text'],
.modal__login input[type='password'] {
    /* box-sizing: border-box;
    width: 300px;
    padding-top: 10px;
    padding-right: 40px;
    padding-bottom: 10px;
    padding-left: 15px;
    font: inherit;
    color: var(--text-color);
    background-color: var(--text-color);
    border: 2px solid var(--text-color-lighter); */

    font-family: "Non Bureau Extended";
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    outline: 0;

    display: flex;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    height: auto;
}

.modal__login .btn {
    width: 100%;
}

.modal__login .btn__link {
    text-align: center;
    width: 300px;
    box-sizing: border-box;
    margin-top: 20px;
}

/* register.php */

.reg__form .btn {
    width: 100%;
}

.reg__form input[type='email'],
.reg__form input[type='text'],
.reg__form input[type='password'] {
    /* box-sizing: border-box;
    padding-top: 10px;
    padding-right: 30px;
    padding-bottom: 10px;
    padding-left: 15px;
    font: inherit;
    color: var(--text-color);
    background-color: var(--text-color-reverse);
    border: 2px solid var(--text-color-lighter);
    width: 300px;
    border-radius: 10px; */

    font-family: "Non Bureau Extended";
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    outline: 0;

    display: flex;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    height: auto;
}

.reg__form label,
span {
    color: #fff;
    display: block;
    font-size: 14px;
}


.catalog-filters {
    margin: 20px 0 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 25px;
}

.filters-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filters-search { flex: 1; }

.filters-search .input-box {
    padding: 14px 18px;
    border-radius: 15px;
}

.filters-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f9f9f9;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.tag-chip input { display: none; }

.tag-chip--active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.tag-chip:hover {
    transform: translateY(-1px);
}

.form-error{
  margin-top: 10px;
  color: #ff5a5a;
  font-size: 14px;
}
