:root {
  --coffee: #746154;
  --coffee-dark: #4f4037;
  --coffee-light: #a38d7c;
  --wood-gray: #8b857e;
  --ivory: #f8f5ef;
  --cream: #eee7dc;
  --paper: #fffdf9;
  --ink: #282522;
  --muted: #746f69;
  --line: rgba(79, 64, 55, 0.15);
  --shadow: 0 20px 60px rgba(50, 42, 36, 0.12);
  --radius: 4px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    Arial, sans-serif;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--ivory);
}

.section-dark {
  color: #fff;
  background: #302b27;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading.center {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading > span,
.form-title > span,
.admin-header span,
.design-banner-content > span {
  display: block;
  margin-bottom: 12px;
  color: var(--coffee-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.section-heading h2,
.contact-info h2,
.design-banner-content h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -1px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading-light p {
  color: rgba(255, 255, 255, 0.65);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  transition: 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--coffee);
}

.button-primary:hover {
  background: var(--coffee-dark);
}

.button-light {
  color: var(--coffee-dark);
  border-color: #fff;
  background: #fff;
}

.button-outline {
  color: var(--coffee-dark);
  border-color: var(--coffee);
  background: transparent;
}

.button-outline:hover {
  color: #fff;
  background: var(--coffee);
}

.button-full {
  width: 100%;
}

.topbar {
  color: rgba(255, 255, 255, 0.82);
  background: var(--coffee-dark);
  font-size: 13px;
}

.topbar-inner {
  min-height: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: #fff;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 253, 249, 0.97);
  box-shadow: 0 5px 20px rgba(42, 35, 31, 0.06);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--coffee);
  font-family: serif;
  font-size: 23px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 2px;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.6px;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--coffee);
  transform: scaleX(0);
  transition: 0.25s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-phone {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.header-phone small,
.header-phone strong {
  display: block;
}

.header-phone small {
  color: var(--muted);
  font-size: 11px;
}

.header-phone strong {
  color: var(--coffee);
  font-size: 16px;
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: none;
}

.menu-button span {
  width: 25px;
  height: 2px;
  display: block;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  height: min(760px, calc(100vh - 111px));
  min-height: 590px;
  overflow: hidden;
  color: #fff;
  background: #3c342e;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity 0.75s ease,
    visibility 0.75s ease,
    transform 5s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(34, 28, 24, 0.78) 0%,
      rgba(34, 28, 24, 0.5) 42%,
      rgba(34, 28, 24, 0.08) 78%
    ),
    linear-gradient(0deg, rgba(31, 26, 22, 0.22), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #e5d3bd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -2px;
}

.hero p {
  max-width: 650px;
  margin: 25px 0 33px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  font-size: 32px;
  transform: translateY(-50%);
}

.hero-prev {
  left: 25px;
}

.hero-next {
  right: 25px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 35px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dots button {
  width: 29px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.active {
  background: #fff;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  padding: 26px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust-grid div:first-child {
  border-left: 1px solid var(--line);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  font-size: 18px;
}

.trust-grid span {
  color: var(--muted);
  font-size: 13px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.advantage-card {
  min-height: 270px;
  padding: 32px 25px;
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.3s ease;
}

.advantage-card:hover {
  color: #fff;
  background: var(--coffee);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.advantage-number {
  display: block;
  margin-bottom: 55px;
  color: var(--coffee-light);
  font-family: Georgia, serif;
  font-size: 30px;
}

.advantage-card:hover .advantage-number {
  color: #e6d4c1;
}

.advantage-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.advantage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.advantage-card:hover p {
  color: rgba(255, 255, 255, 0.75);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 80px;
}

.about-gallery {
  position: relative;
  padding: 0 50px 55px 0;
}

.about-main {
  height: 590px;
  object-fit: cover;
}

.about-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 180px;
  padding: 9px;
  object-fit: cover;
  background: var(--ivory);
}

.photo-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  color: #fff;
  background: var(--coffee);
  font-size: 13px;
}

.about-content .lead {
  color: var(--coffee-dark);
  font-size: 20px;
  line-height: 1.8;
}

.about-content > p {
  color: var(--muted);
}

.about-points {
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-points div {
  padding: 22px;
  border-left: 3px solid var(--coffee-light);
  background: #fff;
}

.about-points strong {
  font-size: 17px;
}

.about-points p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  color: var(--coffee);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 310px;
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.product-large {
  grid-row: span 2;
}

.product-wide {
  grid-column: span 2;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27, 22, 19, 0.75), transparent 62%);
}

.product-overlay {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 24px;
  left: 26px;
}

.product-overlay small {
  letter-spacing: 2px;
  opacity: 0.7;
}

.product-overlay h3 {
  margin: 5px 0;
  font-size: 25px;
  font-weight: 500;
}

.product-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.style-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.style-tags span {
  padding: 8px 17px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.case-filters {
  margin-bottom: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-filters button {
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.case-filters button.active,
.case-filters button:hover {
  color: var(--coffee-dark);
  background: var(--cream);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 18px;
}

.case-card {
  position: relative;
  overflow: hidden;
}

.case-card[hidden] {
  display: none;
}

.case-tall {
  grid-row: span 2;
}

.case-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.case-card:hover img {
  transform: scale(1.05);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 17, 15, 0.76), transparent 55%);
}

.case-info {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 23px;
  left: 24px;
}

.case-info span {
  color: #dcc7b1;
  font-size: 12px;
}

.case-info h3 {
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 500;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 13px;
}

.process-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 34px;
  right: 6%;
  left: 6%;
  height: 1px;
  background: var(--line);
}

.process-grid article {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-grid article > span {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--coffee-light);
  border-radius: 50%;
  color: var(--coffee);
  background: var(--paper);
  font-family: Georgia, serif;
  font-size: 20px;
}

.process-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.design-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #fff;
  background: var(--coffee-dark);
}

.design-banner-image img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.design-banner-content {
  max-width: 690px;
  padding: 85px 10vw 85px 7vw;
  align-self: center;
}

.design-banner-content ul {
  margin: 30px 0 35px;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.design-banner-content li::before {
  content: "✓";
  margin-right: 12px;
  color: #e6d1ba;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.3s ease;
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.article-card img {
  height: 230px;
  object-fit: cover;
}

.article-card-content {
  padding: 25px;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--coffee-light);
  font-size: 12px;
}

.article-card h3 {
  margin: 12px 0;
  font-size: 20px;
  line-height: 1.45;
}

.article-card p {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.article-read {
  padding: 0;
  border: 0;
  color: var(--coffee);
  background: none;
  font-weight: 700;
}

.empty-state {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

.faq-contact {
  padding: 25px;
  color: #fff;
  background: var(--coffee);
}

.faq-contact small,
.faq-contact strong,
.faq-contact a {
  display: block;
}

.faq-contact strong {
  margin: 5px 0;
  font-size: 24px;
}

.faq-contact a {
  color: #e8d8c8;
  font-size: 13px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item > button {
  width: 100%;
  padding: 23px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.faq-item b {
  color: var(--coffee);
  font-size: 25px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-item.open b {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

.faq-answer p {
  margin: 0;
  padding: 0 40px 23px 0;
  color: var(--muted);
}

.contact-section {
  padding: 100px 0;
  background:
    linear-gradient(rgba(43, 36, 31, 0.91), rgba(43, 36, 31, 0.91)),
    url("9538e1a9f66231a882705431da5e6795.jpg") center / cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.contact-info {
  color: #fff;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-info dl {
  margin: 35px 0;
}

.contact-info dl div {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-info dt {
  color: #d7c4af;
  font-size: 12px;
}

.contact-info dd {
  margin: 4px 0 0;
  font-size: 17px;
}

.contact-form {
  padding: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-title h3 {
  margin: 0 0 25px;
  font-size: 29px;
}

.contact-form label,
.article-form label {
  margin-bottom: 16px;
  display: block;
}

.contact-form label > span,
.article-form label > span {
  margin-bottom: 7px;
  display: block;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--coffee);
  box-shadow: 0 0 0 3px rgba(116, 97, 84, 0.08);
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.site-footer {
  padding: 65px 0 95px;
  color: rgba(255, 255, 255, 0.68);
  background: #27231f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 70px;
}

.footer-brand {
  color: #fff;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.52);
}

.footer-grid h3 {
  color: #fff;
  font-size: 15px;
}

.footer-grid nav {
  display: grid;
  gap: 8px;
}

.footer-grid p,
.footer-grid a {
  font-size: 13px;
}

.copyright {
  margin-top: 45px;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.floating-actions {
  position: fixed;
  z-index: 90;
  right: 25px;
  bottom: 25px;
  display: grid;
  gap: 8px;
}

.floating-actions a {
  width: 96px;
  min-height: 58px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--coffee);
  box-shadow: 0 8px 25px rgba(35, 29, 25, 0.18);
  font-size: 12px;
}

.floating-actions a:nth-child(2) {
  background: var(--coffee-dark);
}

.floating-actions span {
  font-size: 19px;
}

.modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  padding: 30px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 22, 0.77);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  max-height: calc(100vh - 60px);
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  z-index: 4;
  top: 14px;
  float: right;
  width: 40px;
  height: 40px;
  margin: 14px 14px -54px 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(35, 30, 27, 0.72);
  font-size: 26px;
}

.viewer-image {
  height: 390px;
  object-fit: cover;
}

.article-view-content {
  padding: 45px 55px 60px;
}

.article-view-content > span {
  color: var(--coffee);
  font-size: 13px;
}

.article-view-content h2 {
  margin: 8px 0 5px;
  font-size: 34px;
  line-height: 1.35;
}

.viewer-meta {
  color: var(--muted);
  font-size: 13px;
}

.viewer-body {
  margin-top: 30px;
  color: #4d4945;
  line-height: 2;
}

.viewer-body p {
  margin: 0 0 18px;
}

.admin-panel {
  width: min(100%, 1220px);
}

.admin-header {
  padding: 38px 45px 25px;
  border-bottom: 1px solid var(--line);
}

.admin-header h2 {
  margin: 0;
}

.admin-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.article-form {
  padding: 35px 45px;
  border-right: 1px solid var(--line);
}

.file-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.image-preview {
  width: 100%;
  height: 180px;
  margin-bottom: 18px;
  object-fit: cover;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-list-wrap {
  padding: 35px;
  background: var(--ivory);
}

.admin-toolbar {
  margin-bottom: 20px;
  display: flex;
  gap: 9px;
}

.admin-toolbar button,
.import-button {
  padding: 8px 13px;
  border: 1px solid var(--coffee);
  color: var(--coffee);
  background: transparent;
  font-size: 12px;
}

.import-button input {
  display: none;
}

.admin-article-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-item h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.admin-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.admin-item-actions button {
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
}

.admin-item-actions .delete-button {
  color: #a1463d;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 25px;
  bottom: 25px;
  max-width: min(360px, calc(100% - 40px));
  padding: 14px 18px;
  color: #fff;
  background: var(--coffee-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 15px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .header-phone {
    display: none;
  }

  .advantage-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 35px;
  }

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 850px) {
  .section {
    padding: 75px 0;
  }

  .topbar-inner span {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 111px;
    right: 0;
    left: 0;
    padding: 15px 20px 25px;
    display: none;
    background: var(--paper);
    box-shadow: 0 15px 25px rgba(40, 34, 30, 0.1);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    padding: 9px 0;
    font-size: 14px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding-right: 40px;
    padding-left: 40px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }

  .hero-prev {
    left: 8px;
  }

  .hero-next {
    right: 8px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .advantage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-main {
    height: 480px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-large,
  .product-wide {
    grid-row: auto;
    grid-column: auto;
  }

  .case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-tall {
    grid-row: auto;
  }

  .design-banner {
    grid-template-columns: 1fr;
  }

  .design-banner-image img {
    min-height: 420px;
  }

  .design-banner-content {
    padding: 65px 40px;
  }

  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .article-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .contact-info h2,
  .design-banner-content h2 {
    font-size: 30px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    height: 650px;
  }

  .hero-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero h1,
  .hero h2 {
    font-size: 39px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-grid div {
    padding: 18px 10px;
  }

  .advantage-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card {
    min-height: 220px;
  }

  .advantage-number {
    margin-bottom: 28px;
  }

  .about-gallery {
    padding: 0 25px 40px 0;
  }

  .about-main {
    height: 390px;
  }

  .about-small {
    width: 150px;
    height: 120px;
  }

  .photo-label {
    bottom: 15px;
    left: 10px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .case-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .design-banner-image img {
    min-height: 320px;
  }

  .design-banner-content {
    padding: 50px 25px;
  }

  .contact-form {
    padding: 27px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .copyright {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .floating-actions {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .floating-actions a {
    width: auto;
    min-height: 58px;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }

  .site-footer {
    padding-bottom: 115px;
  }

  .modal {
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
  }

  .viewer-image {
    height: 270px;
  }

  .article-view-content,
  .article-form,
  .admin-list-wrap,
  .admin-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .article-view-content h2 {
    font-size: 27px;
  }
}