@font-face {
  font-family: "Montserrat";
  src: url(../fonts/Montserrat-VariableFont_wght.ttf);
  font-display: swap;
}

:root {
  --color-primary: #001530;
  --color-secondary: #00b4d8;
  --color-dark: #001836;
  --color-light: #caf0f8;
  --color-bg: #f0f9ff;
  --color-text: #1a1a1a;
  --color-white: #ffffff;
  --color-gray: #6b7280;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 4px 20px rgba(0, 119, 182, 0.1);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.header {
  background: #c1c4c7;
  color: var(--color-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-white);
}

.header__notice {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-left: auto;
  margin-right: 2rem;
  text-align: right;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav__list a {
  font-weight: 600;
  transition: color 0.2s;
}

.nav__list a:hover {
  color: var(--color-secondary);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  color: var(--color-white);
  display: flex;
  align-items: center;
  min-height: 500px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 119, 182, 0.8) 0%, rgba(0, 180, 216, 0.4) 100%);
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.features,
.products,
.testimonials,
.contact {
  padding: 3rem 0;
}

.features__grid,
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card,
.product-card,
.testimonial {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-card__icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card__image {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.product-card__image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  aspect-ratio: 1/1;
  object-fit: contain;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-white);
}

.product-card__badge--stock {
  background: var(--color-success);
}

.product-card__badge--reserved {
  background: var(--color-warning);
}

.product-card__badge--sold {
  background: var(--color-danger);
}

.product-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.product-card__price--old {
  text-decoration: line-through;
  color: var(--color-gray);
}

.testimonials {
  background: linear-gradient(120deg, var(--color-white) 0%, var(--color-light) 100%);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-weight: 600;
  color: var(--color-primary);
}

.contact {
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
  color: var(--color-white);
}

.contact h2 {
  color: var(--color-white);
}

.contact__form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  color: var(--color-text);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-group--checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.95rem;
}

.footer__inner {
   background: var(--color-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer__logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer__logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
}

.footer__contacts p {
  margin-bottom: 0.3rem;
}

.footer__links ul {
  list-style: none;
  margin-top: 0.5rem;
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer__links a {
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__disclaimer {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
  padding-top: 0.5rem;
}

.info-upload-section {
  padding: 3rem 0;
  background: var(--color-white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.info-content h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.info-content h3:first-of-type {
  margin-top: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-list li i {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.tip-box {
  background: var(--color-light);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 4px solid var(--color-primary);
}

.upload-area {
  background: #f8fafc;
  border: 2px dashed var(--color-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--color-primary);
  background: var(--color-light);
}

.upload-area i {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.upload-area p {
  margin: 0.5rem 0;
  color: var(--color-gray);
}

.btn-upload {
  background: var(--color-primary);
  color: white;
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-upload:hover {
  background: var(--color-dark);
}

#productImageInput {
  display: none;
}

.preview-container {
  margin-top: 1.5rem;
  text-align: center;
}

.preview-image {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
}

.preview-placeholder {
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  color: var(--color-gray);
  flex-direction: column;
  gap: 0.5rem;
}

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

  .header__notice {
    order: 3;
    width: 100%;
    text-align: center;
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    padding: 1rem;
    gap: 1rem;
    z-index: 99;
    text-align: center;
  }

  .nav__list.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 4rem 0;
    min-height: 400px;
  }

  .features__grid,
  .products__grid,
  .testimonials__grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo,
  .footer__contacts,
  .footer__links {
    text-align: center;
  }

  .footer__links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

.thanks-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.thanks-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.thanks-card {
  background: var(--color-white);
  border-radius: 32px;
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 119, 182, 0.05);
  padding: 3rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(2px);
}

.thanks-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 50px -15px rgba(0, 119, 182, 0.25);
}

.thanks-icon {
  font-size: 5rem;
  color: var(--color-success);
  margin-bottom: 1rem;
  background: rgba(16, 185, 129, 0.1);
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 60px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-icon i {
  font-size: 3.5rem;
}

.thanks-card h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.thanks-lead {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  border-bottom: 2px dashed var(--color-light);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.thanks-detail {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  background: var(--color-light);
  padding: 1.2rem;
  border-radius: 24px;
}

.thanks-detail strong {
  color: var(--color-dark);
  font-weight: 800;
}

.thanks-message {
  font-size: 0.95rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
  background: #f8fafc;
  padding: 0.8rem;
  border-radius: 40px;
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.thanks-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
  transition: all 0.25s;
}

.thanks-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 119, 182, 0.4);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.legal-page {
  flex: 1;
  background: var(--color-bg);
  padding: 3rem 0 4rem 0;
}

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 32px;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 3rem;
  transition: box-shadow 0.2s;
}

.legal-content h1 {
  font-size: 2.2rem;
  border-left: 6px solid var(--color-primary);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

.legal-content h2 {
  font-size: 1.7rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-light);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.85rem;
  line-height: 1.65;
  color: #2c3e44;
}

.legal-content ul,
.legal-content ol {
  margin-left: 1.8rem;
  margin-bottom: 1.5rem;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

.legal-content strong {
  color: var(--color-dark);
}

main {
  flex: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
}

.header {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .thanks-card {
    padding: 2rem 1.5rem;
    word-break: break-word;
  }

  .thanks-card h1 {
    font-size: 2rem;
  }

  .thanks-icon {
    width: 70px;
    height: 70px;
  }

  .thanks-icon i {
    font-size: 2.5rem;
  }

  .legal-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }

  .legal-content h2 {
    font-size: 1.4rem;
  }

  .logo span {
    font-size: 1rem;
  }

  .feature-list li {
    flex-wrap: wrap;
  }
}