/* Apple Wood premium auto-style for old kitten album pages
   Подключить один раз на страницы-альбомы с img.ramkaIMG
   Палитра: cream / peach / gold, без чисто-белых блоков.
*/

:root{
  --aw-bg-1:#fff7ef;
  --aw-bg-2:#f8eadb;
  --aw-bg-3:#f1d3bd;
  --aw-card-1:#fff0df;
  --aw-card-2:#f6dcc4;
  --aw-card-3:#efccb0;
  --aw-gold-1:#fff0bd;
  --aw-gold-2:#efd37c;
  --aw-gold-3:#d7ad48;
  --aw-border:#e4c7a7;
  --aw-border-strong:#d8ad77;
  --aw-text:#3d3429;
  --aw-title:#5c4135;
  --aw-muted:#6b5948;
  --aw-shadow:0 18px 42px rgba(88,62,40,.12);
}

body.aw-kitten-album-page{
  background:
    radial-gradient(circle at 12% 0%,rgba(241,164,185,.13),transparent 30%),
    radial-gradient(circle at 88% 14%,rgba(220,176,82,.14),transparent 28%),
    linear-gradient(180deg,var(--aw-bg-1) 0%,var(--aw-bg-2) 48%,var(--aw-bg-3) 100%)!important;
  color:var(--aw-text);
}

.aw-auto-kitten-album{
  max-width:1120px;
  margin:0 auto 34px auto;
  padding:16px;
  border-radius:40px;
  background:linear-gradient(180deg,#fff3e8 0%,#f7dfca 48%,#efd0b7 100%);
  box-shadow:var(--aw-shadow);
  border:1px solid var(--aw-border);
  color:var(--aw-text);
  box-sizing:border-box;
}

.aw-auto-kitten-album *,
.aw-auto-kitten-album *:before,
.aw-auto-kitten-album *:after{
  box-sizing:border-box;
}

.aw-album-hero,
.aw-album-gallery,
.aw-album-contact,
.aw-album-seo-note{
  position:relative;
  overflow:hidden;
  border-radius:34px;
  border:1px solid var(--aw-border);
  background:
    linear-gradient(135deg,rgba(255,240,223,.98),rgba(246,220,196,.96)),
    radial-gradient(circle at 86% 10%,rgba(241,164,185,.14),transparent 25%),
    radial-gradient(circle at 98% 92%,rgba(220,176,82,.16),transparent 30%);
  box-shadow:0 14px 32px rgba(84,63,21,.08);
}

.aw-album-hero:before,
.aw-album-gallery:before,
.aw-album-contact:before,
.aw-album-seo-note:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,236,214,.44),rgba(255,236,214,0) 46%);
}

.aw-album-hero > *,
.aw-album-gallery > *,
.aw-album-contact > *,
.aw-album-seo-note > *{
  position:relative;
  z-index:2;
}

.aw-album-hero{
  text-align:center;
  padding:30px 24px 26px;
  margin-bottom:18px;
}

.aw-album-hero h1{
  max-width:930px;
  margin:0 auto 16px auto!important;
  padding:0!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(28px,4vw,46px)!important;
  line-height:1.12!important;
  letter-spacing:.01em;
  color:var(--aw-title)!important;
  text-align:center!important;
  font-weight:700!important;
}

.aw-album-icon{
  display:block;
  width:min(112px,28vw);
  height:auto;
  margin:8px auto 0 auto;
  filter:drop-shadow(0 10px 16px rgba(92,65,53,.16));
}

.aw-album-intro{
  max-width:780px;
  margin:14px auto 0;
  color:var(--aw-muted);
  font-size:16px;
  line-height:1.65;
}

.aw-album-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  padding:20px;
  margin-bottom:18px;
}

