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

:root {
  --bg: #0a0a0a;
  --bg-input: #1a1a1a;
  --bg-tag: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --border: #333333;
  --btn-bg: #d4d4d4;
  --btn-text: #0a0a0a;
  --btn-hover: #e8e8e8;
  --success: #4ade80;
  --error: #f87171;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.header__phone svg {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, opacity 0.2s;
}

.btn--header {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  border-radius: 2px;
}

.btn--header:hover {
  background: var(--btn-hover);
}

/* Main layout */
.main {
  padding: 2.5rem 1.5rem 4rem;
}

.main__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Product */
.product__image-wrap {
  margin-bottom: 1.5rem;
}

.product__image {
  width: 100%;
  max-width: 420px;
}

.product__category {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.product__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product__model {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--bg-tag);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product__features li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #d4d4d4;
}

.product__features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Form */
.form-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.form__field input,
.form__field select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 2px;
  width: 100%;
  appearance: none;
}

.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a3a3a3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.form__field input::placeholder {
  color: #666;
}

.form__field input:focus,
.form__field select:focus {
  outline: none;
  border-color: #666;
}

.form__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.btn--submit {
  width: 100%;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 1rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  border-radius: 2px;
}

.btn--submit:hover:not(:disabled) {
  background: var(--btn-hover);
}

.btn--submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form__message {
  text-align: center;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 2px;
}

.form__message--success {
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.form__message--error {
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer__address,
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .main__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product__image {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .header__phone span,
  .header__phone {
    font-size: 0.85rem;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header__actions {
    width: 100%;
    justify-content: space-between;
  }
}
