/*
Theme Name: Dizainas
Theme URI: https://www.plienolaiptai.lt/
Author: BestStyle.lt
Author URI: https://www.beststyle.lt/
Description: Custom theme for plienolaiptai.lt. Rebuilt in 2026 for PHP 8.5 and WordPress 7.x: single stylesheet, responsive layout, no deprecated APIs.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dizainas
Tags: custom-menu, featured-images, translation-ready, two-columns
*/

/* ==========================================================================
   Table of contents
   1.  Reset
   2.  Design tokens
   3.  Base elements
   4.  Layout helpers (legacy utility classes kept for existing page content)
   5.  Grid (960gs, 24 columns - kept so existing page HTML still lays out)
   6.  Header, logo, language switcher
   7.  Navigation (desktop + mobile)
   8.  Hero
   9.  Content
   10. Aside
   11. Footer
   12. Forms
   13. Accessibility
   14. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Reset
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, blockquote, figure, dl, dd,
ol, ul, pre, fieldset, address {
	margin: 0;
	padding: 0;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

table {
	border-collapse: collapse;
}

table td,
table th {
	padding: 0;
}

img,
embed,
iframe,
object,
video {
	vertical-align: top;
	border: 0;
}

img {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

button,
input,
optgroup,
select,
textarea {
	font: inherit;
	color: inherit;
	margin: 0;
}

button {
	cursor: pointer;
}

address {
	font-style: normal;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
	/*
	 * bg.gif is a light grey tiling pattern (#f5f5f5 with #e7e7e7 texture).
	 * The old rule paired it with a #1f1f1f fallback, which only ever showed
	 * if the image failed - and then flipped the page from light to near
	 * black. The fallback now matches the tile.
	 */
	--dz-page-bg: #f5f5f5;
	--dz-surface: #fff;
	--dz-surface-alt: #f7f7f7;
	--dz-ink: #6d6d6d;
	--dz-ink-strong: #202020;
	--dz-ink-muted: #a6a6a6;
	--dz-accent: #1799cf;
	--dz-accent-warm: #ffba32;
	--dz-rule: #ededed;
	/* Exact colour of pic-1.gif, the 2x1 tile used as a hairline rule. */
	--dz-line: #ececec;

	--dz-shell: 990px;
	--dz-grid: 960px;
	--dz-gutter: 20px;

	--dz-font: Arial, Helvetica, sans-serif;
}

/* ==========================================================================
   3. Base elements
   ========================================================================== */

body {
	font-family: var(--dz-font);
	font-size: 14px;
	line-height: 22px;
	color: var(--dz-ink-muted);
	background: var(--dz-page-bg) url("images/bg.gif") center 0;
	/*
	 * The old theme set min-width:990px here (and again in grid.css), which
	 * forced every phone to render the desktop layout and scroll sideways.
	 */
}

a {
	color: var(--dz-accent);
	outline: none;
}

a:hover,
a:focus-visible {
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--dz-accent);
	outline-offset: 2px;
}

p {
	margin-bottom: 18px;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--dz-ink-strong);
	line-height: 1.2;
	font-weight: normal;
}

h3 {
	font-size: 33px;
	margin: 0 0 30px;
	letter-spacing: -1px;
}

h4 {
	font-size: 22px;
	margin: 0 0 18px;
}

h5 {
	font-size: 18px;
	margin: 0 0 14px;
}

h6 {
	font-size: 14px;
	font-style: italic;
	letter-spacing: -1px;
}

/* The main white shell. */
.main {
	width: var(--dz-shell);
	max-width: 100%;
	margin: 12px auto 16px;
	background: var(--dz-surface);
	position: relative;
}

/* ==========================================================================
   4. Layout helpers
   Legacy utility classes. Existing page content in the database uses some of
   these, so they are kept rather than renamed.
   ========================================================================== */

.wrapper { width: 100%; overflow: hidden; }
.extra-wrap { overflow: hidden; }
.container { width: 100%; }
.clear { clear: both; width: 100%; line-height: 0; font-size: 0; }

.p1 { margin-bottom: 8px; }
.p2 { margin-bottom: 15px; }
.p3 { margin-bottom: 30px; color: var(--dz-ink); }
.p4 { margin-bottom: 40px; }
.p5 { margin-bottom: 50px; }
.p6 { margin-bottom: 75px; }
.p7 { margin-bottom: 53px; }

.fleft { float: left; }
.fright { float: right; }
.alignright { text-align: right; }
.aligncenter { text-align: center; }
.alignleft { text-align: left; }

