:root{
  --bg: #f5f5f5;
  --panel: #e9c7c9;
  --panel2:#edd2d3;
  --text:#3f3333;
  --muted:#6b6b6b;
  --btn:#a7c0ad;
  --btnHover:#95b7a0;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: "Cormorant Infant", serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-align: justify;
  color:#534B4B;
  background:var(--bg);
}

/* Основной текст */
body, p, span, li, label, input, textarea, .hint, .collection-footer {
    font-family: "Cormorant Infant", serif;
    color: #534B4B;
}

/* Все заголовки и акценты */
h1, h2, h3, h4, h5, h6,
.panel h2, .panel h3, .panel h4,
.accordion-btn,
#test-title,
.collection-sub,
.collection-text h4,
.tagline {
    font-family: "Cormorant SC", serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 0.2em;
    color: #3F3A3A;
}

h3 {
    font-size: 24px;
}

/* Класс center теперь только для выравнивания */
.center { text-align:center; }

/* HEADER */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
  background: rgba(246,233,234,.9);
  backdrop-filter: blur(6px);
}

.brand{
  letter-spacing:.2em;
  font-size:20px;
  opacity:.85;
}

.nav{
  display:flex;
  align-items:center;
}

.nav a{
  margin-left:16px;
  text-decoration:none;
  color:var(--text);
  font-size:20px;
  letter-spacing: 0.2em;
  opacity:.8;
}

.nav a:hover{
  opacity:1;
}

/* LANGUAGE SWITCH */
.lang-switch{
  display:flex;
  gap:6px;
  margin-left:16px;
  background:var(--panel2);
  padding:4px;
  border-radius:20px;
}

.lang-btn{
  border:none;
  background:transparent;
  padding:4px 10px;
  font-size:15px;
  cursor:pointer;
  border-radius:14px;
  color:var(--text);
  transition:all .25s ease;
}

.lang-btn:hover{
  background:rgba(255,255,255,.5);
}

.lang-btn.active{
  background:var(--btn);
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}

/* HERO */
.hero{
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 16px;
  background: url("/assets/img/hero.jpg") center/cover no-repeat;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(246,233,234,.65);
}

.hero-card{
  position:relative;
  width:min(520px, 92vw);
  text-align:center;
  padding:34px 22px;
}

.logo{
  display:flex;
  justify-content:center;
  margin-bottom:16px;
}

.logo-img{
  width:400px;
  max-width:92%;
  height:auto;
  opacity:0.95;
}

.tagline{
  font-size:18px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:18px;
}

.btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:6px;
  background:var(--btn);
  color:#1d1d1d;
  text-decoration:none;
  font-size:20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition:0.3s;
}

.btn:hover{
  background:var(--btnHover);
  transform:translateY(-2px);
}

.hint{
  margin-top:12px;
  font-size:20px;
  color:var(--muted);
  line-height:1.4;
}

/* SECTIONS */
.section{
  padding:36px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}

