/* Responsive skeleton: loaded after style.css. At 1312px and wider nothing here applies,
   so the desktop look stays as it was. Page blocks (pricing, tables, forms) get their own rules later. */

/* Burger button: only in the mobile header */
.menu-toggle {
	display: none;
}

/* Side gutters once the 1280px frame no longer fits */
@media (max-width: 1311px) {
	.main,
	.container_12 {
		padding-left: 16px;
		padding-right: 16px;
	}
	#header .indents {
		margin: 0;
		max-width: 100%;
	}
}

/* Tablet: nav wraps under the logo instead of overflowing */
@media (max-width: 1100px) {
	#header .indents {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		width: auto;
	}
	#header .nav {
		float: none;
		flex-wrap: wrap;
	}
	#logo {
		margin-right: 24px;
	}
}
/* The wrapped nav makes the absolute header taller than body's 120px top padding: keep it in the flow */
@media (min-width: 900px) and (max-width: 1100px) {
	body {
		padding-top: 0;
	}
	#header {
		position: relative;
		top: 0;
		padding: 40px 0 16px;
	}
}

/* Mobile header: logo left, burger right, nav as a drop-down panel */
@media (max-width: 899px) {
	body {
		padding-top: 100px;
	}
	#header {
		top: 12px;
	}
	#header .indents {
		flex-wrap: wrap;
	}
	#logo {
		margin-right: 0;
		font-size: 34px;
		line-height: 64px;
	}
	#logo i {
		font-size: 42px;
	}
	.menu-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		padding: 0 10px;
		border: 1px solid #d1d5db;
		border-radius: 6px;
		background: #fff;
		cursor: pointer;
	}
	.menu-toggle__bar {
		display: block;
		height: 3px;
		border-radius: 2px;
		background: #5a5a5a;
	}
	#header.is-open .menu-toggle__bar {
		background: #09ABC5;
	}

	#header .nav,
	#header.default .nav {
		display: none;
		flex: 0 0 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-top: 8px;
		padding: 12px 16px 16px;
		border: 1px solid #e5e7eb;
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 10px 25px rgba(0,0,0,.08);
		box-sizing: border-box;
	}
	#header.is-open .nav {
		display: flex;
	}
	#header .menu__list {
		display: block;
	}
	#header .menu__item,
	#header.default .menu__item {
		float: none;
		margin: 0;
		line-height: 44px;
		border-bottom: 1px solid #f3f4f6;
	}
	#header .menu__link {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}

	/* Category groups: accordion instead of hover drop-downs */
	.menu__list > li.dropdown:hover > .dropdown-menu {
		display: none;
	}
	.menu__list > li.dropdown.is-open > .dropdown-menu {
		display: block;
	}
	.menu__list .dropdown-menu,
	.category-group.digital-keys .dropdown-menu,
	.category-group.games .dropdown-menu {
		position: static;
		width: auto;
		max-height: none;
		column-count: 1;
		margin: 0 0 8px;
		padding: 4px 0;
		border: 0;
		box-shadow: none;
		line-height: 20px;
	}
	.menu__list .dropdown-item {
		white-space: normal;
	}

	nav.menu--trinculo .header-search {
		margin: 0;
		width: 100%;
	}
	.header-search input {
		flex: 1 1 auto;
		min-width: 0;
	}

	/* Footer: links wrap and centre */
	#footer {
		padding: 24px 0;
		text-align: center;
	}
	#footer .f_left {
		float: none;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 8px 16px;
	}
	#logo-footer {
		margin-right: 0;
	}
	/* The fixed reCAPTCHA badge (bottom right) must not cover the footer links */
	body:has(.grecaptcha-badge) #footer {
		padding-bottom: 88px;
	}
}

/* Fixed-width page frames shrink to the screen; inner blocks are styled per page later */
@media (max-width: 767px) {
	#privacy_modal .content,
	#order_success .content,
	#pay_page .fs-form-f {
		max-width: 100%;
		box-sizing: border-box;
		padding-left: 16px;
		padding-right: 16px;
	}
	/* Payment form: same fields, labels sit above the values (long labels collide inline) */
	#pay_page .input__field {
		padding: 34px 0 8px;
	}
	#pay_page .input__label {
		padding: 6px 0 0;
	}

	/* Two-column blocks stack */
	.contacts-info .left-column,
	.contacts-info .right-column,
	.cpanel-block .left-column,
	.cpanel-block .right-column,
	.cloud-feature .left-column,
	.cloud-feature .right-column {
		display: block;
		width: auto;
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
	.contacts-info .left-column {
		margin-bottom: 24px;
	}
}