.reg { text-transform: uppercase; }
.it { font-style: italic; }
.letter { letter-spacing: -1px; }
.title { margin-bottom: 18px; }

.color-1 { color: #fff; }
.color-2 { color: #000; }
.color-3 { color: var(--dz-ink-muted); }

.margin-bot { margin-bottom: 35px; }
.spacing { margin-right: 9px; }
.spacing2 { margin-right: 20px; }
.spacing3 { margin-right: 60px; }
.spacing-bot { margin-bottom: 25px; }

.indent { padding: 0 0 0 30px; }
.indent2 { padding-left: 50px; }
.indent-bot { margin-bottom: 20px; }
.indent-bot2 { margin-bottom: 30px; }
.indent-bot3 { margin-bottom: 45px; }

.img-indent-bot { margin-bottom: 25px; }
.img-indent { float: left; margin: 0 20px 0 0; }
.img-indent1 { float: left; margin: 0 14px 0 0; }
.img-indent2 { float: left; margin: 0 30px 0 0; }
.img-indent-r { float: right; margin: 0 0 0 40px; }
.img-box { float: left; margin-bottom: 20px; }

.prev-indent-bot { margin-bottom: 10px; }
.prev-indent { float: left; margin: 0 17px 0 0; }
.prev-box { float: left; margin-bottom: 8px; }

.border { border: 3px solid #000; }
.border2 { border: 1px solid #000; }

/* WordPress image alignment classes, which the old theme never defined. */
.alignnone { max-width: 100%; height: auto; }
img.aligncenter { display: block; margin: 0 auto 18px; }
img.alignleft { float: left; margin: 0 20px 18px 0; }
img.alignright { float: right; margin: 0 0 18px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; font-style: italic; padding: 6px 0; }

/* ==========================================================================
   5. Grid (960gs, 24 columns)
   Kept because existing page content in the database may use these classes.
   Collapses to a single column on narrow screens - see section 14.
   ========================================================================== */

.container_24,
.container_12 {
	margin-left: auto;
	margin-right: auto;
	width: var(--dz-grid);
	max-width: 100%;
}

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12,
.grid_13,
.grid_14,
.grid_15,
.grid_16,
.grid_17,
.grid_18,
.grid_19,
.grid_20,
.grid_21,
.grid_22,
.grid_23,
.grid_24 {
	display: inline;
	float: left;
	position: relative;
	margin-left: 5px;
	margin-right: 5px;
}

.alpha { margin-left: 0; }
.omega { margin-right: 0; }

.container_24 .grid_1 { width: 30px; }
.container_24 .grid_2 { width: 70px; }
.container_24 .grid_3 { width: 110px; }
.container_24 .grid_4 { width: 150px; }
.container_24 .grid_5 { width: 190px; }
.container_24 .grid_6 { width: 230px; }
.container_24 .grid_7 { width: 270px; }
.container_24 .grid_8 { width: 310px; }
.container_24 .grid_9 { width: 350px; }
.container_24 .grid_10 { width: 390px; }
.container_24 .grid_11 { width: 430px; }
.container_24 .grid_12 { width: 470px; }
.container_24 .grid_13 { width: 510px; }
.container_24 .grid_14 { width: 550px; }
.container_24 .grid_15 { width: 590px; }
.container_24 .grid_16 { width: 630px; }
.container_24 .grid_17 { width: 670px; }
.container_24 .grid_18 { width: 710px; }
.container_24 .grid_19 { width: 750px; }
.container_24 .grid_20 { width: 790px; }
.container_24 .grid_21 { width: 830px; }
.container_24 .grid_22 { width: 870px; }
.container_24 .grid_23 { width: 910px; }
.container_24 .grid_24 { width: 950px; }

.container_12 .grid_1 { width: 70px; }
.container_12 .grid_2 { width: 150px; }
.container_12 .grid_3 { width: 230px; }
.container_12 .grid_4 { width: 310px; }
.container_12 .grid_5 { width: 390px; }
.container_12 .grid_6 { width: 470px; }
.container_12 .grid_7 { width: 550px; }
.container_12 .grid_8 { width: 630px; }
.container_12 .grid_9 { width: 710px; }
.container_12 .grid_10 { width: 790px; }
.container_12 .grid_11 { width: 870px; }
.container_12 .grid_12 { width: 950px; }

.container_24 .prefix_1 { padding-left: 40px; }
.container_24 .prefix_2 { padding-left: 80px; }
.container_24 .prefix_3 { padding-left: 120px; }
.container_24 .prefix_4 { padding-left: 160px; }
.container_24 .prefix_5 { padding-left: 200px; }
.container_24 .prefix_6 { padding-left: 240px; }
.container_24 .prefix_7 { padding-left: 280px; }
.container_24 .prefix_8 { padding-left: 320px; }
.container_24 .prefix_9 { padding-left: 360px; }
.container_24 .prefix_10 { padding-left: 400px; }
.container_24 .prefix_11 { padding-left: 440px; }
.container_24 .prefix_12 { padding-left: 480px; }
.container_24 .prefix_13 { padding-left: 520px; }
.container_24 .prefix_14 { padding-left: 560px; }
.container_24 .prefix_15 { padding-left: 600px; }
.container_24 .prefix_16 { padding-left: 640px; }
.container_24 .prefix_17 { padding-left: 680px; }
.container_24 .prefix_18 { padding-left: 720px; }
.container_24 .prefix_19 { padding-left: 760px; }
.container_24 .prefix_20 { padding-left: 800px; }
.container_24 .prefix_21 { padding-left: 840px; }
.container_24 .prefix_22 { padding-left: 880px; }
.container_24 .prefix_23 { padding-left: 920px; }

.container_24 .suffix_1 { padding-right: 40px; }
.container_24 .suffix_2 { padding-right: 80px; }
.container_24 .suffix_3 { padding-right: 120px; }
.container_24 .suffix_4 { padding-right: 160px; }
.container_24 .suffix_5 { padding-right: 200px; }
.container_24 .suffix_6 { padding-right: 240px; }
.container_24 .suffix_7 { padding-right: 280px; }
.container_24 .suffix_8 { padding-right: 320px; }
.container_24 .suffix_9 { padding-right: 360px; }
.container_24 .suffix_10 { padding-right: 400px; }
.container_24 .suffix_11 { padding-right: 440px; }
.container_24 .suffix_12 { padding-right: 480px; }
.container_24 .suffix_13 { padding-right: 520px; }
.container_24 .suffix_14 { padding-right: 560px; }
.container_24 .suffix_15 { padding-right: 600px; }
.container_24 .suffix_16 { padding-right: 640px; }
.container_24 .suffix_17 { padding-right: 680px; }
.container_24 .suffix_18 { padding-right: 720px; }
.container_24 .suffix_19 { padding-right: 760px; }
.container_24 .suffix_20 { padding-right: 800px; }
.container_24 .suffix_21 { padding-right: 840px; }
.container_24 .suffix_22 { padding-right: 880px; }
.container_24 .suffix_23 { padding-right: 920px; }

.container_24 .push_1 { left: 40px; }
.container_24 .pull_1 { left: -40px; }
.container_24 .push_2 { left: 80px; }
.container_24 .pull_2 { left: -80px; }
.container_24 .push_3 { left: 120px; }
.container_24 .pull_3 { left: -120px; }
.container_24 .push_4 { left: 160px; }
.container_24 .pull_4 { left: -160px; }
.container_24 .push_5 { left: 200px; }
.container_24 .pull_5 { left: -200px; }
.container_24 .push_6 { left: 240px; }
.container_24 .pull_6 { left: -240px; }
.container_24 .push_7 { left: 280px; }
.container_24 .pull_7 { left: -280px; }
.container_24 .push_8 { left: 320px; }
.container_24 .pull_8 { left: -320px; }
.container_24 .push_9 { left: 360px; }
.container_24 .pull_9 { left: -360px; }
.container_24 .push_10 { left: 400px; }
.container_24 .pull_10 { left: -400px; }
.container_24 .push_11 { left: 440px; }
.container_24 .pull_11 { left: -440px; }
.container_24 .push_12 { left: 480px; }
.container_24 .pull_12 { left: -480px; }
.container_24 .push_13 { left: 520px; }
.container_24 .pull_13 { left: -520px; }
.container_24 .push_14 { left: 560px; }
.container_24 .pull_14 { left: -560px; }
.container_24 .push_15 { left: 600px; }
.container_24 .pull_15 { left: -600px; }
.container_24 .push_16 { left: 640px; }
.container_24 .pull_16 { left: -640px; }
.container_24 .push_17 { left: 680px; }
.container_24 .pull_17 { left: -680px; }
.container_24 .push_18 { left: 720px; }
.container_24 .pull_18 { left: -720px; }
.container_24 .push_19 { left: 760px; }
.container_24 .pull_19 { left: -760px; }
.container_24 .push_20 { left: 800px; }
.container_24 .pull_20 { left: -800px; }
.container_24 .push_21 { left: 840px; }
.container_24 .pull_21 { left: -840px; }
.container_24 .push_22 { left: 880px; }
.container_24 .pull_22 { left: -880px; }
.container_24 .push_23 { left: 920px; }
.container_24 .pull_23 { left: -920px; }

.push_1, .pull_1, .push_2, .pull_2, .push_3, .pull_3, .push_4, .pull_4,
.push_5, .pull_5, .push_6, .pull_6, .push_7, .pull_7, .push_8, .pull_8,
.push_9, .pull_9, .push_10, .pull_10, .push_11, .pull_11, .push_12, .pull_12,
.push_13, .pull_13, .push_14, .pull_14, .push_15, .pull_15, .push_16, .pull_16,
.push_17, .pull_17, .push_18, .pull_18, .push_19, .pull_19, .push_20, .pull_20,
.push_21, .pull_21, .push_22, .pull_22, .push_23, .pull_23 {
	position: relative;
}

/* ==========================================================================
   6. Header, logo, language switcher
   ========================================================================== */

.site-header {
	position: relative;
	width: 100%;
	z-index: 100;
}

.row-1 {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	min-height: 150px;
	padding: 0 20px;
	z-index: 100;
}

.site-title {
	margin: 0;
	flex: 0 0 auto;
}

.logo {
	display: block;
	width: 238px;
	height: 57px;
	max-width: 100%;
	background: url("images/logo.png") no-repeat 0 0;
	background-size: contain;
	text-indent: -5000px;
	overflow: hidden;
	white-space: nowrap;
	text-decoration: none;
}

.language-switcher {
	position: absolute;
	top: 12px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.language-switcher__link {
	display: block;
	line-height: 0;
	border: 1px solid transparent;
	border-radius: 2px;
	opacity: 0.65;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.language-switcher__link:hover,
.language-switcher__link:focus-visible {
	opacity: 1;
}

.language-switcher__link.is-current {
	opacity: 1;
	border-color: var(--dz-accent-warm);
}

.language-switcher__link img {
	display: block;
	width: 23px;
	height: 14px;
}

/* ==========================================================================
   7. Navigation
   ========================================================================== */

.main-navigation {
	margin-left: auto;
	flex: 0 1 auto;
}

.nav-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;
}

.nav-menu > li {
	position: relative;
	font-size: 14px;
	text-align: center;
}

/*
 * The original stylesheet drew the separators with bg-menu-marker.gif, a file
 * that is not in the theme - so every menu item fired a 404 and showed no
 * separator. A border does the same job with no request.
 */
.nav-menu > li + li {
	border-left: 1px solid #e0e0e0;
}

.nav-menu a {
	display: block;
	padding: 0 14px;
	line-height: 30px;
	color: var(--dz-ink-muted);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-menu > li:hover,
.nav-menu > li.is-focused,
.nav-menu > li.current-menu-item,
.nav-menu > li.current_page_item {
	background: var(--dz-ink-strong);
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
	color: #fff;
}

/* Submenus */
.nav-menu ul {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 200;
	width: 200px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--dz-ink-strong);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

.nav-menu li:hover > ul,
.nav-menu li.is-focused > ul {
	visibility: visible;
	opacity: 1;
}

.nav-menu ul li {
	width: 100%;
	text-align: left;
	border-left: 0;
	font-size: 13px;
}

.nav-menu ul a {
	color: #fff;
	line-height: 36px;
	padding: 0 16px;
}

.nav-menu ul a:hover,
.nav-menu ul a:focus-visible {
	background: var(--dz-accent-warm);
	color: var(--dz-ink-strong);
}

/* Hamburger, hidden until the layout gets narrow. */
.menu-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--dz-rule);
	border-radius: 3px;
	background: var(--dz-surface);
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: var(--dz-ink-strong);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

.menu-toggle.is-active .menu-toggle__bars { background: transparent; }
.menu-toggle.is-active .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   8. Hero
   ========================================================================== */

.row-2 {
	position: relative;
	width: 100%;
	z-index: 1;
}

.slider {
	position: relative;
	width: 950px;
	max-width: calc(100% - 40px);
	margin: 0 auto;
	overflow: hidden;
	line-height: 0;
}

.slider img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   9. Content
   ========================================================================== */

.site-content {
	position: relative;
	width: 100%;
	padding: 16px 0 61px;
	z-index: 1;
}

/*
 * The box and its padding used to be sized with inline style attributes in
 * index.php ("top:0px; width:950px" / "width:900px"), which is why the layout
 * could not adapt to anything.
 */
.box {
	width: 100%;
	background: var(--dz-surface-alt);
}

.box .padding {
	padding: 42px 30px 15px;
}

.entry + .entry {
	margin-top: 36px;
	padding-top: 36px;
	border-top: 1px solid var(--dz-line);
}

.entry-title a {
	color: var(--dz-ink-strong);
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus-visible {
	color: var(--dz-accent);
}

.entry-thumbnail {
	margin-bottom: 20px;
}

.entry-content {
	color: var(--dz-ink);
}

/* Give content elements that the old stylesheet never styled a sane look. */
.entry-content ul,
.entry-content ol {
	margin: 0 0 18px 24px;
	padding: 0;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 28px;
}

.entry-content h2 { font-size: 26px; margin-bottom: 16px; }

.entry-content table {
	width: 100%;
	margin-bottom: 18px;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border: 1px solid var(--dz-line);
	text-align: left;
}

.entry-content th {
	background: #efefef;
	color: var(--dz-ink-strong);
}

.entry-content blockquote {
	margin: 0 0 18px;
	padding: 2px 0 2px 18px;
	border-left: 3px solid var(--dz-accent-warm);
	font-style: italic;
}

.entry-content img {
	height: auto;
}

/* Horizontal rules, replacing the pic-1.gif background tiles. */
.border-top {
	width: 100%;
	padding-top: 39px;
	border-top: 1px solid var(--dz-line);
	background: none;
}

.border-bot {
	width: 100%;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--dz-line);
	background: none;
}

.row-3 {
	width: 100%;
	max-width: 950px;
	height: 1px;
	margin: 0 auto;
	background: var(--dz-line);
}

/* Buttons */
.button,
.search-submit,
.wpcf7-submit {
	display: inline-block;
	padding: 0 12px;
	border: 0;
	font-size: 14px;
	line-height: 30px;
	color: #fff;
	background: var(--dz-ink-strong);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.button:hover,
.button:focus-visible,
.search-submit:hover,
.wpcf7-submit:hover {
	background: var(--dz-accent-warm);
	color: var(--dz-ink-strong);
}

.button1 {
	display: inline-block;
	padding: 0 12px;
	font-size: 14px;
	line-height: 30px;
	color: #fff;
	background: var(--dz-accent-warm);
	text-decoration: none;
}

.button1:hover { background: var(--dz-ink-strong); }

/* Numbered services list. */
.list-1 {
	margin: 0;
	padding-left: 26px;
	list-style-type: decimal-leading-zero;
}

.list-1 li {
	padding: 0;
	margin-bottom: 18px;
	font: 12px/15px var(--dz-font);
	color: #434950;
	list-style-type: decimal-leading-zero;
}

.list-1 a { color: #434950; text-decoration: none; }
.list-1 a:hover,
.list-1 a:focus-visible { color: #4b8cb9; text-decoration: underline; }

/*
 * list-2 used marker-1.gif, which is missing from the theme. A CSS triangle
 * in the same orange as the other markers replaces it.
 */
.list-2 li {
	font-size: 14px;
	line-height: 24px;
	border-bottom: 1px solid var(--dz-line);
}

.list-2 li.last-item { border-bottom: 0; }

.list-2 li a {
	display: block;
	position: relative;
	padding-left: 12px;
	color: var(--dz-accent);
	text-decoration: none;
}

.list-2 li a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	border: 3px solid transparent;
	border-left-color: #e3a11f;
}

.list-3 { list-style: decimal-leading-zero; }

.list-3 li {
	font-size: 12px;
	line-height: 16px;
	margin-left: 25px;
	padding-bottom: 12px;
	list-style-type: decimal-leading-zero;
}

.marker {
	display: block;
	float: left;
	width: 30px;
	height: 30px;
	margin: 5px 20px 0 0;
	line-height: 30px;
	text-align: center;
	background: var(--dz-accent-warm);
	color: #fff;
	font-size: 14px;
}

.points { color: var(--dz-ink-strong); text-decoration: none; }
.points:hover { color: var(--dz-accent-warm); }
.link:hover { text-decoration: underline; }

.text-1 { font-size: 14px; }
.text-2 { font-size: 14px; line-height: 1.285em; }

.scroll { overflow: auto; max-height: 180px; position: relative; }

/* Pagination and post navigation, which the old theme had no styles for. */
.pagination,
.page-links,
.post-navigation {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 30px;
}

.pagination .page-numbers,
.page-links a,
.post-navigation a {
	display: inline-block;
	padding: 4px 11px;
	border: 1px solid var(--dz-line);
	background: var(--dz-surface);
	color: var(--dz-ink-strong);
	text-decoration: none;
	line-height: 22px;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.page-links a:hover,
.post-navigation a:hover {
	background: var(--dz-ink-strong);
	border-color: var(--dz-ink-strong);
	color: #fff;
}

.screen-reader-text + .nav-links { width: 100%; }

/* ==========================================================================
   10. Aside (contacts / services block)
   ========================================================================== */

.site-aside {
	display: block;
	width: 100%;
}

.aside-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	padding: 0 20px;
}

.aside-col {
	flex: 1 1 260px;
	min-width: 0;
}

.aside-col--contacts { flex: 1 1 370px; }

.map {
	margin-bottom: 16px;
	line-height: 0;
}

.map iframe {
	display: block;
	width: 100%;
	max-width: 369px;
	height: 248px;
	border: 0;
}

.contacts { line-height: 22px; }
.contacts a { color: var(--dz-accent); }

.widget + .widget { margin-top: 24px; }
.widget-title { font-size: 20px; margin-bottom: 14px; }

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
	width: 100%;
	padding: 0 0 26px;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: baseline;
	justify-content: space-between;
	padding: 39px 20px 0;
	border-top: 1px solid var(--dz-line);
}

.site-footer a {
	color: var(--dz-ink-muted);
	text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: #000;
	text-decoration: none;
}

/* ==========================================================================
   12. Forms (Contact Form 7 and the legacy #contact-form markup)
   ========================================================================== */

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.search-field,
#contact-form input,
#contact-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	max-width: 100%;
	padding: 9px 11px;
	font-family: var(--dz-font);
	font-size: 14px;
	color: #555;
	background: var(--dz-surface);
	border: 1px solid var(--dz-rule);
	border-radius: 0;
}

.search-field { flex: 1 1 200px; width: auto; }

#contact-form textarea,
.wpcf7 textarea {
	height: 176px;
	overflow: auto;
	resize: vertical;
}

#contact-form {
	width: 100%;
	max-width: 510px;
	margin: 0;
	padding: 0;
	line-height: 1em;
}

#contact-form label {
	display: block;
	min-height: 51px;
	position: relative;
}

#contact-form label.message { min-height: 80px; }
#contact-form .error,
#contact-form .empty { color: #c00; padding: 5px 0; font-size: 11px; }

#contact-form .success {
	color: #000;
	max-width: 260px;
	margin-bottom: 20px;
	padding: 10px;
	border: 1px solid #e4e4e4;
	background: var(--dz-surface);
	text-align: center;
}

.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-width: 1px;
}

.wpcf7-not-valid-tip { font-size: 12px; color: #c00; }

.wpcf7 p { margin-bottom: 14px; }


/* ==========================================================================
   13. Accessibility
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: absolute !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	margin: 0;
	clip: auto;
	clip-path: none;
	background: var(--dz-surface);
	color: var(--dz-ink-strong);
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   14. Responsive
   The old theme had no media queries and set min-width:990px on <body>
   (twice), so phones rendered the desktop layout and scrolled sideways.
   ========================================================================== */

/* ---- Below the fixed 990px shell: let the grid become fluid ---- */
@media (max-width: 1009px) {
	.main {
		width: auto;
		margin: 0 auto;
	}

	.container_24,
	.container_12 {
		width: 100%;
		padding: 0 10px;
	}

	.container_24 [class*="grid_"],
	.container_12 [class*="grid_"] {
		width: auto;
		max-width: 100%;
		float: none;
		margin-left: 0;
		margin-right: 0;
	}

	.container_24 [class*="prefix_"],
	.container_24 [class*="suffix_"] {
		padding-left: 0;
		padding-right: 0;
	}

	.container_24 [class*="push_"],
	.container_24 [class*="pull_"] {
		left: 0;
	}

	.slider { max-width: 100%; }
}

/* ---- Tablet and below: switch the menu to a drop-down panel ---- */
@media (max-width: 859px) {
	.row-1 {
		min-height: 0;
		padding: 56px 16px 16px;
		gap: 10px;
	}

	.language-switcher {
		top: 16px;
		right: 16px;
	}

	.menu-toggle { display: block; }

	.main-navigation {
		flex: 1 1 100%;
		margin-left: 0;
	}

	.main-navigation .nav-menu {
		display: none;
		flex-direction: column;
		width: 100%;
		border: 1px solid var(--dz-line);
		background: var(--dz-surface);
	}

	.main-navigation.is-open .nav-menu { display: flex; }

	.nav-menu > li {
		width: 100%;
		text-align: left;
		font-size: 15px;
	}

	.nav-menu > li + li {
		border-left: 0;
		border-top: 1px solid var(--dz-line);
	}

	.nav-menu a {
		padding: 12px 16px;
		line-height: 1.3;
	}

	/* Submenus stack inline rather than floating. */
	.nav-menu ul {
		position: static;
		width: 100%;
		padding: 0;
		visibility: visible;
		opacity: 1;
		background: #2b2b2b;
	}

	.nav-menu ul a { padding-left: 32px; }

	.box .padding { padding: 28px 18px 12px; }

	h3 { font-size: 26px; margin-bottom: 20px; }

	.p5 { margin-bottom: 30px; }

	.site-content { padding: 16px 0 36px; }

	.aside-grid { gap: 24px; padding: 0 16px; }

	.map iframe { max-width: 100%; }
}

/* ---- Phones ---- */
@media (max-width: 599px) {
	body { font-size: 15px; }

	.logo {
		width: 190px;
		height: 46px;
	}

	.row-1 { padding: 52px 14px 14px; }

	.box .padding { padding: 22px 14px 10px; }

	h3 { font-size: 22px; letter-spacing: 0; }

	.entry-content h2 { font-size: 20px; }

	.slider { max-width: 100%; }

	.site-footer__inner {
		padding: 24px 14px 0;
		justify-content: flex-start;
	}

	.search-form { flex-direction: column; align-items: stretch; }
	.search-submit { width: 100%; }

	/* Floated content images would otherwise squeeze the text to nothing. */
	img.alignleft,
	img.alignright,
	.img-indent,
	.img-indent1,
	.img-indent2,
	.img-indent-r {
		float: none;
		display: block;
		margin: 0 auto 18px;
	}

	.indent,
	.indent2 { padding-left: 0; }

	.spacing3 { margin-right: 0; }

	/* Wide tables in content get their own scroll area instead of
	   stretching the page. */
	.entry-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}

/* ---- Print ---- */
@media print {
	body { background: #fff; color: #000; }

	.site-header .row-2,
	.main-navigation,
	.menu-toggle,
	.language-switcher,
	.site-aside,
	.search-form,
	.pagination { display: none !important; }

	.main { width: auto; margin: 0; }
	.box { background: none; }
	a { color: #000; }
}

/* ==========================================================================
   15. Lists with intro lines
   functions.php (section 11) strips the hand-typed bullets from list items
   and marks the un-bulleted intro line of such a list with .list-lead.
   ========================================================================== */

.entry-content li.list-lead {
	list-style: none;
	margin-left: -24px;
	margin-bottom: 8px;
}

/* NextGEN breadcrumbs are a <ul> too; they must not pick up content bullets. */
.entry-content ul.ngg-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.entry-content ul.ngg-breadcrumbs li {
	margin: 0;
	list-style: none;
}

/* ==========================================================================
   16. Gallery: album cards
   NextGEN's own album stylesheet lays albums out as a stack of full-width
   bordered rows, each with a 91x68 thumbnail floated left. This turns the
   same markup into a responsive grid of cards. Selectors are deliberately
   one step more specific than the plugin's so they win regardless of the
   order the two stylesheets load in.
   ========================================================================== */

.entry-content .ngg-albumoverview {
	display: grid !important; /* the plugin forces display:block !important */
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
	width: 100%;
	margin: 0 0 30px;
}

.entry-content .ngg-album {
	position: relative;
	display: flex;
	flex-direction: column;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
	background: var(--dz-surface);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-content .ngg-album:hover,
.entry-content .ngg-album:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* The markup puts the title before the picture; flip them visually. */
.entry-content .ngg-album .ngg-albumcontent {
	display: contents;
}

.entry-content .ngg-album .ngg-thumbnail {
	order: 1;
	float: none;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e6e6e6;
}

.entry-content .ngg-album .ngg-thumbnail a {
	display: block;
	height: 100%;
}

.entry-content .ngg-album .ngg-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.entry-content .ngg-album:hover .ngg-thumbnail img {
	transform: scale(1.06);
}

.entry-content .ngg-album .ngg-albumtitle {
	order: 2;
	margin: 0;
	padding: 14px 16px 16px;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.3;
	text-align: left;
}

.entry-content .ngg-album .ngg-albumtitle a {
	color: var(--dz-ink-strong);
	text-decoration: none;
}

/* Stretch the title link over the whole card, so all of it is clickable. */
.entry-content .ngg-album .ngg-albumtitle a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.entry-content .ngg-album:hover .ngg-albumtitle a {
	color: var(--dz-accent);
}

.entry-content .ngg-album .ngg-description {
	order: 3;
	padding: 0 16px;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.entry-content .ngg-album .ngg-description p {
	margin: 0;
}

.entry-content .ngg-album .ngg-description p:not(.ngg-album-gallery-image-counter):not(:empty) {
	padding-bottom: 14px;
	margin-top: -8px;
}

/* Photo count as a badge on the cover. The plugin prints "<strong>25</strong>
   Photos" in English only, so the word is replaced per language. */
.entry-content .ngg-album .ngg-album-gallery-image-counter {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	margin: 0;
	padding: 3px 9px;
	border-radius: 20px;
	background: rgba(32, 32, 32, 0.78);
	color: #fff;
	font-size: 0;
	line-height: 18px;
	pointer-events: none;
}

.entry-content .ngg-album .ngg-album-gallery-image-counter strong {
	font-size: 12px;
	font-weight: bold;
}

.entry-content .ngg-album .ngg-album-gallery-image-counter::after {
	content: " nuotr.";
	font-size: 12px;
}

.lang-en .entry-content .ngg-album .ngg-album-gallery-image-counter::after {
	content: " photos";
}

/* Pagination, when there are more albums than fit on one page. */
.entry-content .ngg-albumoverview > .ngg-navigation,
.entry-content .ngg-albumoverview > .ngg-clear {
	grid-column: 1 / -1;
}

@media (max-width: 599px) {
	.entry-content .ngg-albumoverview {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.entry-content .ngg-album .ngg-albumtitle {
		padding: 10px 10px 12px;
		font-size: 14px;
	}

	.entry-content .ngg-album .ngg-album-gallery-image-counter {
		top: 6px;
		right: 6px;
	}
}

/* ==========================================================================
   17. Gallery: photo grid inside an album
   Same idea as the album cards: NextGEN floats small bordered thumbnails;
   this lays the same markup out as an even grid of 4:3 tiles.
   ========================================================================== */

.entry-content .ngg-galleryoverview {
	display: grid !important; /* the plugin forces display:block !important */
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
	width: 100%;
	min-height: 0;
	margin: 0 0 30px;
	overflow: visible;
}

/* The plugin inserts <br> row breaks when a column count is configured. */
.entry-content .ngg-galleryoverview > br {
	display: none;
}

.entry-content .ngg-galleryoverview .ngg-gallery-thumbnail-box {
	float: none !important;
	width: auto !important;
	margin: 0;
}

.entry-content .ngg-galleryoverview .ngg-gallery-thumbnail {
	margin: 0;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e6e6e6;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s ease;
}

.entry-content .ngg-galleryoverview .ngg-gallery-thumbnail:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.entry-content .ngg-galleryoverview .ngg-gallery-thumbnail a {
	display: block;
	height: 100%;
	margin: 0;
}

.entry-content .ngg-galleryoverview .ngg-gallery-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.entry-content .ngg-galleryoverview .ngg-gallery-thumbnail:hover img {
	transform: scale(1.06);
}

/* Everything that is not a photo spans the full row. */
.entry-content .ngg-galleryoverview > .ngg-navigation,
.entry-content .ngg-galleryoverview > .slideshowlink,
.entry-content .ngg-galleryoverview > .ngg-clear {
	grid-column: 1 / -1;
}

/* Page numbers under a gallery or album list. */
.entry-content .ngg-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	font-size: 14px;
}

.entry-content .ngg-navigation a,
.entry-content .ngg-navigation span {
	min-width: 34px;
	margin: 0;
	padding: 5px 10px;
	border: 1px solid var(--dz-line);
	border-radius: 4px;
	background: var(--dz-surface);
	color: var(--dz-ink-strong);
	line-height: 22px;
	text-align: center;
	text-decoration: none;
}

.entry-content .ngg-navigation span.current,
.entry-content .ngg-navigation a:hover,
.entry-content .ngg-navigation a:focus-visible {
	border-color: var(--dz-ink-strong);
	background: var(--dz-ink-strong);
	color: #fff;
}

@media (max-width: 599px) {
	.entry-content .ngg-galleryoverview {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}
