:root {
  --mist-grey: #F2F4F7;
  --soft-blue: #DCEAF6;
  --powder-blue: #C9DFF2;
  --slate-blue: #7FA6C9;
  --warm-white: #FFFFFF;
  --paper-grey: #ECEFF3;
  --airy-blue: #F6FAFD;
  --text-dark: #4A5568;
  --text-light: #718096;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--warm-white);
  line-height: 1.8;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

a {
  color: var(--slate-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  background-color: var(--warm-white);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  font-weight: 400;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-dark);
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--slate-blue);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  position: relative;
  z-index: 10000;
}

.burger-menu span {
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  display: block;
}

.burger-menu.active {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 10000;
  background-color: var(--warm-white);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.burger-menu.active span {
  background-color: var(--text-dark);
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  width: 100%;
  background-color: var(--warm-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 5rem 2rem 2rem;
  z-index: 9999;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.2rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--mist-grey);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  margin: 5rem 0;
  padding: 3rem 0;
}

.welcome-section {
  padding: 4rem 0;
  text-align: left;
  max-width: 800px;
  margin-left: 10%;
}

.welcome-section h1 {
  margin-bottom: 1.5rem;
}

.what-we-create {
  background-color: var(--airy-blue);
  padding: 4rem 2rem;
  border-radius: 20px;
  margin: 4rem 2rem;
}

.create-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
}