.aw-album-photo{
  margin:0;
  padding:10px;
  border-radius:30px;
  background:linear-gradient(180deg,#fff0df 0%,#f3d6bd 100%);
  border:1px solid #dfbf9c;
  box-shadow:0 10px 24px rgba(84,63,21,.08);
}

.aw-album-photo .ramkaIMG,
body.aw-kitten-album-page img.ramkaIMG{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  aspect-ratio:3 / 2;
  object-fit:cover;
  margin:0!important;
  padding:0!important;
  border-radius:24px!important;
  border:0!important;
  outline:0!important;
  box-shadow:0 12px 26px rgba(62,42,22,.15)!important;
}

.aw-album-photo figcaption{
  margin:9px 4px 0;
  color:#6b5948;
  font-size:13px;
  line-height:1.35;
  text-align:center;
}

.aw-album-contact{
  padding:22px 18px;
  margin-bottom:18px;
  text-align:center;
}

.aw-album-contact-title{
  margin:0 0 6px;
  font-family:Georgia,"Times New Roman",serif;
  color:var(--aw-title);
  font-size:25px;
  line-height:1.2;
  font-weight:700;
}

.aw-album-contact-text{
  max-width:760px;
  margin:0 auto 15px;
  color:var(--aw-muted);
  font-size:15.5px;
  line-height:1.65;
}

.aw-album-contact-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.aw-album-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 17px;
  border-radius:999px;
  font-weight:700;
  color:#4d3d14!important;
  text-decoration:none!important;
  background:linear-gradient(180deg,var(--aw-gold-1) 0%,var(--aw-gold-2) 48%,var(--aw-gold-3) 100%);
  border:1px solid rgba(188,141,45,.58);
  box-shadow:0 8px 18px rgba(145,113,29,.16);
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}

.aw-album-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.025);
  box-shadow:0 12px 24px rgba(145,113,29,.2);
}

.aw-album-btn-phone{
  background:linear-gradient(180deg,#f7b9c4 0%,#e58aa0 100%);
  color:#5a2431!important;
  border-color:rgba(196,116,135,.45);
}

.aw-album-seo-note{
  padding:18px;
  text-align:center;
  color:var(--aw-muted);
  font-size:14.5px;
  line-height:1.65;
}

.aw-album-seo-note strong{
  color:#6f5a28;
}

body.aw-kitten-album-page .aw-old-album-source br{
  display:none!important;
}

body.aw-kitten-album-page .aw-old-album-source:empty{
  display:none!important;
}

@media(max-width:760px){
  .aw-auto-kitten-album{
    padding:9px;
    border-radius:28px;
    margin-bottom:24px;
  }

  .aw-album-hero,
  .aw-album-gallery,
  .aw-album-contact,
  .aw-album-seo-note{
    border-radius:25px;
  }

  .aw-album-hero{
    padding:22px 14px 20px;
    margin-bottom:12px;
  }

  .aw-album-hero h1{
    font-size:clamp(24px,7vw,32px)!important;
    line-height:1.12!important;
    margin-bottom:12px!important;
  }

  .aw-album-intro{
    font-size:14px;
    line-height:1.55;
  }

  .aw-album-gallery{
    grid-template-columns:1fr;
    gap:12px;
    padding:12px;
    margin-bottom:12px;
  }

  .aw-album-photo{
    padding:8px;
    border-radius:23px;
  }

  .aw-album-photo .ramkaIMG,
  body.aw-kitten-album-page img.ramkaIMG{
    border-radius:18px!important;
  }

  .aw-album-contact{
    padding:18px 12px;
    margin-bottom:12px;
  }

  .aw-album-contact-title{
    font-size:23px;
  }

  .aw-album-contact-row{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .aw-album-btn{
    width:100%;
    min-height:42px;
    padding:9px 12px;
    font-size:14px;
  }

  .aw-album-seo-note{
    padding:15px 12px;
    font-size:13.5px;
  }
}

@media(min-width:761px){
  .aw-album-gallery .aw-album-photo:first-child:nth-last-child(1){
    grid-column:1 / -1;
    max-width:760px;
    justify-self:center;
    width:100%;
  }

  .aw-album-gallery .aw-album-photo:last-child:nth-child(odd){
    grid-column:1 / -1;
    max-width:760px;
    justify-self:center;
    width:100%;
  }
}
