/* =====================================================================
   Modern layer on top of the legacy (2012) theme — added 2026-10-18.
   Loaded after style.css/grid.css on every page. The old files are left
   untouched; everything here overrides or extends them.
   ===================================================================== */

:root {
	--navy: #0f2d55;
	--navy-2: #173f73;
	--blue: #0ca6f1;
	--blue-2: #0392e3;
	--accent: #f71559;
	--accent-2: #d90f4c;
	--ink: #1f2d3d;
	--muted: #5b6b7f;
	--line: #e3eaf3;
	--soft: #f3f7fb;
	--radius: 14px;
}

html {scroll-behavior: smooth;}

body {
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: #e9eff6 linear-gradient(180deg, #dde8f3 0, #eef3f8 520px, #f3f6fa 100%) no-repeat;
}
.bg {background: none;}
.main {padding-top: 28px;}

/* ---------- Panel: header + content read as one rounded card ---------- */
.header, .header2 {border-radius: var(--radius) var(--radius) 0 0; background: #fff;}
.header-bg {background: #fff; border-radius: var(--radius);}
#content {background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px -28px rgba(15, 45, 85, .35);}

/* ---------- Main menu ---------- */
.sf-menu {
	background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 45%, var(--blue-2) 100%);
	border-radius: 10px;
	padding: 0;
	box-shadow: 0 8px 20px -12px rgba(15, 45, 85, .6);
}
.sf-menu > li {background: none; padding: 0;}
.sf-menu > li + li > a {box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12);}
.sf-menu > li > a {font-size: 16px; font-weight: 600; line-height: 42px; padding: 0 16px; transition: background .2s ease;}
.sf-menu > li > a.first-item {border-radius: 10px 0 0 10px;}
.sf-menu > li > a.last-item {border-radius: 0; padding: 0 16px;}
.sf-menu li a:hover, .sf-menu li.sfHover a, .sf-menu li a.current {background: rgba(255, 255, 255, .14);}
.sf-menu li a.current {background: rgba(0, 0, 0, .22);}
.sf-menu li:hover ul, .sf-menu li.sfHover ul {top: 42px; width: 260px; border-radius: 0 0 10px 10px; overflow: hidden; box-shadow: 0 14px 30px -12px rgba(15, 45, 85, .55);}
.sf-menu ul li {border-bottom: 1px solid rgba(255, 255, 255, .08);}
.sf-menu li:hover li a, .sf-menu li.sfHover li a {display: block; font-size: 13px; line-height: 20px; padding: 10px 14px; color: #9fd8f7;}
.sf-menu li li a:hover {color: #fff; background: rgba(255, 255, 255, .08);}

/* ---------- Header CTA ---------- */
.header-cta .btn-register {background: var(--accent); color: #fff; border-color: var(--accent);}
.header-cta .btn-register:hover {background: var(--accent-2); border-color: var(--accent-2); color: #fff;}

/* ---------- Typography softening (old theme used very tight tracking) ---------- */
h3 {letter-spacing: -.5px; color: var(--blue); background: none; border-bottom: 2px solid var(--line); padding-bottom: 8px;}
h3 strong {color: var(--navy);}
h4, h4.text-1, h5 {letter-spacing: -.3px;}
h6 {text-shadow: none; font-weight: 600;}
.color-4 {text-shadow: none;}
#content p {line-height: 1.65;}

/* ---------- Buttons ---------- */
.button, #contact-form .buttons a {
	font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: 0; word-spacing: 0;
	padding: 9px 18px; border-radius: 8px; color: #fff;
	background: var(--blue); transition: background .2s ease, transform .2s ease;
}
.button:hover, #contact-form .buttons a:hover {background: var(--navy);}

/* ---------- Footer ---------- */
footer {padding: 34px 30px;}
.menu-bot li {margin: 0 20px 6px 0;}

/* =====================================================================
   HOMEPAGE
   ===================================================================== */

.header-home {height: auto;}
.header-home .header-bg {padding-bottom: 22px;}

.home-band {background: #fff; padding: 56px 30px;}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: 64px 30px 60px;
	background:
		radial-gradient(600px 320px at 85% 20%, rgba(12, 166, 241, .45), transparent 70%),
		radial-gradient(500px 300px at 0% 100%, rgba(247, 21, 89, .22), transparent 70%),
		linear-gradient(135deg, #0b2347 0%, var(--navy) 45%, #12407a 100%);
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-inner {position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center;}
.hero-kicker {
	display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
	color: #bfe9ff; padding: 6px 12px; border: 1px solid rgba(191, 233, 255, .35); border-radius: 999px;
	background: rgba(255, 255, 255, .06); margin-bottom: 18px;
}
h2.hero-title {
	font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.8px;
	text-transform: none; text-align: left; color: #fff; margin: 0 0 16px;
}
h2.hero-title span {
	background: linear-gradient(90deg, #5fd0ff, #b9ecff);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {font-size: 17px; line-height: 1.6; color: #d6e6f7; margin: 0 0 28px; max-width: 520px;}
.hero-actions {display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px;}
.btn-hero {
	display: inline-block; font-size: 15px; font-weight: 700; line-height: 20px;
	padding: 14px 24px; border-radius: 10px; text-decoration: none !important; white-space: nowrap;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-hero-primary {background: var(--accent); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(247, 21, 89, .8);}
.btn-hero-primary:hover {background: var(--accent-2); transform: translateY(-1px);}
.btn-hero-ghost {color: #fff !important; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06);}
.btn-hero-ghost:hover {background: rgba(255, 255, 255, .16);}
.hero-points {display: flex; flex-wrap: wrap; gap: 8px 20px;}
.hero-points li {font-size: 13px; color: #cfe2f5; padding-left: 22px; position: relative;}
.hero-points li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%;
	background: #2bc48a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Phone mock-up */
.hero-visual {display: flex; justify-content: center;}
.phone {
	position: relative; width: 250px; padding: 12px; border-radius: 36px;
	background: linear-gradient(160deg, #2a3f5f, #0d1b30);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
	transform: rotate(3deg);
}
.phone-notch {position: absolute; top: 18px; left: 50%; width: 70px; height: 16px; margin-left: -35px; border-radius: 10px; background: #0d1b30; z-index: 2;}
.phone-screen {border-radius: 26px; background: #f4f8fc; padding: 42px 14px 18px; color: var(--ink); min-height: 380px;}
.phone-bar {display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 14px;}
.phone-bar svg {width: 18px; height: 18px; fill: var(--blue); stroke: none;}
.bubble {font-size: 12px; line-height: 1.5; padding: 10px 12px; border-radius: 14px; margin-bottom: 10px;}
.bubble-prompt {background: #fff; border: 1px solid var(--line); border-bottom-right-radius: 4px; margin-left: 24px; color: var(--muted);}
.bubble-label {font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--blue); margin: 4px 0 6px;}
.bubble-ai {background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; border-bottom-left-radius: 4px; margin-right: 12px;}
.phone-stats {display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px;}
.phone-stats div {background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;}
.phone-stats strong {display: block; font-size: 15px; color: var(--navy);}
.phone-stats span {font-size: 10px; color: var(--muted);}
.phone-progress {height: 6px; border-radius: 6px; background: #dfe8f2; margin-top: 12px; overflow: hidden;}
.phone-progress span {display: block; height: 100%; width: 86%; border-radius: 6px; background: linear-gradient(90deg, #2bc48a, var(--blue)); animation: fill 2.4s ease-out both;}
@keyframes fill {from {width: 8%;}}

/* ---------- Slider band ---------- */
.home-slider {padding: 40px 30px 8px;}
.home-slider .slider {border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 36px -24px rgba(15, 45, 85, .55);}

/* ---------- Section heads ---------- */
.section-head {text-align: center; margin-bottom: 36px;}
.section-kicker {display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;}
h2.section-title {font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.6px; text-transform: none; color: var(--navy); text-align: center;}

/* ---------- Advantages ---------- */
.feature-grid {display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;}
.feature-card {
	position: relative; padding: 28px 28px 22px; border-radius: var(--radius);
	background: linear-gradient(180deg, #fff, var(--soft)); border: 1px solid var(--line);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {transform: translateY(-3px); border-color: #cfe3f5; box-shadow: 0 18px 36px -22px rgba(15, 45, 85, .45);}
.feature-icon, .security-icon {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
	background: linear-gradient(135deg, var(--blue), var(--navy-2));
	box-shadow: 0 10px 20px -10px rgba(3, 146, 227, .8);
}
.feature-icon svg, .security-icon svg {width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}
#content h3.feature-title, h3.feature-title, h3.security-title {
	font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.2px;
	color: var(--navy); background: none; border: 0; padding: 0; margin-bottom: 8px;
}
.feature-title small {font-size: 13px; font-weight: 600; color: var(--blue);}
.feature-card p, .security-card p {font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0;}

/* ---------- Security ---------- */
.home-security {background: var(--soft); border-top: 1px solid var(--line);}
.security-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;}
.security-card {display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);}
.security-icon {width: 46px; height: 46px; border-radius: 12px; margin: 0;}
.security-icon svg {width: 22px; height: 22px;}

.cta-strip {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	margin-top: 36px; padding: 24px 28px; border-radius: var(--radius); color: #fff;
	background: linear-gradient(120deg, var(--navy), var(--blue-2));
}
.cta-strip strong {display: block; font-size: 20px; margin-bottom: 4px;}
.cta-strip span {font-size: 14px; color: #d6e6f7;}

/* Homepage content block sits directly under the bands */
.header-home ~ #content .padding-content {padding-top: 50px;}

/* Hamburger toggle exists only on small screens (see media query below) */
.menu-toggle {display: none;}

/* =====================================================================
   RESPONSIVE — the legacy layout is fixed at 1000px; below that we let
   it flow. Hover-only sub-menus and the fixed-size slider are hidden.
   ===================================================================== */
@media (max-width: 1000px) {
	body {min-width: 0;}
	.main {width: auto; padding: 12px 12px 0;}
	.row-1, .row-2, .row-3, .container_12, .top-info-line {width: auto;}
	header, .header, .header2, .header-home {height: auto !important; padding: 14px;}
	.header-home .header-bg {padding-bottom: 0;}

	.row-1 {height: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 14px;}
	.row-1 h1 {position: static;}
	.row-1 h1 img {width: 190px; height: auto;}
	.support {position: static; font-size: 15px; letter-spacing: 0;}
	.header-cta {position: static; width: 100%; flex-wrap: wrap;}
	.header-cta a {flex: 1 1 150px; text-align: center; padding: 10px 12px; white-space: normal;}

	.row-2 {height: auto;}
	.sf-menu {position: static; width: auto; display: flex; flex-wrap: wrap;}
	.sf-menu > li {float: none;}
	.sf-menu > li > a, .sf-menu > li > a.last-item {font-size: 14px; line-height: 40px; padding: 0 12px; border-radius: 0;}
	.sf-menu > li + li > a {box-shadow: none;}
	.sf-menu li:hover ul, .sf-menu li.sfHover ul {display: none;}

	/* Hamburger menu (js/mobile-menu.js adds .js-menu + the toggle button) */
	.js-menu .row-1 h1 {order: 0;}
	.js-menu .menu-toggle {
		order: 1; margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 46px; height: 46px; padding: 0 12px; border: 0; border-radius: 12px; cursor: pointer;
		background: var(--navy); box-shadow: 0 8px 18px -10px rgba(15, 45, 85, .7);
		-webkit-tap-highlight-color: transparent;
	}
	.js-menu .menu-toggle span {display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease;}
	.js-menu .menu-toggle.is-open span:nth-child(1) {transform: translateY(7px) rotate(45deg);}
	.js-menu .menu-toggle.is-open span:nth-child(2) {opacity: 0;}
	.js-menu .menu-toggle.is-open span:nth-child(3) {transform: translateY(-7px) rotate(-45deg);}
	.js-menu .menu-toggle:focus-visible {outline: 3px solid var(--blue); outline-offset: 2px;}
	.js-menu .support {order: 2; width: 100%;}
	.js-menu .header-cta {order: 3;}

	.js-menu .row-2 {display: none; padding-bottom: 4px;}
	.js-menu .row-2.is-open {display: block; animation: menu-in .2s ease-out;}
	.js-menu .sf-menu {flex-direction: column; flex-wrap: nowrap; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--navy), var(--navy-2));}
	.js-menu .sf-menu > li + li {border-top: 1px solid rgba(255, 255, 255, .1);}
	.js-menu .sf-menu > li > a, .js-menu .sf-menu > li > a.last-item, .js-menu .sf-menu > li > a.first-item {font-size: 16px; line-height: 50px; padding: 0 18px; border-radius: 0;}
	.js-menu .sf-menu li a.current {background: rgba(255, 255, 255, .12); box-shadow: inset 4px 0 0 var(--blue);}
	/* Sub-menus are shown inline (indented) in the open panel — no hover on touch.
	   !important beats the inline display/visibility that superfish.js sets. */
	.js-menu .sf-menu ul, .js-menu .sf-menu li:hover ul, .js-menu .sf-menu li.sfHover ul {
		display: block !important; visibility: visible !important; opacity: 1 !important; height: auto !important; position: static; width: auto; box-shadow: none; border-radius: 0; background: rgba(0, 0, 0, .18);
	}
	.js-menu .sf-menu ul li {border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .06);}
	.js-menu .sf-menu li li a, .js-menu .sf-menu li:hover li a, .js-menu .sf-menu li.sfHover li a {
		display: block; font-size: 14px; line-height: 20px; padding: 12px 18px 12px 32px; color: #9fd8f7; background: none; text-decoration: none;
	}
	@keyframes menu-in {from {opacity: 0; transform: translateY(-6px);}}

	[class*="grid_"] {float: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; display: block;}
	.container_12 {padding: 0 4px;}
	.wrapper {overflow: visible;}
	.page2.col-1, .page2.col-2, .page4.col-1, .page4.col-2, .page6.col-1, .page6.col-2 {float: none; width: auto; margin-right: 0;}
	img {max-width: 100%; height: auto;}
	#content, footer {overflow-wrap: anywhere;}
	table {display: block; max-width: 100%; overflow-x: auto;}
	#fixed-element {display: none !important;}

	#contact-form input, #contact-form textarea,
	.place-form input, .place-form textarea, .place-form select,
	#place-form input, #place-form textarea, #place-form select {width: 100% !important; box-sizing: border-box; background: #fff !important; border: 1px solid #cfd8e3; border-radius: 8px;}
	#contact-form label.message {min-height: 0;}
	.place-form label, #place-form label {height: auto;}

	h3 {font-size: 26px; line-height: 32px;}
	.padding-content, .padding1-content {padding: 28px 0;}
	footer {padding: 24px 6px;}
	.footer-link {float: none;}
	.text-bot a {margin-left: 0;}

	/* Homepage */
	.home-band {padding: 40px 18px;}
	.home-slider {display: none;}
	.hero {padding: 40px 20px;}
	.hero-inner {grid-template-columns: 1fr; gap: 32px;}
	h2.hero-title {font-size: 30px;}
	.hero-sub {font-size: 16px;}
	.phone {transform: none; width: 230px;}
	.feature-grid, .security-grid {grid-template-columns: 1fr;}
	h2.section-title {font-size: 26px;}
	.cta-strip {flex-direction: column; align-items: flex-start;}
}

@media (max-width: 480px) {
	.btn-hero {flex: 1 1 100%; text-align: center;}
	.hero-visual {display: none;}
	.feature-card {padding: 22px 20px 18px;}
}

@media (prefers-reduced-motion: reduce) {
	html {scroll-behavior: auto;}
	.feature-card, .btn-hero, .phone-progress span {transition: none; animation: none;}
}