.create-block {
  background-color: var(--warm-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 280px;
  flex: 1 1 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.create-block h3 {
  color: var(--slate-blue);
  margin-bottom: 1rem;
}

.create-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.cards-section {
  padding: 3rem 0;
}

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.card-item {
  display: flex;
  gap: 2rem;
  align-items: center;
  background-color: var(--mist-grey);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.card-item:nth-child(even) {
  flex-direction: row-reverse;
  margin-left: 10%;
}

.card-item:nth-child(odd) {
  margin-right: 10%;
}

.card-item img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-content {
  flex: 1;
}

.paper-goods-section {
  background-color: var(--soft-blue);
  padding: 4rem 2rem;
  border-radius: 25px;
  margin: 4rem 2rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.split-layout img {
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.split-layout img:hover {
  transform: scale(1.05);
}

.overlapping-images {
  position: relative;
}

.overlapping-images img:first-child {
  position: relative;
  z-index: 2;
}

.overlapping-images img:last-child {
  position: absolute;
  top: 20%;
  right: -10%;
  z-index: 1;
  opacity: 0.9;
}

.techniques-section {
  background-color: var(--paper-grey);
  padding: 4rem 3rem;
  border-radius: 20px;
  margin: 4rem 2rem;
}

.techniques-content {
  max-width: 700px;
  margin: 0 auto;
}

.textures-section {
  padding: 4rem 0;
}

.texture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.texture-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.texture-item:nth-child(1) {
  grid-column: 1 / 2;
  margin-top: 0;
}

.texture-item:nth-child(2) {
  grid-column: 2 / 3;
  margin-top: 3rem;
}

.texture-item:nth-child(3) {
  grid-column: 3 / 4;
  margin-top: 1rem;
}

.texture-item:hover {
  transform: scale(1.05);
}

.texture-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery-preview {
  padding: 4rem 0;
  background-color: var(--airy-blue);
  border-radius: 25px;
  margin: 4rem 2rem;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem;
}

.collage-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.collage-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.collage-item:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

.collage-item:nth-child(3) {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.collage-item:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 2 / 4;
}

.collage-item:nth-child(5) {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.collage-item:nth-child(6) {
  grid-column: 4 / 5;
  grid-row: 2 / 4;
}

.collage-item:nth-child(7) {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-section {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  margin-top: 3rem;
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--soft-blue);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--slate-blue);
  border: 3px solid var(--warm-white);
  box-shadow: 0 0 0 3px var(--soft-blue);
}

.timeline-item h3 {
  color: var(--slate-blue);
  margin-bottom: 0.5rem;
}

.contact-invitation {
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--powder-blue) 100%);
  padding: 4rem 3rem;
  border-radius: 30px;
  margin: 4rem 2rem;
  text-align: center;
}

.contact-invitation h2 {
  color: var(--warm-white);
  margin-bottom: 1.5rem;
}

.contact-invitation p {
  color: var(--warm-white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--warm-white);
  color: var(--slate-blue);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-form {
  max-width: 600px;
  margin: 3rem auto;
  background-color: var(--mist-grey);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--soft-blue);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--warm-white);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--slate-blue);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.95rem;
  line-height: 1.6;
}

.submit-button {
  background-color: var(--slate-blue);
  color: var(--warm-white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 1rem;
}

.submit-button:hover {
  background-color: var(--text-dark);
  transform: translateY(-2px);
}

.vertical-shelf {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.shelf-item {
  background-color: var(--mist-grey);
  padding: 2rem;
  border-radius: 15px;
  display: flex;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.shelf-item:nth-child(odd) {
  margin-right: 15%;
}

.shelf-item:nth-child(even) {
  margin-left: 15%;
  flex-direction: row-reverse;
}

.shelf-item:hover {
  transform: translateX(10px);
}

.shelf-item img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
}

.modular-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.modular-card {
  background-color: var(--warm-white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.modular-card:nth-child(1) {
  transform: rotate(-2deg);
  margin-top: 2rem;
}

.modular-card:nth-child(2) {
  transform: rotate(1deg);
}

.modular-card:nth-child(3) {
  transform: rotate(-1.5deg);
  margin-top: 3rem;
}

.modular-card:nth-child(4) {
  transform: rotate(2deg);
}

.modular-card:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.modular-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.editorial-layout {
  max-width: 900px;
  margin: 3rem auto;
  column-count: 2;
  column-gap: 3rem;
  column-rule: 1px solid var(--soft-blue);
}

.editorial-layout p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.editorial-layout img {
  width: 100%;
  margin: 2rem 0;
  border-radius: 12px;
  break-inside: avoid;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item:nth-child(3n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thankyou-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.thankyou-page h1 {
  color: var(--slate-blue);
  margin-bottom: 1.5rem;
}

.thankyou-page p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
}

.legal-page {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
  color: var(--slate-blue);
}

.legal-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.legal-page p {
  margin-bottom: 1rem;
}

.legal-page ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

footer {
  background-color: var(--paper-grey);
  padding: 3rem 2rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: var(--slate-blue);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--slate-blue);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--soft-blue);
  color: var(--text-light);
  font-size: 0.95rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--slate-blue);
  color: var(--warm-white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: none;
  z-index: 999;
}

.back-to-top.visible {
  display: block;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--text-dark);
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .welcome-section {
    margin-left: 0;
    text-align: center;
  }

  .card-item,
  .card-item:nth-child(even),
  .card-item:nth-child(odd) {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }

  .card-item img {
    width: 100%;
    height: auto;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .overlapping-images img:last-child {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 1rem;
  }

  .texture-grid {
    grid-template-columns: 1fr;
  }

  .texture-item:nth-child(n) {
    grid-column: 1;
    margin-top: 0;
  }

  .collage-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .collage-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .editorial-layout {
    column-count: 1;
  }

  .shelf-item,
  .shelf-item:nth-child(odd),
  .shelf-item:nth-child(even) {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }

  .shelf-item img {
    width: 100%;
    height: auto;
  }

  .modular-card:nth-child(n) {
    transform: none;
    margin-top: 0;
  }

  .gallery-item:nth-child(3n+1) {
    grid-column: span 1;
    grid-row: span 1;
  }

  section {
    margin: 3rem 0;
    padding: 2rem 0;
  }

  .what-we-create,
  .paper-goods-section,
  .techniques-section,
  .gallery-preview,
  .contact-invitation {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem;
  }

  main {
    padding: 0 1rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 320px) {
  header {
    padding: 0.75rem;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  nav ul {
    font-size: 0.9rem;
    gap: 1rem;
  }

  main {
    padding: 0 0.75rem;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  section {
    margin: 2rem 0;
    padding: 1.5rem 0;
  }

  .welcome-section {
    padding: 2rem 0;
  }

  .what-we-create,
  .paper-goods-section,
  .techniques-section,
  .gallery-preview,
  .contact-invitation {
    margin: 1.5rem 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: 15px;
  }

  .create-blocks {
    gap: 1.5rem;
  }

  .create-block {
    padding: 1.5rem;
    max-width: 100%;
  }

  .card-item {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .card-item img {
    width: 100%;
    height: auto;
  }

  .split-layout {
    gap: 2rem;
  }

  .split-layout img {
    width: 100%;
  }

  .texture-grid {
    gap: 1.5rem;
  }

  .texture-item img {
    height: 250px;
  }

  .collage-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .collage-item {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .modular-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modular-card {
    padding: 1.5rem;
  }

  .modular-card img {
    height: 180px;
  }

  .shelf-item {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .shelf-item img {
    width: 100%;
    height: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  .editorial-layout {
    column-count: 1;
    column-gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .submit-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.25rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .footer-container {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .footer-section p,
  .footer-section li {
    font-size: 0.9rem;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
  }

  .timeline-item::before {
    left: -1.25rem;
    width: 10px;
    height: 10px;
  }
}

