:root {
  --color-bg: #f8f7f5;
  --color-text: #2b2b2b;
  --color-accent-primary: #4a6fa5;
  --color-accent-secondary: #e8d5d0;
  --color-dark: #1a1a1a;
  --color-dark-subtle: #2f2f2f;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

header {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-accent-primary);
}

.logo a {
  color: inherit;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--color-accent-primary);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent-primary);
  color: white;
  border-color: var(--color-accent-primary);
}

.btn-primary:hover {
  background-color: #3a4f85;
  transform: scale(1.02);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.btn-outline:hover {
  background-color: var(--color-accent-secondary);
  transform: scale(1.02);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-secondary:hover {
  background-color: rgba(43, 43, 43, 0.05);
  transform: scale(1.02);
}

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

.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-subtle) 100%);
  color: white;
  padding: 4rem 0 0 0;
  position: relative;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 60"><path d="M0,30 Q300,0 600,30 T1200,30 L1200,60 L0,60 Z" fill="%23f8f7f5"/></svg>') repeat-x;
  background-size: 600px 60px;
  animation: wave 15s linear infinite;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(600px); }
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0 2rem 0;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-text h1 {
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-frame {
  width: 280px;
  height: 320px;
  border-radius: 50% 50% 10px 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.hero-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-circle-1 {
  top: -30px;
  left: -40px;
  z-index: 2;
}

.hero-circle-2 {
  bottom: -30px;
  right: -40px;
  z-index: 2;
}

.hero-cues {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--color-text);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 4;
}

.hero-cues-item {
  font-size: 0.75rem;
  line-height: 1.2;
  margin: 0.25rem 0;
}

.ribbon-notes {
  background: var(--color-accent-secondary);
  padding: 3rem 0;
  position: relative;
  margin-top: 2rem;
}

.ribbon-wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 40"><path d="M0,20 Q300,0 600,20 T1200,20 L1200,40 L0,40 Z" fill="%23e8d5d0"/></svg>') repeat-x;
  background-size: 600px 40px;
}

.ribbon-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0;
}

.ribbon-note {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.ribbon-note-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.ribbon-note-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ribbon-note-text {
  flex: 1;
}

.ribbon-note-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: var(--color-text);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.section-card {
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: var(--transition);
}

.section-card:hover {
  border-color: var(--color-accent-primary);
  transform: scale(1.02);
}

.section-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.section-card:hover .section-card-image img {
  transform: scale(1.05);
}

.section-card-content {
  padding: 1.5rem;
  background: white;
}

.section-card h3 {
  margin-bottom: 0.75rem;
}

.section-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.section-card:nth-child(1) {
  border-radius: 16px;
}

.section-card:nth-child(2) {
  border-radius: 50% 50% 10px 10px;
}

.section-card:nth-child(3) {
  border-radius: 50px;
}

.texture-matchboard {
  background: white;
  padding: 3rem 0;
  margin: 3rem 0;
}

.texture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.texture-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: var(--transition);
  background: rgba(74, 111, 165, 0.02);
}

.texture-card:hover {
  border-color: var(--color-accent-primary);
  background: rgba(74, 111, 165, 0.05);
  transform: scale(1.02);
}

.texture-image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.texture-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texture-text h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.texture-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: #666;
}

.products-section {
  background: white;
  padding: 3rem 0;
  margin: 3rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--color-accent-primary);
  transform: scale(1.02);
}

.product-card:nth-child(2n) {
  border-radius: 20px;
}

.product-card:nth-child(3n) {
  border-radius: 4px 20px 4px 20px;
}

.product-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent-primary);
  margin-bottom: 1rem;
}

.product-btn {
  align-self: flex-start;
}

.products-section .products-grid a.product-card {
  color: inherit;
}

.tabs-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--color-accent-primary);
  border-radius: 50px;
  color: var(--color-accent-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.tab-btn.active {
  background: var(--color-accent-primary);
  color: white;
}

.mini-guide {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-subtle) 100%);
  color: white;
  padding: 3rem 0;
  margin: 3rem 0;
}

.mini-guide h3 {
  color: white;
  margin-bottom: 1rem;
}

.guide-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.guide-item {
  padding: 1rem;
  border-left: 3px solid var(--color-accent-primary);
  background: rgba(255, 255, 255, 0.05);
}

.guide-item-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.guide-item-text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.faq-section {
  background: white;
  padding: 3rem 0;
  margin: 3rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faq-item {
  border: 2px solid #e0e0e0;
  padding: 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--color-accent-primary);
  background: rgba(74, 111, 165, 0.02);
}

.faq-question {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-accent-primary);
}

.faq-answer {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
}

.contact-form {
  background: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  max-width: 500px;
  margin: 2rem auto;
  border: 1px solid #e0e0e0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-weight: normal;
  font-size: 0.9rem;
}

.checkbox-label input {
  margin-top: 3px;
  margin-right: 0.75rem;
}

.form-submit {
  width: 100%;
}

footer {
  background: var(--color-dark);
  color: white;
  padding: 3rem 0 1.5rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.alert {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-heading p {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.product-specs {
  background: rgba(74, 111, 165, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--color-accent-primary);
}

.spec-value {
  color: var(--color-text);
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero-content {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-text {
    padding: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .sections-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .ribbon-content {
    grid-template-columns: 1fr;
  }

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

  .ribbon-note-image {
    width: 80px;
    height: 80px;
  }

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

  .tabs-nav {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guide-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-main-frame {
    width: 200px;
    height: 240px;
  }

  .hero-cues {
    width: 100px;
    height: 100px;
    font-size: 0.7rem;
  }

  .hero-cues-item {
    font-size: 0.6rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .product-card {
    border-radius: 8px !important;
  }
}