/* Grid columns stack */
@media (max-width: 767px) {
	.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6,
	.grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12,
	.container_12 .grid_1, .container_12 .grid_2, .container_12 .grid_3, .container_12 .grid_4,
	.container_12 .grid_5, .container_12 .grid_6, .container_12 .grid_7, .container_12 .grid_8,
	.container_12 .grid_9, .container_12 .grid_10, .container_12 .grid_11, .container_12 .grid_12 {
		display: block;
		float: none;
		width: auto;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		left: 0;
	}
}

/* Pricing cards, plan tables and feature grids */

/* All cells of a plan row share one baseline, the header row included */
.pricing-vps .column li {
	vertical-align: middle;
}
.features-title {
	margin-top: 60px;
}

/* Tablet: cards wrap, two per row, equal heights */
@media (max-width: 899px) {
	.pricing-table {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		justify-content: center;
		gap: 24px;
	}
	.pricing-table .row,
	.pricing-table .row:last-child {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		width: calc(50% - 12px);
		margin: 0;
	}
	.pricing-table .row .plan {
		flex: 1 1 auto;
		box-sizing: border-box;
	}
	.pricing-table .row br {
		display: none;
	}

	/* Feature grids: 3 -> 2 columns */
	.carousel .container {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin-bottom: 40px;
	}
	.carousel .item {
		box-sizing: border-box;
		width: 50%;
		margin-bottom: 24px;
	}
}

/* Phone: one column of cards and features */
@media (max-width: 599px) {
	.pricing-table .row,
	.pricing-table .row:last-child {
		width: 100%;
	}
	.carousel .item {
		width: 100%;
	}
}

/* Plan tables: every row becomes a card of "label: value" lines */
@media (max-width: 767px) {
	.pricing-vps {
		display: block;
		box-shadow: none;
		margin-bottom: 40px;
	}
	.pricing-vps .column:first-child {
		display: none;
	}
	.pricing-vps .column {
		display: block;
		margin-bottom: 16px;
		padding: 16px;
		border: 1px solid rgba(0, 0, 0, .1);
		box-shadow: 0 0 2px rgba(0, 0, 0, .08), 0 4px 6px rgba(0, 0, 0, .08);
	}
	.pricing-vps .column > ul {
		display: block;
	}
	.pricing-vps .column li,
	.pricing-vps .column li:last-child {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		box-sizing: border-box;
		width: 100%;
		padding: 6px 0;
		text-align: right;
	}
	.pricing-vps .column li::before {
		content: attr(data-label);
		flex: 0 0 auto;
		text-align: left;
		color: #686767;
	}
	.pricing-vps .column li:first-child {
		font-weight: bold;
	}
	.pricing-vps .column li:last-child {
		justify-content: center;
		padding-top: 12px;
	}
	.pricing-vps .column li:last-child::before {
		content: none;
	}
	.pricing-vps .column li:last-child .button {
		display: block;
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

/* The pricing wrapper had width 100% plus a 10px side margin: it overflowed the padded frame */
@media (max-width: 1311px) {
	.wrap-pricing {
		margin-left: 0;
		margin-right: 0;
	}
}
/* Separate card groups (home page) keep a gap once cards stack */
@media (max-width: 899px) {
	.pricing-table.pricing-table-vpn {
		margin-bottom: 24px;
	}
}
/* /vpn: container_15 has no styles, so the 10px side margins pushed the page 10px wider than the screen */
@media (max-width: 1311px) {
	.container_15 {
		padding-left: 16px;
		padding-right: 16px;
		box-sizing: border-box;
	}
}
/* VPN features: four 24% cells are too narrow for their labels on a phone */
@media (max-width: 599px) {
	.featurelist {
		display: flex;
		flex-wrap: wrap;
	}
	.featurelist .featureitem,
	.featurelist .featureitem.last {
		width: 50%;
		margin: 0 0 32px;
		padding: 0 8px;
		box-sizing: border-box;
	}
}
.container_15 .wrap-pricing {
	width: calc(100% - 20px);
}
@media (max-width: 1311px) {
	.container_15 .wrap-pricing {
		width: 100%;
	}
}
