/* main.css */

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	overflow-y: scroll; /* always reserve scrollbar */
	background-color: #eaf7fb;
	color: #1a1a1a;
	font-family: system-ui, sans-serif;
	line-height: 1.5;
	font-size: 100%;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(10px, 2.5vw, 20px) 0;
}

header img {
	width: clamp(190px, 45vw, 280px);
    height: auto;
    display: block;
    transform: translateX(6%); /* Nudges the image right to center the icon */
}

main {
	max-width: 780px;
	margin: 0 auto;
	/* Top: 6px, Right: 15px, Bottom: 16px, Left: 15px */
	padding: 6px 15px 16px;
}

@media (max-width: 600px) {
	main {
		padding: 3px 10px; /* Even tighter for mobile */
	}
}

.headline-image {
	display: block;
	max-width: 750px;
	aspect-ratio: 750 / 500;
	width: 100%;
	height: auto;
	/* Top: 0, Right/Left: auto, Bottom: 10px */
	margin: 0 auto 10px;
	border-radius: 9px;
}

.legal p,
.legal li {
	font-size: 0.95rem;
	line-height: 1.4;
}

.flag {
	width: 28px;
	height: auto;
	margin: 0 2px;
	display: inline-block; 
    vertical-align: 0px;
}

h1 {
	font-size: clamp(1.2rem, 5vw, 1.8rem);
}

h1, h2, h3 {
	margin-top: 0.7em;
	margin-bottom: 0;
	font-weight: 600;
}

h1 + h2 {
	margin-top: 0.15em;
}

h2 + h3 {
	margin-top: 0.15em;
}

.destination-heading {
    padding-left: 0.35rem;
}

.offer-heading {
    padding-left: 0.35rem;
}

.support-block { 
	margin-bottom: 20px;
}

/* base paragraph spacing */
p {
	margin: 0.35em 0;
}

/* spacing after headings */
h1 + p,
h2 + p,
h3 + p {
	margin-top: 0.1em;
}

/* lists */
ul, ol {
	margin: 0.5em 0 0.8em 0;
	padding-left: 1.7em;
}

/* heading → list spacing */
h2 + ul,
h3 + ul,
h2 + ol,
h3 + ol {
	margin-top: 0.3em;
}

/* paragraph → list spacing */
p + ul,
p + ol {
	margin-top: 0.5em;
}

.deal-box {
	background: #fafbfc;
	border: 1px solid #bcd7ff;
	border-radius: 10px;
    padding: 0.7rem; 
    margin: 0.75rem 0;
	line-height: 1.5;
}

.deal-box h2 {
	margin-top: 0.1em;
	margin-bottom: 0.3em;
}

.deal-box p {
	margin: 4px 0;
	font-size: 1.0rem; 
}

.deal-box strong {
	font-weight: 600;
	font-size: 1.05rem;
}

.external-link {
	color: #1460B8;
	margin-left: 2px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-rendering: optimizeLegibility;
	font-size: 1.03em;
	font-weight: 500;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.external-link:hover {
	border-radius: 4px;
	padding: 0 4px;
	margin: 0 -2px;
}

.external-link:focus-visible {
	outline: 2px solid #1976d2;
	outline-offset: 2px;
}

.arrow {
	margin-left: 2px;
	font-size: 0.75em;
	color: #1976d2;
	vertical-align: 0.13em;
	opacity: 0.9;
}

.price {
	font-weight: 600;
	color: #238039;
	font-size: 1.05em;
}

.ticket-price {
	font-weight: 500;
	color: #238039;
	font-size: 1.03em;
}

.important-box {
    margin: 1.3rem auto; 
    padding: 0.1rem 1rem; 
	background-color: #fff8e1;
	border-radius: 8px;
	border-left: 2px solid #fbc02d;
	font-size: 0.95rem;
	line-height: 1.6;
}

.custom-offer-box {
    padding: 0.1rem 1.25rem 1rem;
	margin: 1.3rem 0;
	background: #fff7ed;
	border-left: 4px solid #007bff;
	border-radius: 8px;
}

.link-messenger {
	text-decoration: none;
	color: #0084FF;
	font-weight: 600;
}

.link-messenger:hover {
	text-decoration: underline;
}

.link-icon {
    display: inline; /* Treats the icon like text */
	height: 1.2em;
	vertical-align: -0.15em;
	margin-left: 3px;
    margin-right: 4px;
}

.comment {
	display: block;
	font-size: 0.87rem;
	color: #555;
	margin-bottom: 10px;
}

.share-block {
    margin: 1.4rem 0 1rem; /* Горно и долно отстояние в rem */
	color: #0066cc;
	font-weight: 500; /* Makes it match the visual weight of an h3 heading */
}

.share-block a {
	text-decoration: none;
}

.share-link {
	display: inline-block;
	width: 28px;
	height: 28px;
	margin: 12px 6px;
	transform-origin: center;
	will-change: transform;
	transition: opacity 0.2s ease, transform 0.1s ease;
	text-decoration: none;
}

.share-link:hover {
	transform: scale(1.1);
	opacity: 0.8;
}

footer {
	color: #1a1a1a;
	text-align: center;
	font-size: 0.9rem;
	padding: 10px;
}

footer a {
	color: #0000CD;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
	padding: 6px 10px;
}
