/* Шаблон «Открытка из путешествия» */
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-cyrillic.woff2") format("woff2"); font-weight: 400 700; unicode-range: U+0400-045F, U+2116; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
body.t-postcard { --pc-paper: #F4ECDF; --pc-card: #FBF7F0; --pc-ink: #2E2A25; --pc-text: #574F45; --pc-mute: #9A8F80; --pc-red: #C2452D; --pc-blue: #2C5C8A; --pc-line: #DCCDB6;
  color: var(--pc-text); font-size: 15px; background-color: var(--pc-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.t-postcard h1, .t-postcard h2, .t-postcard h3 { color: var(--pc-ink); }
.t-postcard .top { background: transparent; border-bottom: 0; }
.t-postcard .top .agency-name { font-family: "Lora", Georgia, serif; font-weight: 600; color: var(--pc-ink); letter-spacing: 0; }
.t-postcard .hero { display: none; }
.t-postcard .items { padding-top: 6px; }

.pc-card { position: relative; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 34px; background: var(--pc-card); border-radius: 6px; padding: 34px 36px; box-shadow: 0 2px 0 #E4D7C2, 0 24px 50px -28px rgba(60, 40, 10, .45); }
.pc-card::before { content: ""; position: absolute; inset: 10px; border: 2px solid transparent; border-image: repeating-linear-gradient(45deg, var(--pc-red) 0 10px, transparent 10px 20px, var(--pc-blue) 20px 30px, transparent 30px 40px) 6; opacity: .5; pointer-events: none; }
.pc-div { background: var(--pc-line); }
.pc-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pc-mute); font-weight: 600; }
.pc-greet h2 { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 42px; margin: 6px 0 0; line-height: 1.08; }
.pc-hello { font-family: Caveat, cursive; font-size: 26px; line-height: 1.25; color: var(--pc-blue); margin: 16px 0 0; transform: rotate(-.8deg); white-space: pre-line; }
.pc-sign { font-family: Caveat, cursive; font-size: 26px; color: var(--pc-blue); margin-top: 10px; }
.pc-addr { position: relative; padding-top: 6px; display: flex; flex-direction: column; }
.pc-stamp { position: absolute; right: 0; top: 0; width: 104px; height: 124px; background: #fff; padding: 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); transform: rotate(4deg); -webkit-mask: radial-gradient(circle 4px at 4px 4px, transparent 98%, #000) -4px -4px / 12px 12px; mask: radial-gradient(circle 4px at 4px 4px, transparent 98%, #000) -4px -4px / 12px 12px; }
.pc-stamp div { width: 100%; height: 100%; background: linear-gradient(160deg, #F7B98A, #2C8FB8) center/cover; display: flex; flex-direction: column; justify-content: space-between; padding: 6px; color: #fff; font-weight: 800; font-size: 10px; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); overflow: hidden; }
.pc-stamp div span:last-child { font-size: 16px; text-align: right; }
.pc-postmark { position: absolute; right: 78px; top: 66px; width: 112px; height: 112px; border: 2px solid rgba(194, 69, 45, .55); border-radius: 50%; display: grid; place-items: center; text-align: center; color: rgba(194, 69, 45, .78); font-weight: 700; font-size: 9.5px; letter-spacing: .08em; transform: rotate(-14deg); padding: 8px; line-height: 1.25; }
.pc-postmark b { display: block; font-size: 16px; letter-spacing: .02em; margin: 2px 0; }
.pc-lines { margin-top: 150px; }
.pc-lines div { border-bottom: 1px solid var(--pc-line); padding: 8px 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.pc-lines small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pc-mute); flex: none; }
.pc-lines b { font-family: Caveat, cursive; font-size: 24px; font-weight: 600; color: var(--pc-ink); text-align: right; }
.pc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pc-mgr { font-size: 12.5px; color: var(--pc-mute); margin-top: 8px; }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px; border: 1.5px solid var(--pc-ink); color: var(--pc-ink); background: transparent; white-space: nowrap; cursor: pointer; }
.pc-btn.fill { background: var(--pc-red); border-color: var(--pc-red); color: #fff; }
.pc-btn:hover { filter: brightness(.95); }

.pc-sec { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 6px; flex-wrap: wrap; }
.pc-sec h2 { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 30px; }
.pc-sec span { font-family: Caveat, cursive; font-size: 24px; color: var(--pc-red); }
.pc-opt { display: grid; grid-template-columns: 330px 1fr 250px; gap: 30px; align-items: center; padding: 30px 0; border-top: 1.5px dashed var(--pc-line); scroll-margin-top: 16px; }
.pc-opt[hidden] { display: none; }
.pc-polaroid { background: #fff; padding: 12px 12px 48px; box-shadow: 0 10px 24px -10px rgba(60, 40, 10, .4); transform: rotate(-2.5deg); position: relative; }
.pc-opt:nth-of-type(even) .pc-polaroid { transform: rotate(2deg); }
.pc-polaroid .gallery { height: 230px; }
.pc-polaroid .gallery .empty-ph { background: linear-gradient(160deg, #F7D9B5, #9CC7DA); }
.pc-polaroid .gallery .empty-ph svg { color: rgba(255, 255, 255, .8); }
.pc-cap { position: absolute; left: 10px; right: 10px; bottom: 8px; text-align: center; font-family: Caveat, cursive; font-size: 25px; color: var(--pc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-tape { position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(240, 220, 160, .75); z-index: 3; }
.pc-badge { position: absolute; right: -16px; top: 18px; z-index: 3; width: 88px; height: 88px; border-radius: 50%; border: 2px dashed var(--pc-red); color: var(--pc-red); display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 10px; letter-spacing: .06em; transform: rotate(12deg); background: rgba(251, 247, 240, .92); line-height: 1.2; }
.pc-badge b { display: block; font-size: 17px; }
.pc-badge.blue { border-color: var(--pc-blue); color: var(--pc-blue); }
.pc-num { font-family: Caveat, cursive; font-size: 26px; color: var(--pc-red); line-height: 1; }
.pc-info { min-width: 0; }
.pc-info h3 { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.15; margin: 4px 0 0; }
.pc-stars { color: #C9973A; font-size: 15px; letter-spacing: 2px; font-family: Inter, sans-serif; }
.pc-place { color: var(--pc-mute); margin-top: 2px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-tags span { font-family: Caveat, cursive; font-size: 19px; color: var(--tag, var(--pc-red)); border-bottom: 1.5px solid currentColor; line-height: 1.1; }
.t-postcard .vars-box { margin: 12px 0 0; }
.pc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; margin: 14px 0 0; }
.pc-facts div { min-width: 0; }
.pc-facts dt { color: var(--pc-mute); font-size: 11.5px; }
.pc-facts dd { margin: 0; color: var(--pc-ink); font-weight: 600; font-size: 14.5px; }
.pc-flight { display: flex; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--pc-text); white-space: pre-line; }
.pc-flight .ic { margin-top: 3px; color: var(--pc-mute); }
.pc-more { margin-top: 10px; }
.pc-more summary { cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 700; color: var(--pc-ink); display: inline-flex; align-items: center; gap: 6px; }
.pc-more summary::-webkit-details-marker { display: none; }
.pc-more[open] summary .ic { transform: rotate(90deg); }
.pc-more .desc { font-size: 14px; margin-top: 8px; }
.pc-letter { margin-top: 14px; font-family: Caveat, cursive; font-size: 23px; line-height: 1.25; color: var(--pc-blue); background: repeating-linear-gradient(180deg, transparent 0 28px, rgba(44, 92, 138, .15) 28px 29px); padding: 2px 0 4px; white-space: pre-line; }
.t-postcard .pc-info .links { margin-top: 10px; font-size: 13.5px; }
.t-postcard .pc-info .links a { color: var(--pc-ink); }
.pc-ticket { background: var(--pc-card); border: 1.5px solid var(--pc-line); border-radius: 8px; padding: 18px 16px; position: relative; text-align: center; }
.pc-ticket::before, .pc-ticket::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--pc-paper); border: 1.5px solid var(--pc-line); transform: translateY(-50%); }
.pc-ticket::before { left: -10px; clip-path: inset(0 0 0 50%); } .pc-ticket::after { right: -10px; clip-path: inset(0 50% 0 0); }
.pc-ticket .old { color: var(--pc-mute); font-size: 14px; display: flex; justify-content: center; gap: 6px; }
.pc-ticket .old b { color: var(--pc-red); }
.pc-ticket .sum { font-family: "Lora", Georgia, serif; font-size: 31px; font-weight: 700; color: var(--pc-ink); line-height: 1.1; margin: 2px 0; }
.pc-ticket .per { font-size: 12.5px; color: var(--pc-mute); margin-bottom: 12px; }
.pc-ticket .pc-btn { width: 100%; }
.pc-ticket .pc-btn + .pc-btn { margin-top: 6px; }
.t-postcard .opt-box { margin-bottom: 10px; justify-content: center; }
.pc-ps { margin: 36px 0 0; background: var(--pc-card); border-radius: 6px; padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; box-shadow: 0 2px 0 #E4D7C2; }
.pc-ps .hand { font-family: Caveat, cursive; font-size: 29px; color: var(--pc-blue); line-height: 1.2; }
.pc-ps .btns { display: flex; gap: 8px; }
.pc-foot { text-align: center; color: var(--pc-mute); font-size: 12.5px; margin: 18px 0 0; }

.t-postcard .foot { background: transparent; color: var(--pc-text); border-top: 1.5px dashed var(--pc-line); margin-top: 30px; }
.t-postcard .foot h3 { font-family: "Lora", Georgia, serif; font-weight: 600; color: var(--pc-ink); }
.t-postcard .foot a { color: var(--pc-ink); }
.t-postcard .foot-phones span, .t-postcard .foot .note, .t-postcard .foot .credit { color: var(--pc-mute); }
.t-postcard .foot .credit { border-top-color: var(--pc-line); }
.t-postcard .foot .credit img { filter: invert(1) brightness(.5); }
.t-postcard .foot .docs a { color: var(--pc-text); }
.t-postcard .mbar { background: rgba(244, 236, 223, .95); border-top-color: var(--pc-line); }
.t-postcard .mbar .call { background: var(--pc-red); }

@media (max-width: 900px) {
  .pc-opt { grid-template-columns: 280px 1fr; }
  .pc-price { grid-column: 1 / -1; }
  .pc-ticket { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .pc-card { grid-template-columns: 1fr; padding: 26px 20px; gap: 16px; }
  .pc-div, .pc-postmark, .pc-stamp { display: none; }
  .pc-greet h2 { font-size: 32px; }
  .pc-hello { font-size: 23px; }
  .pc-lines { margin-top: 0; }
  .pc-opt { grid-template-columns: 1fr; gap: 18px; }
  .pc-polaroid { width: calc(100% - 30px); max-width: 330px; margin: 10px auto 0; }
  .pc-polaroid .gallery { height: 200px; }
  .pc-facts { grid-template-columns: 1fr 1fr; }
  .pc-ps { grid-template-columns: 1fr; }
  .pc-ps .btns { flex-direction: column; }
}
@media print {
  body.t-postcard { background: #fff; }
  .pc-opt { break-inside: avoid; }
  .pc-btn, .pc-btns { display: none !important; }
}