.panel{
  width:min(920px, 92vw);
  background:var(--panel);
  padding:26px 22px;
  border-radius:6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.panel.small{
  width:min(560px, 92vw);
  background:var(--panel2);
}

.panel h2,
.panel h3,
.panel h4{
  margin:0 0 10px;
}

.panel p{
  margin:10px 0;
  line-height:1.55;
}

/* INTRO */
.intro-panel{
  text-align:center;
}

.intro-panel p{
  max-width:620px;
  margin:10px auto;
}

/* HOW */
.how h3 {
  text-align: center;
}

.how ul{
  margin:10px 0 16px 22px;
}

.center-btn{
  display:block;
  width: fit-content;
  margin: 8px auto 0;
}

/* COLLECTION */
.collection-sub{
  text-align:center;
  margin-bottom:18px;
}

.collection-item{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:24px;
  align-items:center;
  padding:18px 0;
}

.collection-item + .collection-item{
  border-top: 1px solid rgba(0,0,0,.08);
}

.collection-img{
  width:220px;
  height:220px;
  object-fit:cover;
  border-radius:10px;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.collection-img:hover{
  transform: scale(1.07);
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
}

.collection-text h4 {
    font-family: "Cormorant SC", serif;
    font-weight: 900;
    font-size: 20px;
    margin: 0 0 8px;
    color: #3F3A3A;
}

.collection-footer{
  width:100%;
  margin-top:40px;
  padding-top:20px;
  border-top:1px solid rgba(0,0,0,.08);
  text-align:center;
  font-family:"Cormorant Infant", serif;
  font-weight:600;
  line-height:1.7;
  color: #534B4B;
}

/* ASSORTMENT */



/* ACCORDION */
.accordion{
  margin-bottom:20px;
}

.accordion-btn{
  width:100%;
  text-align:center;
  background:var(--panel2);
  border:none;
  padding:14px 16px;
  font-size:20px;
  cursor:pointer;
  border-radius:6px;
  position:relative;
  transition:.25s;
}

.accordion-btn::after{
  content:"▼";
  position:absolute;
  right:18px;
  transition:transform .3s ease;
}

.accordion-btn.active::after{
  transform:rotate(180deg);
}

.accordion-btn:hover{
  background:var(--panel);
}

.accordion-content{
  max-height:0;
  overflow:hidden;
  transition:max-height .4s ease;
}

/* REVEAL */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* RESPONSIVE */
@media (max-width:900px){
  .logo-img{ width:300px; }
  .collection-item{ grid-template-columns:200px 1fr; }
  .collection-img{ width:200px; height:200px; }
}

@media (max-width:600px){
  .hero{ min-height:420px; }
  .logo-img{ width:230px; }
  .collection-item{ grid-template-columns:1fr; }
  .collection-img{ width:100%; height:auto; max-height:320px; }
}

/* ABOUT TEXT CENTER */
#about .panel{ text-align:center; }
#about .panel p{ max-width:640px; margin:12px auto; }

.back-btn { margin-left: 20px; text-decoration: none; font-size: 18px; color: black; cursor: pointer; }

/* TEST UI */
.test-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.test-card {
  width: min(520px, 92vw);
  background: var(--panel);
  padding: 32px 24px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  text-align: center;
}

#test-title { font-family: "Cormorant SC", serif; font-weight:900; margin-bottom: 10px; color: #3F3A3A; }
#question { font-family: "Cormorant SC", serif; font-size: 18px; margin: 20px 0 24px; color: #3F3A3A; }

#answers button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: none;
  background: var(--panel2);
  cursor: pointer;
  transition: all .25s ease;
  font-family: "Cormorant SC", serif;
  font-size: 18px;
  color: #3F3A3A;
}

#answers button:hover { background: #e3bfc1; transform: translateY(-1px); }
#answers button.active { background: var(--btn); color: #1d1d1d; box-shadow: 0 6px 16px rgba(0,0,0,.1); }

.nav-buttons { display: flex; justify-content: space-between; margin-top: 28px; }
#prev-btn { background: transparent; border: none; color: var(--muted); font-size: 13px; cursor: pointer; }
#next-btn { background: var(--btn); border: none; padding: 10px 18px; border-radius: 6px; font-family: "Cormorant SC", serif; font-size: 18px; cursor: pointer; transition: .25s; color: #3F3A3A; }
#next-btn:hover { background: var(--btnHover); transform: translateY(-1px); }

/* ORDER FORM */
.order-wrapper{ display:flex; justify-content:center; padding:60px 20px; }
.order-card{ max-width:500px; width:100%; background:#fff; padding:30px; border-radius:20px; box-shadow:0 10px 30px rgba(0,0,0,0.1); }
.order-preview{ text-align:center; margin-bottom:20px; }
.order-preview img{ width:200px; border-radius:15px; }
.order-form input,
.order-form textarea{ width:100%; padding:12px; margin-bottom:12px; border-radius:10px; border:1px solid #ddd; }
.order-form textarea{ min-height:80px; }
.order-form button{ width:100%; }

.order-panel {
    max-width: 1100px;
    margin: 0 auto;
}

.order-subtitle {
    margin-bottom: 30px;
    opacity: 0.8;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.order-preview-card {
    background: rgba(255,255,255,0.55);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.order-preview-img {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    display: block;
    margin: 0 auto 20px;
}

.order-preview-title {
    font-size: 30px;
    margin: 0;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-label {
    font-size: 16px;
    margin-top: 6px;
}

.order-input,
.order-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.9);
    font: inherit;
    box-sizing: border-box;
}

.order-textarea {
    min-height: 130px;
    resize: vertical;
}

.order-submit {
    margin-top: 12px;
    width: 100%;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: var(--btn);
    color: #3F3A3A;
    font-size: 20px;
    font-family: "Cormorant SC", serif;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: 0.3s;
    cursor: pointer;
}

.order-submit:hover {
    background: var(--btnHover);
    transform: translateY(-2px);
}

.order-result {
    min-height: 24px;
    margin-top: 10px;
    text-align: center;
}

.buy-btn {
    margin: 12px auto 0;
    /* display: block;
    width: fit-content; */
    width: 300px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: var(--btn);
    color: #3F3A3A;
    font-size: 20px;
    font-family: "Cormorant SC", serif;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: 0.3s;
    cursor: pointer;
}

.buy-btn:hover {
    background: var(--btnHover);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .order-layout {
        grid-template-columns: 1fr;
    }
}

.order-price {
    font-size: 22px;
    margin-top: 12px;
}

.payment-title {
    margin-top: 18px;
    margin-bottom: 6px;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.order-panel {
    max-width: 1100px;
    margin: 0 auto;
}

.order-subtitle {
    margin-bottom: 30px;
    opacity: 0.8;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.order-preview-card {
    background: rgba(255,255,255,0.55);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.order-preview-img {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    display: block;
    margin: 0 auto 20px;
}

.order-preview-title {
    font-size: 30px;
    margin: 0;
}

.order-price {
    font-size: 22px;
    margin-top: 12px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-label {
    font-size: 16px;
    margin-top: 6px;
}

.order-input,
.order-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.9);
    font: inherit;
    box-sizing: border-box;
}

.order-textarea {
    min-height: 130px;
    resize: vertical;
}

.payment-title {
    margin-top: 18px;
    margin-bottom: 6px;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.order-submit {
    margin-top: 12px;
    width: 100%;
}

.order-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.order-result {
    min-height: 24px;
    margin-top: 10px;
    text-align: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .order-layout {
        grid-template-columns: 1fr;
    }
}

.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 8px;
    border-radius: 50%;
    transition: 0.2s ease;
}

.login-icon:hover {
    background: rgba(0, 0, 0, 0.08);
}

.login-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

/* ===== PROFILE PAGE ===== */

.header-auth {
    display: flex;
    align-items: center;
}

.header-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #4b3f3f;
    margin-left: 8px;
}

#headerAvatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #dfe6f1;
}

#headerUserName {
    font-size: 12px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.profile-title {
    font-size: 42px;
    margin: 10px 0 24px;
    color: #3f3333;
}

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.profile-card {
    background: #f1e3e6;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.avatar-box {
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 14px;
    background: #dfe6f1;
}

.upload-label {
    display: inline-block;
    background: #a7c0ad;
    color: #2f3a34;
    padding: 10px 16px;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.2s ease;
}

.upload-label:hover {
    background: #97b4a0;
}

.section-title {
    font-size: 24px;
    margin: 0 0 16px;
}

.muted {
    color: #7b6f72;
    font-family: Arial, sans-serif;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid.full {
    grid-template-columns: 1fr;
}

.profile-input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid #d3c1c5;
    background: #dfe6f1;
    font-size: 16px;
    outline: none;
}

.profile-input:focus {
    border-color: #a7c0ad;
    background: #eef4f1;
}

.profile-btn {
    border: none;
    border-radius: 16px;
    background: #a7c0ad;
    color: #2f3a34;
    padding: 14px 18px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-btn:hover {
    background: #97b4a0;
}

.profile-btn.secondary {
    background: #e4d7da;
    color: #4b3f3f;
}

.message {
    min-height: 22px;
    margin-top: 10px;
    font-family: Arial, sans-serif;
}

.list {
    display: grid;
    gap: 14px;
}

.item {
    background: #faf6f7;
    border-radius: 18px;
    padding: 16px;
}

.item-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.item-meta {
    font-family: Arial, sans-serif;
    color: #75686b;
    font-size: 14px;
    margin: 4px 0;
}

.empty {
    font-family: Arial, sans-serif;
    color: #7b6f72;
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE TABLETS (768px) */
@media (max-width: 768px) {
    .topbar {
        padding: 12px 16px;
    }

    .brand {
        font-size: 18px;
    }

    .nav {
        gap: 8px;
    }

    .nav a {
        margin-left: 12px;
        font-size: 16px;
    }

    .lang-switch {
        margin-left: 12px;
        gap: 4px;
    }

    .lang-btn {
        padding: 3px 8px;
        font-size: 13px;
    }

    .hero {
        min-height: 380px;
        padding: 32px 12px;
    }

    .logo-img {
        width: 280px;
    }

    .hero-card {
        padding: 24px 18px;
    }

    .section {
        padding: 28px 12px;
    }

    .panel {
        padding: 20px 18px;
    }

    h1, h2, h3, h4, h5, h6,
    .panel h2, .panel h3, .panel h4,
    .accordion-btn,
    #test-title,
    .collection-sub {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .collection-item {
        grid-template-columns: 160px 1fr;
        gap: 16px;
        padding: 14px 0;
    }

    .collection-img {
        width: 160px;
        height: 160px;
    }

    .order-layout {
        gap: 24px;
    }

    .profile-page {
        padding: 20px 16px 40px;
    }

    .profile-title {
        font-size: 32px;
        margin: 8px 0 16px;
    }

    .profile-grid {
        gap: 16px;
    }

    .profile-card {
        padding: 20px;
        border-radius: 18px;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }
}

/* MOBILE PHONES (480px) */
@media (max-width: 480px) {
    body {
        font-size: 16px;
        letter-spacing: 0.08em;
    }

    .topbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .brand {
        font-size: 16px;
        letter-spacing: 0.15em;
    }

    .nav {
        flex-direction: column;
        gap: 4px;
        position: absolute;
        top: 45px;
        right: 12px;
        background: rgba(246, 233, 234, 0.95);
        padding: 12px;
        border-radius: 8px;
        width: auto;
        z-index: 100;
        display: none;
    }

    .nav a {
        margin-left: 0;
        font-size: 14px;
        padding: 8px 12px;
    }

    .lang-switch {
        margin-left: 0;
        gap: 3px;
        padding: 3px;
    }

    .lang-btn {
        padding: 2px 6px;
        font-size: 12px;
    }

    .hero {
        min-height: 320px;
        padding: 24px 12px;
    }

    .logo-img {
        width: 200px;
    }

    .hero-card {
        padding: 20px 14px;
    }

    .tagline {
        font-size: 16px;
        letter-spacing: 0.1em;
        margin-bottom: 14px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 16px;
    }

    .hint {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.3;
    }

    .section {
        padding: 20px 12px;
        gap: 12px;
    }

    .panel {
        width: min(100%, 92vw);
        padding: 18px 14px;
        border-radius: 8px;
    }

    .panel.small {
        width: min(100%, 92vw);
    }

    h1, h2, h3, h4, h5, h6,
    .panel h2, .panel h3, .panel h4,
    .accordion-btn,
    #test-title,
    .collection-sub,
    .collection-text h4,
    .tagline {
        font-size: 20px;
        letter-spacing: 0.15em;
    }

    h3 {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
        margin: 0 0 12px;
    }

    .collection-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0;
    }

    .collection-img {
        width: 100%;
        height: auto;
        max-height: 240px;
    }

    .collection-text h4 {
        font-size: 18px;
        margin: 0 0 6px;
    }

    .accordion {
        margin-bottom: 12px;
    }

    .accordion-btn {
        padding: 12px 14px;
        font-size: 16px;
    }

    .accordion-btn::after {
        right: 14px;
    }

    /* TEST UI */
    .test-wrapper {
        padding: 24px 12px;
        min-height: 60vh;
    }

    .test-card {
        padding: 24px 18px;
        border-radius: 8px;
    }

    #test-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    #question {
        font-size: 16px;
        margin: 16px 0 18px;
    }

    #answers button {
        padding: 10px;
        margin: 6px 0;
        border-radius: 6px;
        font-size: 14px;
    }

    .nav-buttons {
        margin-top: 20px;
    }

    #prev-btn {
        font-size: 12px;
    }

    #next-btn {
        padding: 8px 14px;
        font-size: 14px;
        border-radius: 5px;
    }

    /* ORDER FORM */
    .order-wrapper {
        padding: 24px 12px;
    }

    .order-panel {
        width: 100%;
    }

    .order-subtitle {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .order-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .order-preview-card {
        padding: 16px;
        border-radius: 16px;
    }

    .order-preview-img {
        max-width: 240px;
        margin: 0 auto 16px;
        border-radius: 12px;
    }

    .order-preview-title {
        font-size: 22px;
    }

    .order-price {
        font-size: 18px;
        margin-top: 10px;
    }

    .order-form {
        gap: 10px;
    }

    .order-label {
        font-size: 14px;
        margin-top: 4px;
    }

    .order-input,
    .order-textarea {
        padding: 12px 12px;
        border-radius: 10px;
        font-size: 16px;
    }

    .order-textarea {
        min-height: 100px;
    }

    .order-submit {
        padding: 10px 14px;
        font-size: 16px;
        margin-top: 10px;
    }

    .buy-btn {
        padding: 10px 14px;
        font-size: 16px;
        margin-top: 10px;
    }

    .payment-title {
        margin-top: 14px;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .card-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .order-result {
        min-height: 20px;
        margin-top: 8px;
        font-size: 14px;
    }

    /* PROFILE */
    .profile-page {
        padding: 16px 12px 40px;
    }

    .profile-title {
        font-size: 28px;
        margin: 6px 0 14px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-card {
        padding: 16px;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }

    .avatar-box {
        margin-bottom: 12px;
    }

    .avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto 10px;
    }

    .upload-label {
        padding: 8px 14px;
        font-size: 14px;
        margin-top: 6px;
    }

    .section-title {
        font-size: 18px;
        margin: 0 0 12px;
    }

    .form-grid {
        gap: 10px;
    }

    .profile-input {
        padding: 12px 12px;
        border-radius: 10px;
        font-size: 16px;
    }

    .profile-btn {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .message {
        min-height: 20px;
        margin-top: 8px;
        font-size: 13px;
    }

    .item {
        padding: 12px;
        border-radius: 12px;
    }

    .item-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .item-meta {
        font-size: 12px;
        margin: 3px 0;
    }

    .empty {
        font-size: 14px;
    }

    .login-icon {
        width: 32px;
        height: 32px;
        margin-left: 6px;
    }

    .login-icon img {
        width: 18px;
        height: 18px;
    }

    .header-profile-link {
        gap: 6px;
        margin-left: 6px;
        max-width: 140px;
    }

    #headerAvatar {
        width: 28px;
        height: 28px;
    }

    #headerUserName {
        font-size: 11px;
        max-width: 100px;
    }

    .back-btn {
        margin-left: 12px;
        font-size: 14px;
    }
}

/* SMALL PHONES (375px) */
@media (max-width: 375px) {
    .topbar {
        padding: 8px 10px;
    }

    .brand {
        font-size: 14px;
        letter-spacing: 0.12em;
    }

    .logo-img {
        width: 160px;
    }

    .hero {
        min-height: 280px;
        padding: 20px 10px;
    }

    .hero-card {
        padding: 18px 12px;
    }

    h1, h2, h3, h4, h5, h6,
    .panel h2, .panel h3, .panel h4,
    .accordion-btn,
    #test-title,
    .collection-sub,
    .collection-text h4,
    .tagline {
        font-size: 18px;
        letter-spacing: 0.12em;
    }

    .tagline {
        font-size: 14px;
        letter-spacing: 0.08em;
    }

    .btn {
        padding: 8px 14px;
        font-size: 14px;
    }

    .hint {
        font-size: 14px;
    }

    .section {
        padding: 16px 10px;
    }

    .panel {
        padding: 14px 12px;
    }

    .collection-item {
        padding: 10px 0;
    }

    .order-wrapper {
        padding: 16px 10px;
    }

    .order-preview-img {
        max-width: 180px;
        margin-bottom: 12px;
    }

    .order-preview-title {
        font-size: 18px;
    }

    .order-input,
    .order-textarea {
        padding: 10px 10px;
        font-size: 16px;
    }

    .profile-title {
        font-size: 24px;
        margin: 4px 0 12px;
    }

    .profile-page {
        padding: 12px 10px 32px;
    }

    .profile-card {
        padding: 14px;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }
}

/* ===== HEADER AUTH ===== */
.header-auth {
    display: flex;
    align-items: center;
}

.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 8px;
    border-radius: 50%;
    transition: 0.2s ease;
    text-decoration: none;
}

.login-icon:hover {
    background: rgba(0, 0, 0, 0.08);
}

.login-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.header-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #4b3f3f;
    margin-left: 8px;
    max-width: 180px;
}

.header-profile-link:hover {
    opacity: 0.85;
}

#headerAvatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #dfe6f1;
    display: block;
}

#headerUserName {
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: #f5e5e6;
    padding: 40px 20px 20px;
    font-family: 'Cormorant SC', serif;
    color: #3d2f2f;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.footer-col h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-col p {
    margin: 6px 0;
    font-size: 16px;
}

/* partners logos */
.partners img {
    display: block;
    height: 50px;
    margin-bottom: 15px;
}

/* social icons */
.footer-social {
    margin-top: 30px;
    text-align: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 6px;
    border: 1px solid #3d2f2f;
    border-radius: 50%;
    text-decoration: none;
    color: #3d2f2f;
    font-size: 16px;
    transition: 0.2s;
}

.footer-social a:hover {
    background: #3d2f2f;
    color: #fff;
}